implement is_sahara_enabled
The is_service_enabled method in devstack requires is_sahara_enabled to be defined somewhere to be used in additional selectors like for tempest configuration and possibly upgrade work later. While trying to build a composit job that ran trove / heat / sahara tests all together this was found to be missing, so sahara never got configured for tempest. Change-Id: I69acf6ab2d74d02e9fe8e2d419e54c9367fca500
This commit is contained in:
parent
6b7e82863d
commit
1231b1630b
@ -198,8 +198,18 @@ function stop_sahara {
|
||||
stop_process sahara-eng
|
||||
}
|
||||
|
||||
# is_sahara_enabled. This allows is_service_enabled sahara work
|
||||
# correctly throughout devstack.
|
||||
function is_sahara_enabled {
|
||||
if is_service_enabled sahara-api || is_service_enabled sahara-eng; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Dispatcher for Sahara plugin
|
||||
if is_service_enabled sahara || is_service_enabled sahara-api || is_service_enabled sahara-eng; then
|
||||
if is_service_enabled sahara; then
|
||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||
echo_summary "Installing sahara"
|
||||
install_sahara
|
||||
|
Loading…
Reference in New Issue
Block a user