Skip to content

Commit 4972bbc

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Use userrc_early for all nodes"
2 parents 8c7cec5 + a5d965a commit 4972bbc

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

stack.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,21 +1025,12 @@ start_dstat
10251025
# Keystone
10261026
# --------
10271027

1028-
if is_service_enabled keystone; then
1029-
echo_summary "Starting Keystone"
1030-
1031-
if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then
1032-
init_keystone
1033-
start_keystone
1034-
bootstrap_keystone
1035-
fi
1036-
1037-
# Rather than just export these, we write them out to a
1038-
# intermediate userrc file that can also be used to debug if
1039-
# something goes wrong between here and running
1040-
# tools/create_userrc.sh (this script relies on services other
1041-
# than keystone being available, so we can't call it right now)
1042-
cat > $TOP_DIR/userrc_early <<EOF
1028+
# Rather than just export these, we write them out to a
1029+
# intermediate userrc file that can also be used to debug if
1030+
# something goes wrong between here and running
1031+
# tools/create_userrc.sh (this script relies on services other
1032+
# than keystone being available, so we can't call it right now)
1033+
cat > $TOP_DIR/userrc_early <<EOF
10431034
# Use this for debugging issues before files in accrc are created
10441035
10451036
# Set up password auth credentials now that Keystone is bootstrapped
@@ -1054,12 +1045,21 @@ export OS_REGION_NAME=$KEYSTONE_REGION_NAME
10541045
10551046
EOF
10561047

1057-
if is_service_enabled tls-proxy; then
1058-
echo "export OS_CACERT=$INT_CA_DIR/ca-chain.pem" >> $TOP_DIR/userrc_early
1059-
start_tls_proxy http-services '*' 443 $SERVICE_HOST 80
1060-
fi
1048+
if is_service_enabled tls-proxy; then
1049+
echo "export OS_CACERT=$INT_CA_DIR/ca-chain.pem" >> $TOP_DIR/userrc_early
1050+
start_tls_proxy http-services '*' 443 $SERVICE_HOST 80
1051+
fi
1052+
1053+
source $TOP_DIR/userrc_early
1054+
1055+
if is_service_enabled keystone; then
1056+
echo_summary "Starting Keystone"
10611057

1062-
source $TOP_DIR/userrc_early
1058+
if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then
1059+
init_keystone
1060+
start_keystone
1061+
bootstrap_keystone
1062+
fi
10631063

10641064
create_keystone_accounts
10651065
create_nova_accounts

0 commit comments

Comments
 (0)