integ/tools
Eric MacDonald 41e60486af Fix sourcing openrc in collect
The openrc file is being sourced in a short lived
shell rather than in the shell of the sourcing code.

As a result the environment created by the 'source'
does not persist and the inventory request fails
which prevents collect from learning/validating
remote host names.

This update corrects that and makes the code block
involved in learning openrc variables a function
call rather than inline whenever collect_utils
is sourced.

Test Plan:

PASS: Verify collect all with no openrc already sourced
PASS: Verify collect select hosts (same no pre-openrc)
PASS: Verify collect self controller (same no pre-openrc)
PASS: Verify collect of self on compute

Change-Id: I41a097d9d751351f178a1366eb76dfb526c57b19
Closes-Bug: 1837412
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-07-22 16:52:17 -04:00
..
collector Fix sourcing openrc in collect 2019-07-22 16:52:17 -04:00
engtools integ: Convert wrsroot -> sysadmin 2019-06-14 15:09:09 -07:00
monitor-tools Refactor patches for initscripts package 2018-11-21 01:26:32 +00:00
spec-tools speclint: only show the diff files 2019-06-27 10:36:24 -07:00
storage-topology/storage-topology Enable Flake8 Docstring Errors 2019-04-18 11:50:45 -04:00
vm-topology Enable Flake8 Docstring Errors 2019-04-18 11:50:45 -04:00