Skip to content

Commit 46d50a6

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Add a debugging userrc after keystone is up"
2 parents d111182 + 7adf15d commit 46d50a6

1 file changed

Lines changed: 21 additions & 8 deletions

File tree

stack.sh

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,14 +1016,27 @@ if is_service_enabled keystone; then
10161016
# Begone token auth
10171017
unset OS_TOKEN OS_URL
10181018

1019-
# Set up password auth credentials now that Keystone is bootstrapped
1020-
export OS_AUTH_URL=$KEYSTONE_AUTH_URI
1021-
export OS_USERNAME=admin
1022-
export OS_USER_DOMAIN_ID=default
1023-
export OS_PASSWORD=$ADMIN_PASSWORD
1024-
export OS_PROJECT_NAME=admin
1025-
export OS_PROJECT_DOMAIN_ID=default
1026-
export OS_REGION_NAME=$REGION_NAME
1019+
# Rather than just export these, we write them out to a
1020+
# intermediate userrc file that can also be used to debug if
1021+
# something goes wrong between here and running
1022+
# tools/create_userrc.sh (this script relies on services other
1023+
# than keystone being available, so we can't call it right now)
1024+
cat > $TOP_DIR/userrc_early <<EOF
1025+
# Use this for debugging issues before files in accrc are created
1026+
1027+
# Set up password auth credentials now that Keystone is bootstrapped
1028+
export OS_AUTH_URL=$KEYSTONE_AUTH_URI
1029+
export OS_USERNAME=admin
1030+
export OS_USER_DOMAIN_ID=default
1031+
export OS_PASSWORD=$ADMIN_PASSWORD
1032+
export OS_PROJECT_NAME=admin
1033+
export OS_PROJECT_DOMAIN_ID=default
1034+
export OS_REGION_NAME=$REGION_NAME
1035+
1036+
EOF
1037+
1038+
source $TOP_DIR/userrc_early
1039+
10271040
fi
10281041

10291042
# Write a clouds.yaml file

0 commit comments

Comments
 (0)