Skip to content

Commit a90898d

Browse files
FrostmanJames E. Blair
authored andcommitted
Move sahara client installation to lib/sahara
All other projects installs their clients in the same lib file as the main services. Remove sahara-dashboard installation Sahara dashboard is now merged into the Horizon and enabled by default (when data_processing endpoint is available), so, we should stop installing it as separated dashboard. Change-Id: I1f0e93e1dee3d065c4f00d8bf2042bebc8d45a22
1 parent a7a2b88 commit a90898d

File tree

3 files changed

+13
-81
lines changed

3 files changed

+13
-81
lines changed

extras.d/70-sahara.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,19 @@ if is_service_enabled sahara; then
88
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
99
echo_summary "Installing sahara"
1010
install_sahara
11+
install_python_saharaclient
1112
cleanup_sahara
12-
if is_service_enabled horizon; then
13-
install_sahara_dashboard
14-
fi
1513
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
1614
echo_summary "Configuring sahara"
1715
configure_sahara
1816
create_sahara_accounts
19-
if is_service_enabled horizon; then
20-
configure_sahara_dashboard
21-
fi
2217
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
2318
echo_summary "Initializing sahara"
2419
start_sahara
2520
fi
2621

2722
if [[ "$1" == "unstack" ]]; then
2823
stop_sahara
29-
if is_service_enabled horizon; then
30-
cleanup_sahara_dashboard
31-
fi
3224
fi
3325

3426
if [[ "$1" == "clean" ]]; then

lib/sahara

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# ``stack.sh`` calls the entry points in this order:
88
#
99
# install_sahara
10+
# install_python_saharaclient
1011
# configure_sahara
1112
# start_sahara
1213
# stop_sahara
@@ -24,8 +25,13 @@ set +o xtrace
2425
SAHARA_REPO=${SAHARA_REPO:-${GIT_BASE}/openstack/sahara.git}
2526
SAHARA_BRANCH=${SAHARA_BRANCH:-master}
2627

28+
SAHARA_PYTHONCLIENT_REPO=${SAHARA_PYTHONCLIENT_REPO:-${GIT_BASE}/openstack/python-saharaclient.git}
29+
SAHARA_PYTHONCLIENT_BRANCH=${SAHARA_PYTHONCLIENT_BRANCH:-master}
30+
2731
# Set up default directories
2832
SAHARA_DIR=$DEST/sahara
33+
SAHARA_PYTHONCLIENT_DIR=$DEST/python-saharaclient
34+
2935
SAHARA_CONF_DIR=${SAHARA_CONF_DIR:-/etc/sahara}
3036
SAHARA_CONF_FILE=${SAHARA_CONF_DIR}/sahara.conf
3137

@@ -154,6 +160,12 @@ function install_sahara {
154160
setup_develop $SAHARA_DIR
155161
}
156162

163+
# install_python_saharaclient() - Collect source and prepare
164+
function install_python_saharaclient {
165+
git_clone $SAHARA_PYTHONCLIENT_REPO $SAHARA_PYTHONCLIENT_DIR $SAHARA_PYTHONCLIENT_BRANCH
166+
setup_develop $SAHARA_PYTHONCLIENT_DIR
167+
}
168+
157169
# start_sahara() - Start running processes, including screen
158170
function start_sahara {
159171
screen_it sahara "cd $SAHARA_DIR && $SAHARA_BIN_DIR/sahara-all --config-file $SAHARA_CONF_FILE"

lib/sahara-dashboard

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)