Debian: OpenStack RC file downloaded from horizon with wrong data and missing variables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Cristian Mondo |
Bug Description
Brief Description
-----------------
The OpenStack RC file downloaded from horizon have the variable OS_AUTH_URL with wrong data. The variable contents in CentOS is "http://
sysadmin@
HTTP Error 404: NOT FOUND
Invalid keystone token
Also, if HTTPS is enabled (it can be enabled using a self-signed certificate through "system modify --https_enabled true"), the openrc file is downloaded from Horizon and the "/v3" fix mentioned above is done in the file, still the following error occurs:
sysadmin@
<urlopen error [SSL: CERTIFICATE_
Invalid keystone token
Severity
--------
Major.
Steps to Reproduce
------------------
Log into horizon page of a Debian AIO-SX deploy, go to "Project -> "API Access", go to "Download OpenStack RC File" -> "OpenStack RC File" and then copy the downloaded file "admin-openrc.sh" to controller. Log through SSH in the controller, source the file "admin-openrc.sh" and execute "sw-manager patch-strategy show".
Expected Behavior
------------------
The command should have no error in the output. Example:
sysadmin@
No strategy available
Actual Behavior
----------------
One of the following errors occurs (the first when https is disabled, the second when https is enabled and the "/v3" fix is present):
sysadmin@
HTTP Error 404: NOT FOUND
Invalid keystone token
sysadmin@
<urlopen error [SSL: CERTIFICATE_
Invalid keystone token
Reproducibility
---------------
100% Reproducible.
System Configuration
-------
Tested in an AIO-SX, should happen in any environment type.
Timestamp/Logs
--------------
N/A.
Alarms
------
N/A.
Test Activity
-------------
Developer Testing.
Workaround
----------
Edit "admin-openrc.sh" file and append "/v3" to the contents of variable OS_AUTH_URL. If https is enabled, then edit "admin-openrc.sh" file and set the values of OS_AUTH_URL and OS_INTERFACE to the same values present in "/etc/platform/
Changed in starlingx: | |
assignee: | nobody → Cristian Mondo (cmondo) |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.8.0 stx.nfv |
Fix proposed to branch: master /review. opendev. org/c/starlingx /nfv/+/ 866841
Review: https:/