test_security_groups_basic_ops is racey, leading to false positives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
David Kranz |
Bug Description
Trying to figure out why test_security_
The test:
1. boot an access point node
2. boot a test server
3. confirm test server cannot be pinged from access point
4. create a security group rule allowing ICMP, confirm test server can be pinged from access point
The race /w baremetal, tho this is likely to affect environments with slow booting VMs:
1. boot an access point node
a. access point provisions, becomes ACTIVE, reboots
2. boot a test server
b. test server provisions, becomes ACTIVE, reboots
3. confirm test server cannot be pinged from access point
c. access point pings test server while it is in its post-provision boot POST/PXE/etc, ping fails, assertion succeeds.
4. create a security group rule allowing ICMP, confirm test server can be pinged from access point
d. access point pings test server while it is PXE booting (after it has DHCP'd and while it is fetching its kernel+ramdisk), ping succeeds and assertions succeeds.
For the purposes of the ironic testing, this entire scenario should be skipped since we deploy with the noop firewall driver. However, the test should be fixed to account for slow booting things.
Changed in tempest: | |
assignee: | nobody → David Shrewsbury (dshrews) |
status: | New → In Progress |
Changed in tempest: | |
assignee: | David Shrewsbury (dshrews) → nobody |
Changed in tempest: | |
assignee: | nobody → David Kranz (david-kranz) |
Reviewed: https:/ /review. openstack. org/112660 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=9bac3661633 71000235714e029 70b3686a150d3e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9bac36616337100 0235714e02970b3 686a150d3e
Author: David Shrewsbury <email address hidden>
Date: Thu Aug 7 15:07:01 2014 -0400
Fix network/secgroup scenario tests for ironic
Because the ironic nodes in devstack are all on a shared network
so they can communicate with the tftp server, all tenants must use
this same network in the scenario tests. This fixes up the networking
and security group tests to take this into account.
Code from the setUp() methods has been moved to a new, separately
called method, to speed up execution time when tests are skipped.
Since setUp() is executed even if a test is skipped, we can avoid
the time it takes to create an unneeded server by moving this to
a new method.
Co-Authored-By: Adam Gandelman <email address hidden>
Partial-Bug: #1361904
Change-Id: If711d69a79f190 31dc1d8c529f121 9680d22d9bb