Listing security groups and taking the first one to change
rules doesn't give any warranty listed security group is
exactly the one used to create servers ports.
This avoids this problem by creating a security group and
passing it to server instead of having to search for it
after the server has been created.
Despite a test cases require a general refactory this should
at least fix the CI job intermittent failures related to
this test.
Reviewed: https:/ /review. openstack. org/612733 /git.openstack. org/cgit/ openstack/ neutron- tempest- plugin/ commit/ ?id=6f9bb77d987 2a1cac4e1815ce1 3d97b8a143b3a8
Committed: https:/
Submitter: Zuul
Branch: master
commit 6f9bb77d9872a1c ac4e1815ce13d97 b8a143b3a8
Author: Federico Ressi <email address hidden>
Date: Tue Oct 23 17:35:47 2018 +0200
Fix race condition in test_security_ groups
Listing security groups and taking the first one to change
rules doesn't give any warranty listed security group is
exactly the one used to create servers ports.
This avoids this problem by creating a security group and
passing it to server instead of having to search for it
after the server has been created.
Despite a test cases require a general refactory this should
at least fix the CI job intermittent failures related to
this test.
Partial-Bug: #1801306 5e7f1588943a2ff d08ce154578
Change-Id: I5ecb3c8711e745