image_uploader get_undercloud_registry() not python3 friendly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Harald Jensås |
Bug Description
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(
>>> cmd = ['getent', 'hosts', ctlplane_hostname]
>>> process = subprocess.
>>> out, err = process.
>>> 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(
>>> cmd = ['getent', 'hosts', ctlplane_hostname]
>>> process = subprocess.
>>> out, err = process.
>>> address = out.split()[1]
>>> type(address)
<class 'bytes'>
file: tripleo_
L104 process = subprocess.
We need to add universal_
Fix proposed to branch: master /review. opendev. org/689815
Review: https:/