undercloud_public_host doesn't work with IPv6

Bug #1827897 reported by Bob Fournier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Bob Fournier

Bug Description

When trying to set public endpoints to serve over IPv6, stackrc creation fails due to missing logic for parsing IPv6 address for OS_AUTH_URL

Steps to Reproduce:
1. Add undercloud_public_host = <IPv6 address>
2. run openstack undercloud install

Actual results:

2019-04-02 12:04:04,679 INFO: Failed to discover available identity versions when contacting https://2001:db8::b2:13000/. Attempting to parse version from URL.
2019-04-02 12:04:04,680 INFO: Could not determine a suitable URL for the plugin
2019-04-02 12:04:04,724 INFO: + openstack quota set --cores -1 --instances -1 --ram -1
2019-04-02 12:04:05,450 INFO: Failed to discover available identity versions when contacting https://2001:db8::b2:13000/. Attempting to parse version from URL.
2019-04-02 12:04:05,450 INFO: Could not determine a suitable URL for the plugin
2019-04-02 12:04:05,498 INFO: [2019-04-02 12:04:05,498] (os-refresh-config) [ERROR] during post-configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/post-configure.d']' returned non-zero exit status 1]
2019-04-02 12:04:05,498 INFO:
2019-04-02 12:04:05,498 INFO: [2019-04-02 12:04:05,498] (os-refresh-config) [ERROR] Aborting...
2019-04-02 12:04:05,507 DEBUG: An exception occurred
Traceback (most recent call last):
 File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 2389, in install
   _run_orc(instack_env)
 File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1604, in _run_orc
   _run_live_command(args, instack_env, 'os-refresh-config')
 File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 673, in _run_live_command
   raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
2019-04-02 12:04:05,508 ERROR:
#############################################################################
Undercloud install failed.

Bob Fournier (bfournie)
Changed in tripleo:
assignee: nobody → Bob Fournier (bfournie)
status: New → In Progress
Revision history for this message
Emilien Macchi (emilienm) wrote :

Just be aware this bug is more or less related to what I'm doing in https://review.opendev.org/655777

Changed in tripleo:
milestone: none → train-1
importance: Undecided → Medium
Revision history for this message
Emilien Macchi (emilienm) wrote :
Revision history for this message
Emilien Macchi (emilienm) wrote :

oh sorry your bug is for instack-undercloud...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/rocky)

Reviewed: https://review.opendev.org/656579
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=11d9fef529300a9268417979d701f45e100f0241
Submitter: Zuul
Branch: stable/rocky

commit 11d9fef529300a9268417979d701f45e100f0241
Author: Bob Fournier <email address hidden>
Date: Tue Apr 30 16:04:01 2019 -0400

    Wrap the undercloud public_host IP for IPv6

    In order to handle IPv6 SSL deployments, bracket the undercloud public_host IP address
    with '[',']' for IPv6.

    Closes-Bug: #1827897
    Change-Id: I4e08f9cda1663d4a9fd90f689363e495be3c66d1

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/657586

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/queens)

Reviewed: https://review.opendev.org/657586
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=5babfee11193d7736d4ab5142121392b7887344c
Submitter: Zuul
Branch: stable/queens

commit 5babfee11193d7736d4ab5142121392b7887344c
Author: Bob Fournier <email address hidden>
Date: Tue Apr 30 16:04:01 2019 -0400

    Wrap the undercloud public_host IP for IPv6

    In order to handle IPv6 SSL deployments, bracket the undercloud public_host IP address
    with '[',']' for IPv6.

    Closes-Bug: #1827897
    Change-Id: I4e08f9cda1663d4a9fd90f689363e495be3c66d1
    (cherry picked from commit 11d9fef529300a9268417979d701f45e100f0241)

tags: added: in-stable-queens
Changed in tripleo:
milestone: train-1 → train-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 8.4.8

This issue was fixed in the openstack/instack-undercloud 8.4.8 release.

Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 9.5.1

This issue was fixed in the openstack/instack-undercloud 9.5.1 release.

Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
Bob Fournier (bfournie)
Changed in tripleo:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.