bypass_url required in nova admin client
In the case of periodic tasks run in the task manager via the admin client, a bypass_url is needed to be passed on client connect in order to fix the endpoint should the token expire. Arose as part of investigation into bug 1289101 and associated review. Change-Id: I15e8a40e271d5b428eebfed6e99ec47a61611795 Closes-Bug: #1431853 Co-Authored-By: Li Ma <skywalker.nick@gmail.com> Related-Bug: #1289101
This commit is contained in:
parent
e0144328a6
commit
daf4bb5847
|
@ -98,7 +98,8 @@ def nova_client(context):
|
|||
endpoint_type=CONF.nova_compute_endpoint_type)
|
||||
|
||||
client = Client(context.user, context.auth_token,
|
||||
project_id=context.tenant, auth_url=PROXY_AUTH_URL)
|
||||
bypass_url=url, project_id=context.tenant,
|
||||
auth_url=PROXY_AUTH_URL)
|
||||
client.client.auth_token = context.auth_token
|
||||
client.client.management_url = url
|
||||
return client
|
||||
|
|
Loading…
Reference in New Issue