Use identity v3 api

Change the identity API version to v3 when sending the information to
CVX as identity API v2.0 is deprecated.

Change-Id: Ia494a38526a372997dcbfbe2875ff780319f324d
This commit is contained in:
Nader Lahouti 2017-03-30 11:15:42 -07:00
parent 5b3f586660
commit 59f5e3dbe5
3 changed files with 6 additions and 6 deletions

View File

@ -109,7 +109,7 @@ class AristaRPCWrapperBase(object):
{'protocol': self.keystone_conf.auth_protocol,
'host': self.keystone_conf.auth_host,
'port': self.keystone_conf.auth_port})
return '%s/v2.0/' % auth_uri
return '%s/v3/' % auth_uri
def _api_username(self):
return cfg.CONF.ml2_arista.eapi_username

View File

@ -282,7 +282,7 @@ class TestAristaJSONRPCWrapper(testlib_api.SqlTestCase):
self.drv.register_with_eos()
post_data = {'name': 'keystone', 'password': 'fun',
'tenant': 'tenant_name', 'user': 'neutron',
'authUrl': 'abc://host:5000/v2.0/'}
'authUrl': 'abc://host:5000/v3/'}
clean_data = post_data.copy()
clean_data['password'] = "*****"
calls = [
@ -1277,9 +1277,9 @@ class PositiveRPCWrapperValidConfigTestCase(testlib_api.SqlTestCase):
def test_register_with_eos(self, mock_send_eapi_req):
self.drv.register_with_eos()
auth = utils.fake_keystone_info_class()
keystone_url = '%s://%s:%s/v2.0/' % (auth.auth_protocol,
auth.auth_host,
auth.auth_port)
keystone_url = '%s://%s:%s/v3/' % (auth.auth_protocol,
auth.auth_host,
auth.auth_port)
auth_cmd = ('auth url %s user %s password %s tenant %s' % (
keystone_url,
auth.admin_user,

View File

@ -1417,7 +1417,7 @@ class fake_keystone_info_class(object):
Arista Driver expects Keystone auth info. This fake information
is for testing only
"""
auth_uri = 'abc://host:35357/v2.0/'
auth_uri = 'abc://host:35357/v3/'
identity_uri = 'abc://host:5000'
admin_user = 'neutron'
admin_password = 'fun'