Add compute to devstack

* Add compute service to devstack plugin.
* Add compute entry point to setup.cfg.

Change-Id: I2420ee9d8db338878298a40794bef39823044ada
This commit is contained in:
Your Name 2016-06-13 05:51:39 +00:00 committed by Eli Qiao
parent 8fa6af8164
commit d85017ab2e
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