utilities/tools/collector/scripts
Eric MacDonald ccb603a85e 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
..
LICENSE Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
collect Fix sourcing openrc in collect 2019-07-22 16:52:17 -04:00
collect_ceph.sh Fix linters error and enable linters zuul gate 2018-09-07 01:50:28 +08:00
collect_coredump.sh Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
collect_crash.sh Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
collect_date Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
collect_fm.sh [Enhancement] Add system active alarms in collect logs 2018-12-14 12:27:55 -05:00
collect_host Fix sourcing openrc in collect 2019-07-22 16:52:17 -04:00
collect_ima.sh Fix linters error and enable linters zuul gate 2018-09-07 01:50:28 +08:00
collect_mask_passwords Change collect to use /etc/platform/openrc 2019-03-17 15:36:15 -04:00
collect_networking.sh change 'compute' to 'worker' in collect utils 2019-01-05 09:35:04 +08:00
collect_nfv_vim.sh Fix linters error and enable linters zuul gate 2018-09-07 01:50:28 +08:00
collect_openstack.sh Fix linters error and enable linters zuul gate 2018-09-07 01:50:28 +08:00
collect_ovs.sh change 'compute' to 'worker' in collect utils 2019-01-05 09:35:04 +08:00
collect_parms Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
collect_patching.sh Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
collect_psqldb.sh Fix linters error and enable linters zuul gate 2018-09-07 01:50:28 +08:00
collect_sm.sh Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
collect_sysinv.sh Fix linters error and enable linters zuul gate 2018-09-07 01:50:28 +08:00
collect_tc.sh Fix linters error and enable linters zuul gate 2018-09-07 01:50:28 +08:00
collect_utils Fix sourcing openrc in collect 2019-07-22 16:52:17 -04:00
etc.exclude Updating script references for openrc 2019-04-08 08:46:11 -05:00
expect_done Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00
run.exclude Relocate collector to stx-integ/tools/collector 2018-08-01 12:24:00 -04:00