collect from remote hosts is not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Eric MacDonald |
Bug Description
Brief Description
-----------------
collect is failing to source the openrc file needed to execute system commands to get inventory.
The openrc file has been moved to /etc/platform but collect expects it to be in /etc/nova.
Severity
--------
Minor - not service impacting. Can collect hosts individually.
Steps to Reproduce
------------------
'collect all' from active controller
Expected Behavior
------------------
system logs are collected
Actual Behavior
----------------
Request is rejected
Reproducibility
---------------
100% Reproducible
System Configuration
-------
All
Branch/Pull Time/Commit
-------
https:/
Timestamp/Logs
--------------
With controller-1 active
controller-1:~$ collect all
Error: can only run collect for remote hosts on active controller (reason:35)
tags: |
added: stx.2.0 removed: stx.2019.05 |
Reviewed: https:/ /review. openstack. org/643933 /git.openstack. org/cgit/ openstack/ stx-integ/ commit/ ?id=81a1a248cb4 774b6082e821ffd 3f946a9af63fbe
Committed: https:/
Submitter: Zuul
Branch: master
commit 81a1a248cb4774b 6082e821ffd3f94 6a9af63fbe
Author: Eric MacDonald <email address hidden>
Date: Sun Mar 17 15:36:15 2019 -0400
Change collect to use /etc/platform/ openrc
The collect tool is failing to source the openrc file
needed to execute system commands to get inventory.
The openrc file has been moved to /etc/platform but
collect expects it to be in /etc/nova.
This update changes collect to source openrc from
/etc/platform in collect_utils and avoids needless
sourcing of that same file multiple times from the
other collect scripts. All collect scripts source
collect_utils.
The update also removes reference to the also recently
removed keyring which is also breaking collect in the
very same way.
Test Plan:
Run collect on individual hosts
Run collect all
Change-Id: I75ff6d3cb8f25a 9d0dca182837c7d 1b4854896d9
Closes-Bug: 1820421
Signed-off-by: Eric MacDonald <email address hidden>