remote host collect fails without sourcing openrc first
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Eric MacDonald |
Bug Description
Brief Description
-----------------
collect is not properly loading openrc env variables on its
own which causes collect of remote hosts to fail from the active
controller if the openrc variables are not in context
before collect runs.
Work Around: manually source /etc/platform/
Severity
--------
Major
Steps to Reproduce
------------------
Swact to controller-1
run collect without running openrc
Expected Behavior
------------------
collect of remote hosts succeed
Actual Behavior
----------------
collect of remote hosts fail
Reproducibility
---------------
<Reproducible/
State if the issue is 100% reproducible, intermittent or seen once. If it is intermittent, state the frequency of occurrence
System Configuration
-------
Duplex system
Branch/Pull Time/Commit
-------
SW_VERSION="19.01"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
SRC_BUILD_ID="192"
JOB="Titanium_
BUILD_BY="jenkins"
BUILD_NUMBER="192"
BUILD_HOST=
BUILD_DATE=
Last Pass
---------
Unknown
Timestamp/Logs
--------------
controller-1:~$ collect controller-0
Error: cannot collect data from unknown host 'controller-0' (reason:34)
controller-1:~$ collect compute-1
Error: cannot collect data from unknown host 'compute-1' (reason:34)
controller-1:~$ source /etc/platform/
[sysadmin@
[sudo] password for sysadmin:
Test Activity
-------------
Developer Testing
Changed in starlingx: | |
assignee: | nobody → Eric MacDonald (rocksolidmtce) |
Changed in starlingx: | |
importance: | Undecided → High |
status: | New → Triaged |
When we switch from nova to platform for openrc file I found that the openrc file was being sourced multiple (thinking 3) times. This was causing a large delay when running collect.
The common collect_utils file now sources it and both collect and collect_hosts source the collect_utils.
However it seems the env is not being inherited by collect after sourcing collect_utils as expected.
Need to investigate that.
Quick fix is to just add it back into both scripts.
However, I think its worthwhile figuring out how to properly inherit the env.