diff --git a/extraconfig/post_deploy/undercloud_post.sh b/extraconfig/post_deploy/undercloud_post.sh index 3cb78a9749..6e84e42f13 100755 --- a/extraconfig/post_deploy/undercloud_post.sh +++ b/extraconfig/post_deploy/undercloud_post.sh @@ -12,6 +12,9 @@ touch $HOMEDIR/stackrc chmod 0600 $HOMEDIR/stackrc cat > $HOMEDIR/stackrc <<-EOF_CAT +# Clear any old environment that may conflict. +for key in \$( set | awk -F= '/^OS_/ {print \$1}' ); do unset "\${key}" ; done + export OS_AUTH_TYPE=password export OS_PASSWORD=$admin_password export OS_AUTH_URL=$auth_url