Create default network for server advance scenario tests

Previously when fixing this bug for API tests,
we thought it cannot happen in scenario tests
with same reason as scenario base class do fetch
the specific network from neutron to pass it t nova
for creating the server.

But when 'CONF.network.port_vnic_type' and
'CONF.network.port_profile' are not configured in Tempest
then Tempest scenario manager does not fetch the network
from neutron.
- fec2c93cdc/tempest/scenario/manager.py (L242)

In that case, tenant network is used, which is not present
as scenario manager does not create the default network
resource for credential and tenant.

- fec2c93cdc/tempest/scenario/manager.py (L298)

This commit let server advance test (which is failing for multiple network
erorr) to create the default network which will be used to pass to the
nova API request while creating the test server.

Related-Bug: #1844568
Change-Id: I5a73a4f25f9092a4cdddcaf86f9ff2c89720409e
This commit is contained in:
Ghanshyam Mann 2021-02-08 16:58:07 -06:00
parent 1b0cddc90d
commit f5aef7bec1
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class TestServerAdvancedOps(manager.ScenarioTest):
@classmethod
def setup_credentials(cls):
cls.set_network_resources()
cls.set_network_resources(network=True, subnet=True)
super(TestServerAdvancedOps, cls).setup_credentials()
@decorators.attr(type='slow')