From 1348ac990df40c504056a235156979629b844e8a Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Thu, 4 Apr 2019 22:30:24 +0900 Subject: [PATCH] stack.sh: Clear OpenStack related envvars stack.sh usually fails when it is started in a shell session where OpenStack related environment variables OS_* are set. Most common failure scenarios are failures in keystone operations. This commits clears OpenStack related environment variables at the begining of stack.sh. Change-Id: I3a924a0586dc9bb28f3bf3e151e100c24015efe5 --- stack.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack.sh b/stack.sh index dfc9d24f51..396d742c72 100755 --- a/stack.sh +++ b/stack.sh @@ -60,6 +60,9 @@ unset LANGUAGE LC_ALL=en_US.utf8 export LC_ALL +# Clear all OpenStack related envvars +unset `env | grep -E '^OS_' | cut -d = -f 1` + # Make sure umask is sane umask 022