From: Todd Malsbary Date: Mon, 2 May 2022 21:50:32 +0000 (-0700) Subject: Fix error during jump_server_clean X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=6082a17d1caf5a595e574f546114d2fc418ae7ec;p=icn.git Fix error during jump_server_clean This fixes a failure in CI runs where ssh to the jump server fails because host key checking is enabled: the kubespray ansible.cfg explicitly disables it, so source the ANSIBLE_CONFIG environment variable before teardown. Signed-off-by: Todd Malsbary Change-Id: I4dc8c2465536d32243ca93e639b4282c31677430 --- diff --git a/deploy/kud/kud_bm_launch.sh b/deploy/kud/kud_bm_launch.sh index 6b5aa89..9ba2d40 100755 --- a/deploy/kud/kud_bm_launch.sh +++ b/deploy/kud/kud_bm_launch.sh @@ -64,6 +64,8 @@ function kud_install { } function kud_reset { + # Pick up the kubespray ANSIBLE_CONFIG from /etc/environment + source /etc/environment pushd ${KUDPATH}/kud/hosting_providers/vagrant/ ansible-playbook -i inventory/hosts.ini /opt/kubespray-${KUBESPRAY_VERSION}/reset.yml \ --become --become-user=root -e reset_confirmation=yes