The check to $service_port must be done using http. It's
$KEYSTONE_SERVICE_PORT that may use either the http or https protocol.
partial blueprint devstack-https
Change-Id: I8ae081e9710c54396b765210336a7de331947086
| ... | ... |
@@ -446,7 +446,10 @@ function start_keystone {
|
| 446 | 446 |
fi |
| 447 | 447 |
|
| 448 | 448 |
echo "Waiting for keystone to start..." |
| 449 |
- if ! timeout $SERVICE_TIMEOUT sh -c "while ! curl --noproxy '*' -k -s $KEYSTONE_AUTH_PROTOCOL://$SERVICE_HOST:$service_port/v$IDENTITY_API_VERSION/ >/dev/null; do sleep 1; done"; then |
|
| 449 |
+ # Check that the keystone service is running. Even if the tls tunnel |
|
| 450 |
+ # should be enabled, make sure the internal port is checked using |
|
| 451 |
+ # unencryted traffic at this point. |
|
| 452 |
+ if ! timeout $SERVICE_TIMEOUT sh -c "while ! curl --noproxy '*' -k -s http://$KEYSTONE_SERVICE_HOST:$service_port/v$IDENTITY_API_VERSION/ >/dev/null; do sleep 1; done"; then |
|
| 450 | 453 |
die $LINENO "keystone did not start" |
| 451 | 454 |
fi |
| 452 | 455 |
|