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:
parent
8fa6af8164
commit
d85017ab2e
@ -247,18 +247,30 @@ function start_zun_api {
|
|||||||
fi
|
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
|
# start_zun() - Start running processes, including screen
|
||||||
function start_zun {
|
function start_zun {
|
||||||
|
|
||||||
# ``run_process`` checks ``is_service_enabled``, it is not needed here
|
# ``run_process`` checks ``is_service_enabled``, it is not needed here
|
||||||
start_zun_api
|
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)
|
# stop_zun() - Stop running processes (non-screen)
|
||||||
function stop_zun {
|
function stop_zun {
|
||||||
for serv in zun-api zun-conductor; do
|
for serv in zun-api zun-conductor zun-compute; do
|
||||||
stop_process $serv
|
stop_process $serv
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -18,3 +18,4 @@
|
|||||||
# Enable Zun services
|
# Enable Zun services
|
||||||
enable_service zun-api
|
enable_service zun-api
|
||||||
enable_service zun-conductor
|
enable_service zun-conductor
|
||||||
|
enable_service zun-compute
|
||||||
|
@ -47,6 +47,7 @@ output_file = zun/locale/zun.pot
|
|||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
zun-api = zun.cmd.api:main
|
zun-api = zun.cmd.api:main
|
||||||
|
zun-compute = zun.cmd.compute:main
|
||||||
zun-conductor = zun.cmd.conductor:main
|
zun-conductor = zun.cmd.conductor:main
|
||||||
zun-db-manage = zun.cmd.db_manage:main
|
zun-db-manage = zun.cmd.db_manage:main
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user