Revert change I2f8ae86e17d26ec4defa16e843faa8987d27fac9
The commit breaks creation of user rc file. Now devstack doesn't create certificate for user (because it's too early to do it) and doesn't react to changes of EC2/S3 urls if they is recreated by devstack plugins. So the commit totally broke ec2-api gating for example. Change-Id: I069f46f95656655ae7ba8f3dd929f47eae594b68
This commit is contained in:
parent
c4c08686f8
commit
5090142969
56
stack.sh
56
stack.sh
@ -1034,36 +1034,6 @@ if is_service_enabled keystone; then
|
||||
export OS_REGION_NAME=$REGION_NAME
|
||||
fi
|
||||
|
||||
# We now have a working keystone. From this point, everything can be done
|
||||
# with normal auth. Let's write out the auth config files so that if something
|
||||
# goes wrong subsequently, developers debugging have stackrc and clouds.yaml
|
||||
# files to use to poke at things
|
||||
|
||||
# Create account rc files
|
||||
# =======================
|
||||
|
||||
# Creates source able script files for easier user switching.
|
||||
# This step also creates certificates for tenants and users,
|
||||
# which is helpful in image bundle steps.
|
||||
|
||||
if is_service_enabled nova && is_service_enabled keystone; then
|
||||
USERRC_PARAMS="-PA --target-dir $TOP_DIR/accrc"
|
||||
|
||||
if [ -f $SSL_BUNDLE_FILE ]; then
|
||||
USERRC_PARAMS="$USERRC_PARAMS --os-cacert $SSL_BUNDLE_FILE"
|
||||
fi
|
||||
|
||||
if [[ "$HEAT_STANDALONE" = "True" ]]; then
|
||||
USERRC_PARAMS="$USERRC_PARAMS --heat-url http://$HEAT_API_HOST:$HEAT_API_PORT/v1"
|
||||
fi
|
||||
|
||||
$TOP_DIR/tools/create_userrc.sh $USERRC_PARAMS
|
||||
fi
|
||||
|
||||
|
||||
# Save some values we generated for later use
|
||||
save_stackenv
|
||||
|
||||
# Write a clouds.yaml file
|
||||
write_clouds_yaml
|
||||
|
||||
@ -1306,6 +1276,32 @@ if is_service_enabled heat; then
|
||||
fi
|
||||
|
||||
|
||||
# Create account rc files
|
||||
# =======================
|
||||
|
||||
# Creates source able script files for easier user switching.
|
||||
# This step also creates certificates for tenants and users,
|
||||
# which is helpful in image bundle steps.
|
||||
|
||||
if is_service_enabled nova && is_service_enabled keystone; then
|
||||
USERRC_PARAMS="-PA --target-dir $TOP_DIR/accrc"
|
||||
|
||||
if [ -f $SSL_BUNDLE_FILE ]; then
|
||||
USERRC_PARAMS="$USERRC_PARAMS --os-cacert $SSL_BUNDLE_FILE"
|
||||
fi
|
||||
|
||||
if [[ "$HEAT_STANDALONE" = "True" ]]; then
|
||||
USERRC_PARAMS="$USERRC_PARAMS --heat-url http://$HEAT_API_HOST:$HEAT_API_PORT/v1"
|
||||
fi
|
||||
|
||||
$TOP_DIR/tools/create_userrc.sh $USERRC_PARAMS
|
||||
fi
|
||||
|
||||
|
||||
# Save some values we generated for later use
|
||||
save_stackenv
|
||||
|
||||
|
||||
# Wrapup configuration
|
||||
# ====================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user