From 78e819098683d83306b578b53596d865a2406840 Mon Sep 17 00:00:00 2001 From: kimtaeseop Date: Mon, 30 Oct 2023 11:41:53 +0900 Subject: [PATCH] Set "existing_users" context for manila rally test When the manila rally tests work, they can't use "share_networks" context. Nowhere "existing_users" is set, the function as follows can't be called. https://github.com/openstack/rally-openstack/blob/master/rally_openstack/task/contexts/manila/manila_share_networks.py#L185 If rally use existing_users, set "existing_users" context as well. Closes-Bug: #2040486 Change-Id: I9af9198d7202f7f674790d2b88ab3c8067d6cb35 --- CHANGELOG.rst | 7 +++++++ rally_openstack/task/contexts/keystone/users.py | 1 + 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 59171127..2b93de3b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -24,6 +24,13 @@ Removed Support of Python 3.6 and Python 3.7 +Fixed +~~~~~ + +* Manila scenarios can not use "share_networks" context + + `Launchpad-bug #2040486 `_ + [2.3.0] - 2023-08-01 -------------------- diff --git a/rally_openstack/task/contexts/keystone/users.py b/rally_openstack/task/contexts/keystone/users.py index a382ebd9..44f89132 100644 --- a/rally_openstack/task/contexts/keystone/users.py +++ b/rally_openstack/task/contexts/keystone/users.py @@ -245,6 +245,7 @@ class UserGenerator(context.OpenStackContext): LOG.debug("Using existing users for OpenStack platform.") api_info = copy.deepcopy(self.env["platforms"]["openstack"].get( "api_info", {})) + self.context["config"]["existing_users"] = self.existing_users for user_credential in self.existing_users: user_credential = copy.deepcopy(user_credential) if "api_info" in user_credential: