Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

tripleo behind proxy cannot download from docker.io

hi all, I have an environment, with a internet access only via proxy. I cannot make skopeo download docker, even I have my proxy set in env, in /etc/profile.d/proxy.sh, OR systemd edit docker...

here is an output I get:

Exception: Error inspecting image: docker://docker.io/tripleorocky/centos-binary-cron:current-tripleo
time="2018-12-14T14:06:14+01:00" level=fatal msg="pinging docker registry returned: Get https://registry-1.docker.io/v2/: dial tcp 34.206.236.31:443: i/o timeout" 

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1060, in _standalone_deploy
    parsed_args)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 678, in _deploy_tripleo_heat_templates
    self._prepare_container_images(env, parsed_args)
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 656, in _prepare_container_images
    env, roles_data, dry_run=True)
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/kolla_builder.py", line 167, in container_images_prepare_multi
    modify_only_with_labels=modify_only_with_labels,
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/kolla_builder.py", line 268, in container_images_prepare
    images, tag_from_label)
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/image_uploader.py", line 452, in discover_image_tags
    discover_args):
  File "/usr/lib/python2.7/site-packages/concurrent/futures/_base.py", line 605, in result_iterator
    yield future.result()
  File "/usr/lib/python2.7/site-packages/concurrent/futures/_base.py", line 429, in result
    return self.__get_result()
  File "/usr/lib/python2.7/site-packages/concurrent/futures/thread.py", line 62, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/image_uploader.py", line 556, in discover_tag_from_inspect
    i = DockerImageUploader._inspect(image_url.geturl(), insecure)
  File "/usr/lib/python2.7/site-packages/tenacity/__init__.py", line 241, in wrapped_f
    return self.call(f, *args, **kw)
  File "/usr/lib/python2.7/site-packages/tenacity/__init__.py", line 330, in call
    start_time=start_time)
  File "/usr/lib/python2.7/site-packages/tenacity/__init__.py", line 297, in iter
    raise retry_exc.reraise()
  File "/usr/lib/python2.7/site-packages/tenacity/__init__.py", line 136, in reraise
    raise self.last_attempt.result()
  File "/usr/lib/python2.7/site-packages/concurrent/futures/_base.py", line 422, in result
    return self.__get_result()
  File "/usr/lib/python2.7/site-packages/tenacity/__init__.py", line 333, in call
    result = fn(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/tripleo_common/image/image_uploader.py", line 383, in _inspect
    (image, err))
ImageUploaderException: Error inspecting image: docker://docker.io/tripleorocky/centos-binary-cron:current-tripleo
time="2018-12-14T14:06:14+01:00" level=fatal msg="pinging docker registry returned: Get https://registry-1.docker.io/v2/: dial tcp 34.206.236.31:443: i/o timeout" 

None
Preserving deployment artifacts
Install artifact is located at /home/stack/undercloud-install-20181214130614.tar.bzip2

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Deployment Failed!

ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-g1hlP0

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Deployment failed.

Here is my undercloud.conf:

$ egrep -v "^$|^#" undercloud.conf 
[DEFAULT]
undercloud_hostname = lmcccp17649.cloud.com
local_ip = 198.168.230.253/24
undercloud_public_host = 192.168.230.253
undercloud_admin_host = 192.168.230.253
undercloud_nameservers = 10.1.5.40,10.1.9.20
undercloud_ntp_servers = 10.1.5.40,10.1.9.20
overcloud_domain_name = rdo.cloud.com
generate_service_certificate = true
local_interface = eth1
local_mtu = 1500
inspection_interface = br-ctlplane
inspection_extras = true
inspection_runbench = false
enable_node_discovery = true
discovery_default_driver = idrac
undercloud_update_packages = true
enable_tempest = true
enable_telemetry = false
enable_ui = true
enable_validations = true
enable_cinder = false
enabled_hardware_types = irdac,ipmi,redfish,ilo
enable_routed_networks = true
[auth]
undercloud_admin_password = Und3rc10ud_Adm1n
[ctlplane-subnet]
cidr = 196.168.230.0/24
dhcp_start = 192.168.230.50
dhcp_end = 192.168.230.99
inspection_iprange = 192.168.230.40,192.168.230.49
gateway = 192.168.230.1
masquerade = false