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.
Just be aware this bug is more or less related to what I'm doing in https:/ /review. opendev. org/655777