| ... | ... |
@@ -355,7 +355,7 @@ function configure_cinder {
|
| 355 | 355 |
iniset $CINDER_CONF DEFAULT os_privileged_user_name nova |
| 356 | 356 |
iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD" |
| 357 | 357 |
iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_TENANT_NAME" |
| 358 |
- |
|
| 358 |
+ iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT" |
|
| 359 | 359 |
} |
| 360 | 360 |
|
| 361 | 361 |
# create_cinder_accounts() - Set up common required cinder accounts |
| ... | ... |
@@ -115,6 +115,7 @@ function configure_glance {
|
| 115 | 115 |
configure_auth_token_middleware $GLANCE_REGISTRY_CONF glance $GLANCE_AUTH_CACHE_DIR/registry |
| 116 | 116 |
iniset $GLANCE_REGISTRY_CONF DEFAULT notification_driver messaging |
| 117 | 117 |
iniset_rpc_backend glance $GLANCE_REGISTRY_CONF |
| 118 |
+ iniset $GLANCE_REGISTRY_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT" |
|
| 118 | 119 |
|
| 119 | 120 |
cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF |
| 120 | 121 |
iniset $GLANCE_API_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL |
| ... | ... |
@@ -149,6 +150,7 @@ function configure_glance {
|
| 149 | 149 |
iniset $GLANCE_API_CONF glance_store swift_store_config_file $GLANCE_SWIFT_STORE_CONF |
| 150 | 150 |
iniset $GLANCE_API_CONF glance_store default_swift_reference ref1 |
| 151 | 151 |
iniset $GLANCE_API_CONF glance_store stores "file, http, swift" |
| 152 |
+ iniset $GLANCE_API_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT" |
|
| 152 | 153 |
|
| 153 | 154 |
iniset $GLANCE_SWIFT_STORE_CONF ref1 user $SERVICE_TENANT_NAME:glance-swift |
| 154 | 155 |
iniset $GLANCE_SWIFT_STORE_CONF ref1 key $SERVICE_PASSWORD |
| ... | ... |
@@ -668,6 +668,7 @@ function create_nova_conf {
|
| 668 | 668 |
iniset $NOVA_CONF serial_console serialproxy_host "$NOVA_SERVICE_LISTEN_ADDRESS" |
| 669 | 669 |
iniset $NOVA_CONF serial_console enabled True |
| 670 | 670 |
fi |
| 671 |
+ iniset $NOVA_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT" |
|
| 671 | 672 |
} |
| 672 | 673 |
|
| 673 | 674 |
function init_nova_cells {
|
| ... | ... |
@@ -673,6 +673,9 @@ fi |
| 673 | 673 |
# Service startup timeout |
| 674 | 674 |
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|
| 675 | 675 |
|
| 676 |
+# Service graceful shutdown timeout |
|
| 677 |
+SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT=${SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT:-5}
|
|
| 678 |
+ |
|
| 676 | 679 |
# Support alternative yum -- in future Fedora 'dnf' will become the |
| 677 | 680 |
# only supported installer, but for now 'yum' and 'dnf' are both |
| 678 | 681 |
# available in parallel with compatible CLIs. Allow manual switching |