From c711acf8ae3e4ad6f746500747857bcc9fd6f7be Mon Sep 17 00:00:00 2001 From: spisarski Date: Thu, 22 Feb 2018 11:42:52 -0700 Subject: Changed pattern on how objects lookup themselves by name and project. The pattern being replaced has unwittingly added the requirement that all creator credentials must be of type 'admin' as when looking up the associated project ID required a call to keystone.projects.list(). As the SNAPS integration tests were always creating users with an 'admin' role, this issue was not caught. As part of this patch, integration test users will no longer be admin. JIRA: SNAPS-274 Change-Id: I02957f69e31a9d4dfa63362d371f061687e59fbf Signed-off-by: spisarski --- snaps/openstack/openstack_creator.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'snaps/openstack/openstack_creator.py') diff --git a/snaps/openstack/openstack_creator.py b/snaps/openstack/openstack_creator.py index 1f67951..cf741f3 100644 --- a/snaps/openstack/openstack_creator.py +++ b/snaps/openstack/openstack_creator.py @@ -30,9 +30,6 @@ class OpenStackCloudObject(CloudObject): :param os_creds: the OpenStack credentials object """ self._os_creds = os_creds - keystone = keystone_utils.keystone_client(os_creds) - self.project_id = keystone_utils.get_project( - keystone=keystone, project_name=os_creds.project_name).id def initialize(self): raise NotImplementedError('Do not override abstract method') -- cgit 1.2.3-korg