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
| ... | ... |
@@ -1034,36 +1034,6 @@ if is_service_enabled keystone; then |
| 1034 | 1034 |
export OS_REGION_NAME=$REGION_NAME |
| 1035 | 1035 |
fi |
| 1036 | 1036 |
|
| 1037 |
-# We now have a working keystone. From this point, everything can be done |
|
| 1038 |
-# with normal auth. Let's write out the auth config files so that if something |
|
| 1039 |
-# goes wrong subsequently, developers debugging have stackrc and clouds.yaml |
|
| 1040 |
-# files to use to poke at things |
|
| 1041 |
- |
|
| 1042 |
-# Create account rc files |
|
| 1043 |
-# ======================= |
|
| 1044 |
- |
|
| 1045 |
-# Creates source able script files for easier user switching. |
|
| 1046 |
-# This step also creates certificates for tenants and users, |
|
| 1047 |
-# which is helpful in image bundle steps. |
|
| 1048 |
- |
|
| 1049 |
-if is_service_enabled nova && is_service_enabled keystone; then |
|
| 1050 |
- USERRC_PARAMS="-PA --target-dir $TOP_DIR/accrc" |
|
| 1051 |
- |
|
| 1052 |
- if [ -f $SSL_BUNDLE_FILE ]; then |
|
| 1053 |
- USERRC_PARAMS="$USERRC_PARAMS --os-cacert $SSL_BUNDLE_FILE" |
|
| 1054 |
- fi |
|
| 1055 |
- |
|
| 1056 |
- if [[ "$HEAT_STANDALONE" = "True" ]]; then |
|
| 1057 |
- USERRC_PARAMS="$USERRC_PARAMS --heat-url http://$HEAT_API_HOST:$HEAT_API_PORT/v1" |
|
| 1058 |
- fi |
|
| 1059 |
- |
|
| 1060 |
- $TOP_DIR/tools/create_userrc.sh $USERRC_PARAMS |
|
| 1061 |
-fi |
|
| 1062 |
- |
|
| 1063 |
- |
|
| 1064 |
-# Save some values we generated for later use |
|
| 1065 |
-save_stackenv |
|
| 1066 |
- |
|
| 1067 | 1037 |
# Write a clouds.yaml file |
| 1068 | 1038 |
write_clouds_yaml |
| 1069 | 1039 |
|
| ... | ... |
@@ -1306,6 +1276,32 @@ if is_service_enabled heat; then |
| 1306 | 1306 |
fi |
| 1307 | 1307 |
|
| 1308 | 1308 |
|
| 1309 |
+# Create account rc files |
|
| 1310 |
+# ======================= |
|
| 1311 |
+ |
|
| 1312 |
+# Creates source able script files for easier user switching. |
|
| 1313 |
+# This step also creates certificates for tenants and users, |
|
| 1314 |
+# which is helpful in image bundle steps. |
|
| 1315 |
+ |
|
| 1316 |
+if is_service_enabled nova && is_service_enabled keystone; then |
|
| 1317 |
+ USERRC_PARAMS="-PA --target-dir $TOP_DIR/accrc" |
|
| 1318 |
+ |
|
| 1319 |
+ if [ -f $SSL_BUNDLE_FILE ]; then |
|
| 1320 |
+ USERRC_PARAMS="$USERRC_PARAMS --os-cacert $SSL_BUNDLE_FILE" |
|
| 1321 |
+ fi |
|
| 1322 |
+ |
|
| 1323 |
+ if [[ "$HEAT_STANDALONE" = "True" ]]; then |
|
| 1324 |
+ USERRC_PARAMS="$USERRC_PARAMS --heat-url http://$HEAT_API_HOST:$HEAT_API_PORT/v1" |
|
| 1325 |
+ fi |
|
| 1326 |
+ |
|
| 1327 |
+ $TOP_DIR/tools/create_userrc.sh $USERRC_PARAMS |
|
| 1328 |
+fi |
|
| 1329 |
+ |
|
| 1330 |
+ |
|
| 1331 |
+# Save some values we generated for later use |
|
| 1332 |
+save_stackenv |
|
| 1333 |
+ |
|
| 1334 |
+ |
|
| 1309 | 1335 |
# Wrapup configuration |
| 1310 | 1336 |
# ==================== |
| 1311 | 1337 |
|