Container image pull in openstack overcloud external-update runs during minor update in RHOSP 16.2 connects to registry.redhat.io
Environment
- Red Hat OpenStack Platform 16.2
Issue
- When running
openstack overcloud external-update run --stack overcloud --tags container_image_prepare
during a minor update of RHOSP 16.2, it connects to registry.redhat.io and pull of container image fails.
WARNING tripleo_common.image.image_uploader [ ] [XXXXXXXX:8787/rhosp-rhel8/openstack-ovn-northd:16.2] Failed to check if the target image exists
WARNING urllib3.connectionpool [ ] Retrying (Retry(total=7, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f14bf52b940>, 'Connection to registry.redhat.io timed out. (connect timeout=30)')': /v2/
- This environment has restricted access to the external network and gets its images from Satellite.
- Even the containers-prepare-parameter.yaml has been modified to add Satellite to a namespace, but it's still access to the registry.redhat.io.
Resolution
- After executing the
openstack overcloud external-update run --stack overcloud --tags container_image_prepare
command, adding parameters to the namespace and making changes to connect to Satellite will require running theopenstack overcloud update prepare
command executed in the previous step once more. - Running
openstack overcloud external-update run --stack overcloud --tags container_image_prepare
again will apply the modified changes from containers-prepare-parameter.yaml.
Root Cause
- The
openstack overcloud update prepare
command relies on the data within the provided containers-prepare-parameter.yaml. Consequently, if the container registry is changed, openstack overcloud update prepare should be executed again to reflect the changes.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments