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.
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.