DefaultSubnetPoolsTest is racy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Jakub Libosvar |
Bug Description
Default subnet can exist only once in cloud and there are two tests that create default and one that updates to default, it happens that tests are running in parallel while the check for existing subnet is at the class level. So it happens that:
1) class checks for default subnet, it's not there
3) test1 creates default subnet -> it's fine, we now have our unique resource
4) test2 creates default subnet -> the error we see cause test1 has the default
From the tempest logs:
Step1:
2017-08-10 07:03:12.341 3008 INFO tempest.
ion/json', 'X-Auth-Token': '<omitted>'}
Body: None
Response - Headers: {'status': '200', u'content-length': '18', 'content-location': 'http://
Body: {"subnetpools":[]} _log_request_full /usr/lib/
Step2:
2017-08-10 07:03:12.998 3008 INFO tempest.
2017-08-10 07:03:12.998 3008 DEBUG tempest.
Body: {"subnetpool": {"is_default": true, "prefixes": ["10.11.12.0/24"], "name": "tempest-
Response - Headers: {'status': '201', u'content-length': '508', 'content-location': 'http://
Body: {"subnetpool"
Step3:
2017-08-10 07:03:15.667 3008 INFO tempest.
2017-08-10 07:03:15.668 3008 DEBUG tempest.
Body: {"subnetpool": {"is_default": true}}
Response - Headers: {'status': '400', u'content-length': '203', 'content-location': 'http://
Body: {"NeutronError": {"message": "Invalid input for operation: A default subnetpool for this IP family has already been set. Only one default may exist per IP family.", "type": "InvalidInput", "detail": ""}} _log_request_full /usr/lib/
Changed in neutron: | |
importance: | Undecided → High |
milestone: | none → pike-rc1 |
importance: | High → Undecided |
milestone: | pike-rc1 → none |
I was trying to get a handle on potential priority for this one, but I can't find any failures from it in the last month [1]. Is this for a new test, or perhaps I'm missing something in [1] to locate existing failures?
[1] http:// logstash. openstack. org/#dashboard/ file/logstash. json?query= message% 3A%5C%22default %20subnetpool% 20for%20this% 20IP%20family% 20has%20already %20been% 20set%5C% 22