Sahara supports running in distributed mode. Need to add this ability in
devstack.
Changes:
* configure rpc backend for sahara by default
* added sahara-api service for running api side
* added sahara-eng service for running engine side
Change-Id: I4fb9d5746b08c9b1fee0d283bcf448e47a87089b
| ... | ... |
@@ -113,12 +113,13 @@ function configure_sahara {
|
| 113 | 113 |
|
| 114 | 114 |
configure_auth_token_middleware $SAHARA_CONF_FILE sahara $SAHARA_AUTH_CACHE_DIR |
| 115 | 115 |
|
| 116 |
+ iniset_rpc_backend sahara $SAHARA_CONF_FILE DEFAULT |
|
| 117 |
+ |
|
| 116 | 118 |
# Set configuration to send notifications |
| 117 | 119 |
|
| 118 | 120 |
if is_service_enabled ceilometer; then |
| 119 | 121 |
iniset $SAHARA_CONF_FILE DEFAULT enable_notifications "true" |
| 120 | 122 |
iniset $SAHARA_CONF_FILE DEFAULT notification_driver "messaging" |
| 121 |
- iniset_rpc_backend sahara $SAHARA_CONF_FILE |
|
| 122 | 123 |
fi |
| 123 | 124 |
|
| 124 | 125 |
iniset $SAHARA_CONF_FILE DEFAULT verbose True |
| ... | ... |
@@ -203,12 +204,16 @@ function sahara_register_images {
|
| 203 | 203 |
# start_sahara() - Start running processes, including screen |
| 204 | 204 |
function start_sahara {
|
| 205 | 205 |
run_process sahara "$SAHARA_BIN_DIR/sahara-all --config-file $SAHARA_CONF_FILE" |
| 206 |
+ run_process sahara-api "$SAHARA_BIN_DIR/sahara-api --config-file $SAHARA_CONF_FILE" |
|
| 207 |
+ run_process sahara-eng "$SAHARA_BIN_DIR/sahara-engine --config-file $SAHARA_CONF_FILE" |
|
| 206 | 208 |
} |
| 207 | 209 |
|
| 208 | 210 |
# stop_sahara() - Stop running processes |
| 209 | 211 |
function stop_sahara {
|
| 210 | 212 |
# Kill the Sahara screen windows |
| 211 | 213 |
stop_process sahara |
| 214 |
+ stop_process sahara-api |
|
| 215 |
+ stop_process sahara-eng |
|
| 212 | 216 |
} |
| 213 | 217 |
|
| 214 | 218 |
|