Failed to upload images: /etc/httpd/conf.d/image-serve.conf: RedirectMatch ^/$ /v2 /var/log/tripleo-container-image-prepare.log: bject at 0x7fe20f1264a8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /v2/ 2019-10-16 12:21:35,108 14982 DEBUG urllib3.connectionpool [ ] Starting new HTTPS connection (9): b'undercloud-0.ctlplane.localdomain':8787 2019-10-16 12:21:35,108 14982 ERROR root [ ] Image prepare failed: HTTPSConnectionPool(host="b'undercloud-0.ctlplane.localdomain'", port=8787): Max retries exceeded with url: /v2/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fe20f126b00>: Failed to establish a new connection: [Errno -2] Name or service not known',)) Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw) File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 57, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): version: openstack-tripleo-puppet-elements-11.1.1-0.20190916195001.32c74e4.el8ost.noarch python3-tripleoclient-12.2.1-0.20191014182840.8ce8b93.el8ost.noarch python3-tripleo-common-11.2.1-0.20191015071308.027a33b.el8ost.noarch openstack-tripleo-common-11.2.1-0.20191015071308.027a33b.el8ost.noarch puppet-tripleo-11.2.1-0.20191015144700.11c9839.el8ost.noarch openstack-tripleo-image-elements-10.5.2-0.20191014184551.bcb1e64.el8ost.noarch ansible-tripleo-ipsec-9.1.1-0.20190513184224.ffe104c.el8ost.noarch openstack-tripleo-validations-11.2.1-0.20191015144707.b1d1af3.el8ost.noarch openstack-tripleo-heat-templates-11.2.1-0.20191015080513.28d7724.el8ost.noarch ansible-role-tripleo-modify-image-1.1.1-0.20191004184828.589486e.el8ost.noarch tripleo-ansible-0.3.1-0.20191014191841.00c45cf.el8ost.noarch python3-tripleoclient-heat-installer-12.2.1-0.20191014182840.8ce8b93.el8ost.noarch openstack-tripleo-common-containers-11.2.1-0.20191015071308.027a33b.el8ost.noarch python3-urllib3-1.24.2-2.el8.noarch RHOS_TRUNK-16.0-RHEL-8-20191015.n.1
Moved to POST, https://review.opendev.org/689068 merged upstream.
This is a py2 vs py3 issue. Python 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> import socket >>> >>> ctlplane_hostname = '.'.join([socket.gethostname().split('.')[0], 'ctlplane']) >>> cmd = ['getent', 'hosts', ctlplane_hostname] >>> process = subprocess.Popen(cmd, stdout=subprocess.PIPE) >>> out, err = process.communicate() >>> address = out.split()[1] >>> type(address) <type 'str'> Python 3.6.8 (default, Jun 7 2019, 12:46:56) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> import socket >>> >>> ctlplane_hostname = '.'.join([socket.gethostname().split('.')[0], 'ctlplane']) >>> cmd = ['getent', 'hosts', ctlplane_hostname] >>> process = subprocess.Popen(cmd, stdout=subprocess.PIPE) >>> out, err = process.communicate() >>> address = out.split()[1] >>> type(address) <class 'bytes'>
Per the Trello card, this has been verified - https://trello.com/c/kIidTGbi/1185-cixbz1762303ospphase1osp16tripleo-commondfimage-upload-failed and is no longer being seen in CI.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:0283