Bug 1714655

Summary: run-os-net-config.sh does not parse hostname that resolves to IPv6 address properly (OSP-14)
Product: Red Hat OpenStack Reporter: Bob Fournier <bfournie>
Component: openstack-tripleo-heat-templatesAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: agurenko, apevec, aschultz, bdobreli, bfournie, dsneddon, hjensas, hrybacki, lhh, mburns, mlammon, rheslop, ssmolyak
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-9.3.1-0.20190513171724.9995be9.el7ost Doc Type: Bug Fix
Doc Text:
Previously, validation scripts in OSP14 would fail when checking connectivity to API endpoints using hostnames that resolve to an IPv6 address. This patch modifies the validation scripts to properly support environments with hostnames and IPv6 addresses.
Story Points: ---
Clone Of: 1713305 Environment:
Last Closed: 2019-07-02 20:09:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1713305    
Bug Blocks:    

Comment 9 mlammon 2019-06-18 17:03:36 UTC
Environment:
2019-06-10.3

yum info openstack-tripleo-heat-templates
Loaded plugins: search-disabled-repos
rhelosp-14.0-optools-puddle                                                                                                                                                                                 125/125
rhelosp-14.0-puddle                                                                                                                                                                                         856/856
Installed Packages
Name        : openstack-tripleo-heat-templates
Arch        : noarch
Version     : 9.3.1
Release     : 0.20190513171729.9995be9.el7ost
Size        : 4.2 M
Repo        : installed


Code verification only:(undercloud) [stack@undercloud-0 ~]$ grep getent -A 4  /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
    _IP="$(getent hosts $METADATA_IP | awk '{ print $1 }')"
    _ping=ping
    if [[ "$_IP" =~ ":" ]] ; then
        _ping=ping6
    fi

Comment 11 errata-xmlrpc 2019-07-02 20:09:06 UTC
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/RHBA-2019:1672