Bug 1299604

Summary: ERROR: openstack Failed to parse: 2001:db8:fd00:1000:f816:3eff:fef3:5451:8774
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: os-cloud-configAssignee: Jay Dobies <jason.dobies>
Status: CLOSED ERRATA QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: dmacpher, emacchi, kbasil, mburns, rhel-osp-director-maint, srevivo
Target Milestone: y3   
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: os-cloud-config-0.2.8-13.el7ost Doc Type: Bug Fix
Doc Text:
Keystone endpoint creation failed due to incorrectly parsed IPv6 addresses. This fix modifies the Keystone client creation mechanism to correctly parse IPv6 addresses. 'os-cloud-config' now creates Keystone endpoints successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 16:50:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marius Cornea 2016-01-18 18:07:26 UTC
Description of problem:
During post config the following error shows up:
ERROR: openstack Failed to parse: 2001:db8:fd00:1000:f816:3eff:fef3:5451:8774

| nova       | computev3     | regionOne                                                                                                  |
|            |               |   publicURL: http://2001:db8:fd00:1000:f816:3eff:fef3:5451:8774/v3                                         |
|            |               |   internalURL: http://2001:db8:fd00:1000:f816:3eff:fef3:5451:8774/v3                                       |
|            |               |   adminURL: http://2001:db8:fd00:1000:f816:3eff:fef3:5451:8774/v3                           

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Deploy ipv6 enabled overcloud 

Actual results:
Deploying templates in the directory /home/stack/templates/my-overcloud
The following cert files already exist, use --rebuild to remove the existing files before regenerating:
/etc/keystone/ssl/certs/ca.pem already exists
/etc/keystone/ssl/private/signing_key.pem already exists
/etc/keystone/ssl/certs/signing_cert.pem already exists
Connection to closed.
ERROR: openstack Failed to parse: 2001:db8:fd00:1000:f816:3eff:fef3:5451:8774

Expected results:
No error shows up.

Comment 3 Emilien Macchi 2016-01-18 19:47:48 UTC
slagle pointed out on IRC that https://github.com/openstack/os-cloud-config/blob/master/os_cloud_config/keystone.py#L346 is the code that manage endpoints in OSP7.

The {host} value does not contain brackets when running IPv6, which is the bug here.
James is working on a patch in os-cloud-config to add brackets when the IP is v6.

Comment 6 errata-xmlrpc 2016-02-18 16:50:17 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.