Run the below mentioned tests with CONF.auth.use_dynamic_credentials = False and accounts.yaml file generated with 1 concurrency. The tests are executing serially (NOT in parallel) so the concurrency==1 should be enough.
Note: if the accounts.yaml is generated with higher concurrency (we're using 3 to workaround this issue), the tests pass just fine.
setUpClass (tempest.api.object_storage.test_account_services.AccountTest)",
-------------------------------------------------------------------------",
",
Captured traceback:",
~~~~~~~~~~~~~~~~~~~",
Traceback (most recent call last):",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 188, in setUpClass",
six.reraise(etype, value, trace)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/.venv/lib/python3.8/site-packages/six.py\", line 719, in reraise",
raise value",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 173, in setUpClass",
cls.setup_credentials()",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/api/object_storage/test_account_services.py\", line 38, in setup_credentials",
super(AccountTest, cls).setup_credentials()",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/api/object_storage/base.py\", line 77, in setup_credentials",
super(BaseObjectTest, cls).setup_credentials()",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 423, in setup_credentials",
manager = cls.get_client_manager(roles=credentials_type[1:],",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 695, in get_client_manager",
creds = cred_provider.get_creds_by_roles(**params)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/lib/common/preprov_creds.py\", line 315, in get_creds_by_roles",
net_creds = self._get_creds(roles=roles)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/lib/common/preprov_creds.py\", line 248, in _get_creds",
free_hash = self._get_free_hash(useable_hashes)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/.venv/lib/python3.8/site-packages/oslo_concurrency/lockutils.py\", line 360, in inner",
return f(*args, **kwargs)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/lib/common/preprov_creds.py\", line 203, in _get_free_hash",
raise lib_exc.InvalidCredentials(msg)",
",
tempest.lib.exceptions.InvalidCredentials: Invalid Credentials",
Details: Insufficient number of users provided. AccountTest have allocated all the credentials for this allocation request",
",
",
setUpClass (tempest.api.object_storage.test_container_acl.ObjectTestACLs)",
-------------------------------------------------------------------------",
",
Captured traceback:",
~~~~~~~~~~~~~~~~~~~",
Traceback (most recent call last):",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 188, in setUpClass",
six.reraise(etype, value, trace)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/.venv/lib/python3.8/site-packages/six.py\", line 719, in reraise",
raise value",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 173, in setUpClass",
cls.setup_credentials()",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/api/object_storage/base.py\", line 77, in setup_credentials",
super(BaseObjectTest, cls).setup_credentials()",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 423, in setup_credentials",
manager = cls.get_client_manager(roles=credentials_type[1:],",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/test.py\", line 695, in get_client_manager",
creds = cred_provider.get_creds_by_roles(**params)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/lib/common/preprov_creds.py\", line 315, in get_creds_by_roles",
net_creds = self._get_creds(roles=roles)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/lib/common/preprov_creds.py\", line 248, in _get_creds",
free_hash = self._get_free_hash(useable_hashes)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/.venv/lib/python3.8/site-packages/oslo_concurrency/lockutils.py\", line 360, in inner",
return f(*args, **kwargs)",
",
File \"/home/zuul/src/opendev.org/openinfra/refstack-client/.tempest/tempest/lib/common/preprov_creds.py\", line 203, in _get_free_hash",
raise lib_exc.InvalidCredentials(msg)",
",
tempest.lib.exceptions.InvalidCredentials: Invalid Credentials",
Details: Insufficient number of users provided. ObjectTestACLs have allocated all the credentials for this allocation request",
we hit this in refstack-client (a tool which executes tempest), here's a review where we were able to reproduce it: /review. opendev. org/c/openinfra /ansible- role-refstack- client/ +/814806
https:/
We basically decreased the concurrency (from 3 to 1) used for accounts.yaml generation.