Merge "Add compute to devstack"

This commit is contained in:
Jenkins 2016-06-28 06:43:47 +00:00 committed by Gerrit Code Review
commit 967a4af0ca
3 changed files with 16 additions and 2 deletions

View File

@ -247,18 +247,30 @@ function start_zun_api {
fi
}
# start_zun_conductor() - Start Zun conductor
function start_zun_conductor {
echo "start zun conductor "
run_process zun-conductor "$ZUN_BIN_DIR/zun-conductor"
}
# start_zun_compute() - Start Zun compute agent
function start_zun_compute {
echo "start zun compute"
run_process zun-compute "$ZUN_BIN_DIR/zun-compute"
}
# start_zun() - Start running processes, including screen
function start_zun {
# ``run_process`` checks ``is_service_enabled``, it is not needed here
start_zun_api
run_process zun-conductor "$ZUN_BIN_DIR/zun-conductor"
start_zun_conductor
start_zun_compute
}
# stop_zun() - Stop running processes (non-screen)
function stop_zun {
for serv in zun-api zun-conductor; do
for serv in zun-api zun-conductor zun-compute; do
stop_process $serv
done
}

View File

@ -18,3 +18,4 @@
# Enable Zun services
enable_service zun-api
enable_service zun-conductor
enable_service zun-compute

View File

@ -47,6 +47,7 @@ output_file = zun/locale/zun.pot
[entry_points]
console_scripts =
zun-api = zun.cmd.api:main
zun-compute = zun.cmd.compute:main
zun-conductor = zun.cmd.conductor:main
zun-db-manage = zun.cmd.db_manage:main