Ask Your Question
0

tripleo behind proxy cannot download from docker.io

asked 2018-12-18 03:51:57 -0500

BiG_NoBoDy gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-12-20 03:14:33 -0500

BiG_NoBoDy gravatar image

updated 2019-01-02 11:03:12 -0500

What I did, I still didn't use containers in Rocky, but at least all other components are fresh :)

undercloud# yum install -y centos-release-openstack-rocky.noarch
undercloud# yum update -y
undercloud# yum install -y python-tripleoclient ceph-ansible
undercloud# sync ; sync ; reboot
stack@undercloud$ openstack undercloud install --use-heat=False
stack@undercloud$ cp -ar /etc/yum.repos.d repos
stack@undercloud$ sed -i 's/gpgcheck=1/gpgcheck=0/g' repos/*repo
stack@undercloud$ export DIB_YUM_REPO_CONF="$(ls /home/stack/repos/*repo)"
stack@undercloud$ export STABLE_RELEASE="rocky"
stack@undercloud$ export no_proxy="localhost,127.0.0.1,`hostname -f`"
stack@undercloud$ sudo mkdir /var/lib/ironic/httpboot/
stack@undercloud$ sudo chown -R ironic:ironic /var/lib/ironic
stack@undercloud$ sudo sed -i '/disable-nouveau/d' /usr/share/openstack-tripleo-common/image-yaml/overcloud-images.yaml
stack@undercloud$ openstack overcloud image build
stack@undercloud$ source stackrc
stack@undercloud$ openstack overcloud image upload
stack@undercloud$ 

Do not think it is a good solution, but that at least helped me to move forward...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-12-18 03:51:57 -0500

Seen: 279 times

Last updated: Jan 02