tests: port test_port_presence_prevents_network_rbac_policy_deletion
The test was originally implemented in this form as a tempest api test
case, but there is a problem with it being part of tempest suite,
because the suite should be safe to execute on a running cloud and
shouldn't affect other tenants. But sharing a network with everyone (*)
briefly impacts other tenants because they see a new shared network
popping up for a second in their net-list. It is also an issue because
if we are unlucky enough, some other tenant may start an instance
without specifying a particular port or network to use, in which case
there is a chance that nova allocates a port in this shared network and
attach it to the instance. When the rbac test case then tries to delete
the policy and the network, it fails because it's still in use.
The solution is to stop testing this scenario in tempest suite, instead
moving it into unit test suite.
A follow-up patch in neutron-tempest-plugin will clean up the bad test
case.
Reviewed: https:/ /review. openstack. org/571676 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=48c5c84ee03 27e2d6f5239a2e6 1d3787395635e1
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 48c5c84ee0327e2 d6f5239a2e61d37 87395635e1
Author: Ihar Hrachyshka <email address hidden>
Date: Thu Mar 15 10:13:14 2018 -0700
tests: port test_port_ presence_ prevents_ network_ rbac_policy_ deletion
The test was originally implemented in this form as a tempest api test
case, but there is a problem with it being part of tempest suite,
because the suite should be safe to execute on a running cloud and
shouldn't affect other tenants. But sharing a network with everyone (*)
briefly impacts other tenants because they see a new shared network
popping up for a second in their net-list. It is also an issue because
if we are unlucky enough, some other tenant may start an instance
without specifying a particular port or network to use, in which case
there is a chance that nova allocates a port in this shared network and
attach it to the instance. When the rbac test case then tries to delete
the policy and the network, it fails because it's still in use.
The solution is to stop testing this scenario in tempest suite, instead
moving it into unit test suite.
A follow-up patch in neutron- tempest- plugin will clean up the bad test
case.
Change-Id: I199f639c95e8ae 884ede46404370d 7b64da3b309 3a9c7485f2089f2 7d547fea308 d17cdbc6a86ed15 655aa6b9cc)
Needed-By: Iba89a53b2715cf
Related-Bug: #1753209
(cherry picked from commit 6c772de103e469a