Added processing /compute URL
With config option NOVA_USE_MOD_WSGI=True nova-api handles requests on /compute URL. Depends on I83bc4731507fa028377ae6701ed4d32adefa9251 Change-Id: Ic84b5c0dc0726662470ef9c076a0cadca55a3917
This commit is contained in:
parent
018c50c2e2
commit
e62c906baf
@ -14,3 +14,12 @@ Listen %PUBLICPORT%
|
|||||||
%SSLCERTFILE%
|
%SSLCERTFILE%
|
||||||
%SSLKEYFILE%
|
%SSLKEYFILE%
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
Alias /compute %PUBLICWSGI%
|
||||||
|
<Location /compute>
|
||||||
|
SetHandler wsgi-script
|
||||||
|
Options +ExecCGI
|
||||||
|
WSGIProcessGroup nova-api
|
||||||
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
|
WSGIPassAuthorization On
|
||||||
|
</Location>
|
||||||
|
18
lib/nova
18
lib/nova
@ -405,19 +405,25 @@ function create_nova_accounts {
|
|||||||
|
|
||||||
local nova_service=$(get_or_create_service "nova" \
|
local nova_service=$(get_or_create_service "nova" \
|
||||||
"compute" "Nova Compute Service")
|
"compute" "Nova Compute Service")
|
||||||
|
local nova_api_url
|
||||||
|
if [[ "$NOVA_USE_MOD_WSGI" == "False" ]]; then
|
||||||
|
nova_api_url="$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT"
|
||||||
|
else
|
||||||
|
nova_api_url="$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST/compute"
|
||||||
|
fi
|
||||||
get_or_create_endpoint $nova_service \
|
get_or_create_endpoint $nova_service \
|
||||||
"$REGION_NAME" \
|
"$REGION_NAME" \
|
||||||
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \
|
"$nova_api_url/v2/\$(tenant_id)s" \
|
||||||
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s" \
|
"$nova_api_url/v2/\$(tenant_id)s" \
|
||||||
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2/\$(tenant_id)s"
|
"$nova_api_url/v2/\$(tenant_id)s"
|
||||||
|
|
||||||
local nova_v21_service=$(get_or_create_service "novav21" \
|
local nova_v21_service=$(get_or_create_service "novav21" \
|
||||||
"computev21" "Nova Compute Service V2.1")
|
"computev21" "Nova Compute Service V2.1")
|
||||||
get_or_create_endpoint $nova_v21_service \
|
get_or_create_endpoint $nova_v21_service \
|
||||||
"$REGION_NAME" \
|
"$REGION_NAME" \
|
||||||
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2.1/\$(tenant_id)s" \
|
"$nova_api_url/v2.1/\$(tenant_id)s" \
|
||||||
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2.1/\$(tenant_id)s" \
|
"$nova_api_url/v2.1/\$(tenant_id)s" \
|
||||||
"$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2.1/\$(tenant_id)s"
|
"$nova_api_url/v2.1/\$(tenant_id)s"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user