devstack: Use magnum-api and magnum-cond for services
"m-api" is already used by Manila so switch to "magnum-api" and "magnum-cond" for devstack. Change-Id: I0f5e57dd263164652813088fe624f62cda664727 Closes-Bug: #1569879
This commit is contained in:
parent
a10af07e3d
commit
3fe3e46d4e
|
@ -243,7 +243,7 @@ function create_magnum_cache_dir {
|
||||||
# init_magnum() - Initialize databases, etc.
|
# init_magnum() - Initialize databases, etc.
|
||||||
function init_magnum {
|
function init_magnum {
|
||||||
# Only do this step once on the API node for an entire cluster.
|
# Only do this step once on the API node for an entire cluster.
|
||||||
if is_service_enabled $DATABASE_BACKENDS && is_service_enabled m-api; then
|
if is_service_enabled $DATABASE_BACKENDS && is_service_enabled magnum-api; then
|
||||||
# (Re)create magnum database
|
# (Re)create magnum database
|
||||||
recreate_database magnum
|
recreate_database magnum
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ function start_magnum_api {
|
||||||
service_protocol="http"
|
service_protocol="http"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_process m-api "$MAGNUM_BIN_DIR/magnum-api"
|
run_process magnum-api "$MAGNUM_BIN_DIR/magnum-api"
|
||||||
echo "Waiting for magnum-api to start..."
|
echo "Waiting for magnum-api to start..."
|
||||||
if ! wait_for_service $SERVICE_TIMEOUT $service_protocol://$MAGNUM_SERVICE_HOST:$service_port; then
|
if ! wait_for_service $SERVICE_TIMEOUT $service_protocol://$MAGNUM_SERVICE_HOST:$service_port; then
|
||||||
die $LINENO "magnum-api did not start"
|
die $LINENO "magnum-api did not start"
|
||||||
|
@ -313,7 +313,7 @@ function configure_iptables {
|
||||||
ROUTE_TO_INTERNET=$(ip route get 8.8.8.8)
|
ROUTE_TO_INTERNET=$(ip route get 8.8.8.8)
|
||||||
OBOUND_DEV=$(echo ${ROUTE_TO_INTERNET#*dev} | awk '{print $1}')
|
OBOUND_DEV=$(echo ${ROUTE_TO_INTERNET#*dev} | awk '{print $1}')
|
||||||
sudo iptables -t nat -A POSTROUTING -o $OBOUND_DEV -j MASQUERADE
|
sudo iptables -t nat -A POSTROUTING -o $OBOUND_DEV -j MASQUERADE
|
||||||
# bay nodes will access m-api (port $MAGNUM_SERVICE_PORT) to get CA certificate.
|
# bay nodes will access magnum-api (port $MAGNUM_SERVICE_PORT) to get CA certificate.
|
||||||
sudo iptables -I INPUT -d $HOST_IP -p tcp --dport $MAGNUM_SERVICE_PORT -j ACCEPT || true
|
sudo iptables -I INPUT -d $HOST_IP -p tcp --dport $MAGNUM_SERVICE_PORT -j ACCEPT || true
|
||||||
sudo iptables -I INPUT -d $HOST_IP -p tcp --dport $KEYSTONE_SERVICE_PORT -j ACCEPT || true
|
sudo iptables -I INPUT -d $HOST_IP -p tcp --dport $KEYSTONE_SERVICE_PORT -j ACCEPT || true
|
||||||
fi
|
fi
|
||||||
|
@ -325,12 +325,12 @@ function start_magnum {
|
||||||
|
|
||||||
# ``run_process`` checks ``is_service_enabled``, it is not needed here
|
# ``run_process`` checks ``is_service_enabled``, it is not needed here
|
||||||
start_magnum_api
|
start_magnum_api
|
||||||
run_process m-cond "$MAGNUM_BIN_DIR/magnum-conductor"
|
run_process magnum-cond "$MAGNUM_BIN_DIR/magnum-conductor"
|
||||||
}
|
}
|
||||||
|
|
||||||
# stop_magnum() - Stop running processes (non-screen)
|
# stop_magnum() - Stop running processes (non-screen)
|
||||||
function stop_magnum {
|
function stop_magnum {
|
||||||
for serv in m-api m-cond; do
|
for serv in magnum-api magnum-cond; do
|
||||||
stop_process $serv
|
stop_process $serv
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,13 +8,13 @@ echo_summary "magnum's plugin.sh was called..."
|
||||||
source $DEST/magnum/devstack/lib/magnum
|
source $DEST/magnum/devstack/lib/magnum
|
||||||
(set -o posix; set)
|
(set -o posix; set)
|
||||||
|
|
||||||
if is_service_enabled m-api m-cond; then
|
if is_service_enabled magnum-api magnum-cond; then
|
||||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||||
echo_summary "Installing magnum"
|
echo_summary "Installing magnum"
|
||||||
install_magnum
|
install_magnum
|
||||||
|
|
||||||
# add image to glance
|
# add image to glance
|
||||||
if [[ "$ENABLED_SERVICES" =~ 'm-api' ]]; then
|
if [[ "$ENABLED_SERVICES" =~ 'magnum-api' ]]; then
|
||||||
# TODO Add a "latest" link to fedora release process
|
# TODO Add a "latest" link to fedora release process
|
||||||
# TODO(hongbin): Uncomment below when the mirror become stable
|
# TODO(hongbin): Uncomment below when the mirror become stable
|
||||||
#ATOMIC_IMAGE_NAME=$( \
|
#ATOMIC_IMAGE_NAME=$( \
|
||||||
|
|
|
@ -33,5 +33,5 @@ enable_service h-api-cfn
|
||||||
enable_service h-api-cw
|
enable_service h-api-cw
|
||||||
|
|
||||||
# Enable Magnum services
|
# Enable Magnum services
|
||||||
enable_service m-api
|
enable_service magnum-api
|
||||||
enable_service m-cond
|
enable_service magnum-cond
|
||||||
|
|
Loading…
Reference in New Issue