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
This commit is contained in:
parent
0868e5cc55
commit
78e8190986
@ -24,6 +24,13 @@ Removed
|
|||||||
|
|
||||||
Support of Python 3.6 and Python 3.7
|
Support of Python 3.6 and Python 3.7
|
||||||
|
|
||||||
|
Fixed
|
||||||
|
~~~~~
|
||||||
|
|
||||||
|
* Manila scenarios can not use "share_networks" context
|
||||||
|
|
||||||
|
`Launchpad-bug #2040486 <https://launchpad.net/bugs/2040486>`_
|
||||||
|
|
||||||
[2.3.0] - 2023-08-01
|
[2.3.0] - 2023-08-01
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -245,6 +245,7 @@ class UserGenerator(context.OpenStackContext):
|
|||||||
LOG.debug("Using existing users for OpenStack platform.")
|
LOG.debug("Using existing users for OpenStack platform.")
|
||||||
api_info = copy.deepcopy(self.env["platforms"]["openstack"].get(
|
api_info = copy.deepcopy(self.env["platforms"]["openstack"].get(
|
||||||
"api_info", {}))
|
"api_info", {}))
|
||||||
|
self.context["config"]["existing_users"] = self.existing_users
|
||||||
for user_credential in self.existing_users:
|
for user_credential in self.existing_users:
|
||||||
user_credential = copy.deepcopy(user_credential)
|
user_credential = copy.deepcopy(user_credential)
|
||||||
if "api_info" in user_credential:
|
if "api_info" in user_credential:
|
||||||
|
Loading…
Reference in New Issue
Block a user