Not able to pull the container image using the local_registry_images.yaml file

Latest response

I am setting up a new Redhat Openstack 12 environment using RHEL 7.3. I am in the chapter 5: CONFIGURING CONTAINER REGISTRY DETAILS.
While running the command sudo openstack overcloud container image upload --config-file /home/stack/local_registry_images.yaml --verbose
I am getting following error.

START with options: [u'overcloud', u'container', u'image', u'upload', u'--config-file', u'/home/stack/local_registry_images.yaml', u'--verbose']
command: overcloud container image upload -> tripleoclient.v1.container_image.UploadImage (auth=False)
Using config files: [u'/home/stack/local_registry_images.yaml']
imagename: registry.access.redhat.com/rhosp12/openstack-aodh-api:12.0-20180124.1
UnixHTTPConnectionPool(host='localhost', port=None): Read timed out.
END return value: 1

and help to resolve this issue would be appreciated. Thanks

Responses

I had the same issue when trying to use a proxy with docker - here is how I resolved it:

  • check docker status: sudo systemctl status docker.service
  • from there saw the IP address of the registry it was failing to connect to, which was my undercloud local_ip
Jan 30 20:34:03 director.mycompany.local dockerd-current[14065]: time="2018-01-30T20:34:03.030808356-06:00" level=error msg="Not continuing with push after error: Get https://XX.XX.XX.XX:8787/v1/_pin...way Time-out"
  • added undercloud local_ip address to NO_PROXY in my /etc/systemd/system/docker.service.d/http-proxy.conf file, so it now looks like:
  # cat /etc/systemd/system/docker.service.d/http-proxy.conf
  [Service]
  Environment="HTTP_PROXY=http://localhost:3128"
  Environment="HTTPS_PROXY=https://localhost:3128" 
  Environment="NO_PROXY=localhost,127.0.0.0/8,XX.XX.XX.XX"  #<-- where XX.XX.XX.XX is my undercloud IP
  • then sudo systemctl daemon-reload and sudo systemctl restart docker

Hope that helps

It worked. Thanks a lot Dale!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.