Use unique projects for static accounts.

If tests are launched in several threads,
it's possible that the same project is used
in several tests simultaneously.
It causes bad side effects and tests fail.
Patch provides that every static account
has unique project.

Related-PROD: https://mirantis.jira.com/browse/PRODX-19111
Change-Id: Id2e721a33640f4438e2db57b1808e745d506add4
(cherry picked from commit 9471ee64bd346583d8b869624de96fd87df3e89d)
(cherry picked from commit 68e07d7f31df3377e994ae2b731718b23c8c1560)
(cherry picked from commit f26e5d0f93185cd0547f9154b22f29aa89069d70)
(cherry picked from commit 9a67b3773dfa656aabf9bc557a3fb878bf6cfa1f)

Tempest can be aware of pre-provisioned networks

Some tests are against preprovisioned networks if static accounts are used,
e.g.
https://github.com/openstack/tempest/blob/7e96c8e854386f43604ad098a6ec7606ee676145/tempest/api/compute/admin/test_auto_allocate_network.py#L79
So patch makes that tempest takes
projects without networks if tests do not require networks.
If tests require networks then tempest takes projects
with pre-existing networks.
To swithch on the new capability set config option
[auth]separate_projects_by_network_existence to true.

Related-PROD: https://mirantis.jira.com/browse/PRODX-20816
Change-Id: I77dc96ad9f30f3a258dea5b098d3c8090dc2a814
(cherry picked from commit 964330f88c0f269f42a5a816e8141cc1a87f13e9)
(cherry picked from commit f915fb5f45bdba77ad474ba46cea68788e2749a4)
(cherry picked from commit 54702e84c58f4116d6967b54755f130902e134f2)

Added system scope support for static accounts

We have special locking for project scope accounts.
Now we should separate system admin accounts from project accounts.

Related-PROD: https://mirantis.jira.com/browse/PRODX-25578
Change-Id: Id1e5be6dfaa5dd01920074467cbab1255361196c
(cherry picked from commit 0b8bfec57516d7c817414fecb7b1ecf8dbfcaf0e)
(cherry picked from commit 111c762cd7b76b300325a990035f25bd345bf58d)

Combined commit message to support static accounts

Related-prod: PRODX-20816
Change-Id: I6ab001b973aff3db8e6ef9642e18944d4dd64e71
7 files changed