Merge "Don't enable osapi_volume if n-vol not enabled."

This commit is contained in:
Jenkins 2012-10-31 22:26:55 +00:00 committed by Gerrit Code Review
commit 98b26ab358
2 changed files with 3 additions and 1 deletions

View File

@ -305,6 +305,8 @@ function create_nova_conf() {
add_nova_opt "enabled_apis=$NOVA_ENABLED_APIS" add_nova_opt "enabled_apis=$NOVA_ENABLED_APIS"
fi fi
if is_service_enabled n-vol; then if is_service_enabled n-vol; then
NOVA_ENABLED_APIS="${NOVA_ENABLED_APIS},osapi_volume"
iniset $NOVA_CONF DEFAULT enabled_apis $NOVA_ENABLED_APIS
add_nova_opt "volume_api_class=nova.volume.api.API" add_nova_opt "volume_api_class=nova.volume.api.API"
add_nova_opt "volume_group=$VOLUME_GROUP" add_nova_opt "volume_group=$VOLUME_GROUP"
add_nova_opt "volume_name_template=${VOLUME_NAME_PREFIX}%s" add_nova_opt "volume_name_template=${VOLUME_NAME_PREFIX}%s"

View File

@ -18,7 +18,7 @@ DEST=/opt/stack
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,mysql,rabbit ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,mysql,rabbit
# Set the default Nova APIs to enable # Set the default Nova APIs to enable
NOVA_ENABLED_APIS=ec2,osapi_compute,osapi_volume,metadata NOVA_ENABLED_APIS=ec2,osapi_compute,metadata
# Repositories # Repositories
# ------------ # ------------