Merge "Config graceful_shutdown_timeout option for services"
This commit is contained in:
commit
4300f83acf
@ -355,7 +355,7 @@ function configure_cinder {
|
|||||||
iniset $CINDER_CONF DEFAULT os_privileged_user_name nova
|
iniset $CINDER_CONF DEFAULT os_privileged_user_name nova
|
||||||
iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD"
|
iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD"
|
||||||
iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_TENANT_NAME"
|
iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_TENANT_NAME"
|
||||||
|
iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
|
||||||
}
|
}
|
||||||
|
|
||||||
# create_cinder_accounts() - Set up common required cinder accounts
|
# create_cinder_accounts() - Set up common required cinder accounts
|
||||||
|
@ -115,6 +115,7 @@ function configure_glance {
|
|||||||
configure_auth_token_middleware $GLANCE_REGISTRY_CONF glance $GLANCE_AUTH_CACHE_DIR/registry
|
configure_auth_token_middleware $GLANCE_REGISTRY_CONF glance $GLANCE_AUTH_CACHE_DIR/registry
|
||||||
iniset $GLANCE_REGISTRY_CONF DEFAULT notification_driver messaging
|
iniset $GLANCE_REGISTRY_CONF DEFAULT notification_driver messaging
|
||||||
iniset_rpc_backend glance $GLANCE_REGISTRY_CONF
|
iniset_rpc_backend glance $GLANCE_REGISTRY_CONF
|
||||||
|
iniset $GLANCE_REGISTRY_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
|
||||||
|
|
||||||
cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF
|
cp $GLANCE_DIR/etc/glance-api.conf $GLANCE_API_CONF
|
||||||
iniset $GLANCE_API_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
|
iniset $GLANCE_API_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
|
||||||
@ -149,6 +150,7 @@ function configure_glance {
|
|||||||
iniset $GLANCE_API_CONF glance_store swift_store_config_file $GLANCE_SWIFT_STORE_CONF
|
iniset $GLANCE_API_CONF glance_store swift_store_config_file $GLANCE_SWIFT_STORE_CONF
|
||||||
iniset $GLANCE_API_CONF glance_store default_swift_reference ref1
|
iniset $GLANCE_API_CONF glance_store default_swift_reference ref1
|
||||||
iniset $GLANCE_API_CONF glance_store stores "file, http, swift"
|
iniset $GLANCE_API_CONF glance_store stores "file, http, swift"
|
||||||
|
iniset $GLANCE_API_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
|
||||||
|
|
||||||
iniset $GLANCE_SWIFT_STORE_CONF ref1 user $SERVICE_TENANT_NAME:glance-swift
|
iniset $GLANCE_SWIFT_STORE_CONF ref1 user $SERVICE_TENANT_NAME:glance-swift
|
||||||
iniset $GLANCE_SWIFT_STORE_CONF ref1 key $SERVICE_PASSWORD
|
iniset $GLANCE_SWIFT_STORE_CONF ref1 key $SERVICE_PASSWORD
|
||||||
|
1
lib/nova
1
lib/nova
@ -668,6 +668,7 @@ function create_nova_conf {
|
|||||||
iniset $NOVA_CONF serial_console serialproxy_host "$NOVA_SERVICE_LISTEN_ADDRESS"
|
iniset $NOVA_CONF serial_console serialproxy_host "$NOVA_SERVICE_LISTEN_ADDRESS"
|
||||||
iniset $NOVA_CONF serial_console enabled True
|
iniset $NOVA_CONF serial_console enabled True
|
||||||
fi
|
fi
|
||||||
|
iniset $NOVA_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
|
||||||
}
|
}
|
||||||
|
|
||||||
function init_nova_cells {
|
function init_nova_cells {
|
||||||
|
3
stackrc
3
stackrc
@ -673,6 +673,9 @@ fi
|
|||||||
# Service startup timeout
|
# Service startup timeout
|
||||||
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|
||||||
|
|
||||||
|
# Service graceful shutdown timeout
|
||||||
|
SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT=${SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT:-5}
|
||||||
|
|
||||||
# Support alternative yum -- in future Fedora 'dnf' will become the
|
# Support alternative yum -- in future Fedora 'dnf' will become the
|
||||||
# only supported installer, but for now 'yum' and 'dnf' are both
|
# only supported installer, but for now 'yum' and 'dnf' are both
|
||||||
# available in parallel with compatible CLIs. Allow manual switching
|
# available in parallel with compatible CLIs. Allow manual switching
|
||||||
|
Loading…
Reference in New Issue
Block a user