Reduce the number of test accounts generated

With 16 as the value, and 3 networks on the sunbeam deployment,
about 150 ports are created, which is a lot and could cause issues
with quotas and other constraints.
Also, it can take a long time to create all the test account resources.

Reducing this number as much as possible will help address the above.

So here, halve the value to 8, which should still provide enough
test accounts with a reasonable buffer for the issue
with credential lock files not being cleaned up.
Tested once with the smoke tests (regex=smoke) and the refstack-2022.11
test list, and verified they can pass with this many test accounts.
(Note that the number of leaked lock files
is not always consistent though.)

Change-Id: I6087af68e162a5fc7351f023118194ca8a2d43ca
This commit is contained in:
Samuel Allan 2024-02-29 10:34:38 +10:30
parent 273fa9cb60
commit 979c11cf2e
No known key found for this signature in database
GPG Key ID: 622F8E99C893BD61
2 changed files with 4 additions and 4 deletions

View File

@ -35,12 +35,12 @@ def get_tempest_concurrency() -> str:
TEMPEST_CONCURRENCY = get_tempest_concurrency()
# It's desirable to have more accounts than the concurrency,
# so it can be hardcoded to 16,
# which is much more than the max concurrency (see get_tempest_concurrency()),
# so it can be hardcoded to a value that is
# more than the max concurrency (see get_tempest_concurrency()),
# and still a relatively small number of accounts.
# It's also helpful to have more accounts to mitigate the effects
# of credential locks not being released as per LP: #2052752.
TEMPEST_ACCOUNTS_COUNT = "16"
TEMPEST_ACCOUNTS_COUNT = "8"
TEMPEST_HOME = "/var/lib/tempest"
TEMPEST_WORKSPACE_PATH = f"{TEMPEST_HOME}/workspace"

View File

@ -55,7 +55,7 @@ TEST_TEMPEST_ENV = {
"OS_USER_DOMAIN_ID": "tempest-domain-id",
"OS_DOMAIN_ID": "tempest-domain-id",
"TEMPEST_CONCURRENCY": "4",
"TEMPEST_ACCOUNTS_COUNT": "16",
"TEMPEST_ACCOUNTS_COUNT": "8",
"TEMPEST_CONF": "/var/lib/tempest/workspace/etc/tempest.conf",
"TEMPEST_HOME": "/var/lib/tempest",
"TEMPEST_LIST_DIR": "/tempest_test_lists",