Brief Description
-----------------
AIO-SX Ansible setup failure during bringup-essential-services
Severity
--------
Critical
Steps to Reproduce
------------------
ansible-playbook /usr/share/ansible/stx-ansible/playbooks/bootstrap.yml
Expected Behavior
------------------
AIO-SX Ansible setup success
Actual Behavior
----------------
2021-01-13 10:12:55,103 p=2241937 u=sysadmin | fatal: [localhost]: FAILED! => {"changed": true, "cmd": "source /etc/platform/openrc; openstack domain create armada-domain; openstack project create --domain armada-domain 'service'; openstack user create --domain armada-domain --project service --project-domain armada-domain --password WkhZUW1KcUt6UVRpVlFGcA== armada; openstack role add --project-domain armada-domain --user-domain armada-domain --user armada --project service admin", "delta": "0:00:19.125913", "end": "2021-01-13 10:12:55.092426", "msg": "non-zero return code", "rc": 1, "start": "2021-01-13 10:12:35.966513", "stderr": "Failed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.\nBad Gateway (HTTP 502)\nFailed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.\nBad Gateway (HTTP 502)\nFailed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.\nBad Gateway (HTTP 502)\nFailed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.\nBad Gateway (HTTP 502)", "stderr_lines": ["Failed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.", "Bad Gateway (HTTP 502)", "Failed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.", "Bad Gateway (HTTP 502)", "Failed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.", "Bad Gateway (HTTP 502)", "Failed to discover available identity versions when contacting http://localhost:5000/v3. Attempting to parse version from URL.", "Bad Gateway (HTTP 502)"], "stdout": "", "stdout_lines": []}
2021-01-13 10:12:55,104 p=2241937 u=sysadmin | PLAY RECAP ************************************************************************************************************************************************************************
2021-01-13 10:12:55,104 p=2241937 u=sysadmin | localhost : ok=265 changed=109 unreachable=0 failed=1
Reproducibility
---------------
100% reproducible
System Configuration
--------------------
Installation type: AIO-SX stx4.0
Host OS: Centos 7
controller-0:~$ cat /etc/build.info
###
### StarlingX
### Release 20.06
###
OS="centos"
SW_VERSION="20.06"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="r/stx.4.0"
JOB="STX_4.0_build_layer_flock"
<email address hidden>"
BUILD_NUMBER="22"
BUILD_HOST="starlingx_mirror"
BUILD_DATE="2020-08-05 12:25:52 +0000"
FLOCK_OS="centos"
FLOCK_JOB="STX_4.0_build_layer_flock"
<email address hidden>"
FLOCK_BUILD_NUMBER="22"
FLOCK_BUILD_HOST="starlingx_mirror"
FLOCK_BUILD_DATE="2020-08-05 12:25:52 +0000"
controller-0:~$ source /etc/platform/openrc
[sysadmin@controller-0 ~(keystone_admin)]$ system host-list
Authorization failed: Bad Gateway (HTTP 502)
[sysadmin@controller-0 ~(keystone_admin)]$ cat /etc/platform/openrc
unset OS_SERVICE_TOKEN
export OS_ENDPOINT_TYPE=internalURL
export CINDER_ENDPOINT_TYPE=internalURL
export OS_USERNAME=admin
export OS_PASSWORD=`TERM=linux /opt/platform/.keyring/20.06/.CREDENTIAL 2>/dev/null`
export OS_AUTH_TYPE=password
export OS_AUTH_URL=http://localhost:5000/v3
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=RegionOne
export OS_INTERFACE=internal
if [ ! -z "${OS_PASSWORD}" ]; then
export PS1='[\u@\h \W(keystone_$OS_USERNAME)]\$ '
else
echo 'Openstack Admin credentials can only be loaded from the active controller.'
export PS1='\h:\w\$ '
fi
Branch/Pull Time/Commit
-----------------------
http://mirror.starlingx.cengn.ca/mirror/starlingx/release/4.0.1/centos/flock/outputs/iso/ 05-Aug-2020 18:01
Last Pass
---------
Unknown
Test Activity
-------------
Evaluation
Workaround
----------
none
StarlingX R4.0 bare metal All-in-one Simplex deployment configuration.