Fixup agent re-assignment code for https keystone

This commit is contained in:
James Page 2014-02-27 12:21:53 +00:00
parent a42b2861b8
commit a9cc57727a
2 changed files with 3 additions and 3 deletions

View File

@ -325,8 +325,7 @@ def reassign_agent_resources():
''' Try to import neutronclient instead for havana+ '''
from neutronclient.v2_0 import client
# TODO: Fixup for https keystone
auth_url = 'http://%(keystone_host)s:%(auth_port)s/v2.0' % env
auth_url = '%(auth_protocol)s://%(keystone_host)s:%(auth_port)s/v2.0' % env
quantum = client.Client(username=env['service_username'],
password=env['service_password'],
tenant_name=env['service_tenant'],

View File

@ -251,7 +251,8 @@ network_context = {
'service_tenant': 'baz',
'region': 'foo-bar',
'keystone_host': 'keystone',
'auth_port': 5000
'auth_port': 5000,
'auth_protocol': 'https'
}