Merge "Fix infra upgrade"
This commit is contained in:
commit
5c22ce22a3
@ -262,6 +262,10 @@ if [[ "${ACTION}" == "upgrade" ]]; then
|
||||
echo 'YES' | bash "${OSA_CLONE_DIR}/scripts/run-upgrade.sh"
|
||||
|
||||
if [[ $SCENARIO =~ "infra" ]]; then
|
||||
# TODO(noonedeadpunk): Remove after Y release
|
||||
set -a
|
||||
. ${OSA_CLONE_DIR}/scripts/upgrade-utilities/unset-ansible-env.rc
|
||||
set +a
|
||||
# Verify our infra setup after upgrade
|
||||
openstack-ansible ${OSA_CLONE_DIR}/playbooks/healthcheck-infrastructure.yml -e osa_gather_facts=False
|
||||
fi
|
||||
|
@ -166,13 +166,7 @@ function main {
|
||||
unset ANSIBLE_INVENTORY
|
||||
|
||||
# TODO(noonedeadpunk): Remove after Y release
|
||||
unset ANSIBLE_LIBRARY
|
||||
unset ANSIBLE_FILTER_PLUGINS
|
||||
unset ANSIBLE_ACTION_PLUGINS
|
||||
unset ANSIBLE_CALLBACK_PLUGINS
|
||||
unset ANSIBLE_TRANSPORT
|
||||
unset ANSIBLE_STRATEGY_PLUGINS
|
||||
unset ANSIBLE_CONNECTION_PLUGINS
|
||||
source ${SCRIPTS_PATH}/upgrade-utilities/unset-ansible-env.rc
|
||||
|
||||
bootstrap_ansible
|
||||
|
||||
|
7
scripts/upgrade-utilities/unset-ansible-env.rc
Normal file
7
scripts/upgrade-utilities/unset-ansible-env.rc
Normal file
@ -0,0 +1,7 @@
|
||||
unset ANSIBLE_LIBRARY
|
||||
unset ANSIBLE_FILTER_PLUGINS
|
||||
unset ANSIBLE_ACTION_PLUGINS
|
||||
unset ANSIBLE_CALLBACK_PLUGINS
|
||||
unset ANSIBLE_TRANSPORT
|
||||
unset ANSIBLE_STRATEGY_PLUGINS
|
||||
unset ANSIBLE_CONNECTION_PLUGINS
|
Loading…
Reference in New Issue
Block a user