resource-class-in-use_create_a_resource_class fails with "MismatchError: '204' not in ['201']" since 7/22
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Chris Dent |
Bug Description
Seen here:
2017-07-24 18:52:05.638101 | nova.tests.
2017-07-24 18:52:05.638130 | -------
2017-07-24 18:52:05.638135 |
2017-07-24 18:52:05.638143 | Captured traceback:
2017-07-24 18:52:05.638152 | ~~~~~~~~~~~~~~~~~~~
2017-07-24 18:52:05.638164 | Traceback (most recent call last):
2017-07-24 18:52:05.638201 | File "/home/
2017-07-24 18:52:05.638209 | func(self)
2017-07-24 18:52:05.638246 | File "/home/
2017-07-24 18:52:05.638256 | self._run_test()
2017-07-24 18:52:05.638293 | File "/home/
2017-07-24 18:52:05.638304 | self._assert_
2017-07-24 18:52:05.638342 | File "/home/
2017-07-24 18:52:05.638362 | self._test_
2017-07-24 18:52:05.638399 | File "/home/
2017-07-24 18:52:05.638419 | self.assert_
2017-07-24 18:52:05.638459 | File "/home/
2017-07-24 18:52:05.638469 | self.fail(msg)
2017-07-24 18:52:05.651245 | File "/home/
2017-07-24 18:52:05.651275 | raise self.failureExc
2017-07-24 18:52:05.651293 | AssertionError: '404' not found in ['204'], response:
2017-07-24 18:52:05.651299 | {
2017-07-24 18:52:05.651308 | "errors": [
2017-07-24 18:52:05.651315 | {
2017-07-24 18:52:05.651325 | "status": 404,
2017-07-24 18:52:05.651336 | "title": "Not Found",
2017-07-24 18:52:05.651358 | "detail": "The resource could not be found.\n\n Resource could not be found. ",
2017-07-24 18:52:05.651377 | "request_id": "req-15235c69-
2017-07-24 18:52:05.651383 | }
2017-07-24 18:52:05.651390 | ]
2017-07-24 18:52:05.651396 | }
2017-07-24 18:52:05.651402 |
2017-07-24 18:52:05.651407 |
2017-07-24 18:52:05.651416 | Captured pythonlogging:
2017-07-24 18:52:05.651425 | ~~~~~~~
2017-07-24 18:52:05.651462 | 2017-07-24 18:30:03,444 INFO [nova.api.
This fails when nova.tests.
testtools.
2017-07-24 18:52:05.638002 |
2017-07-24 18:52:05.638007 |
2017-07-24 18:52:05.638016 | Captured pythonlogging:
2017-07-24 18:52:05.638026 | ~~~~~~~
2017-07-24 18:52:05.638061 | 2017-07-24 18:30:03,314 INFO [nova.api.
So the PUT is expecting a 201 but it's getting a 204, and then the DELETE fails with a 404 when it's expecting a 204.
Looks like the failures would correlate with this change being merged on 7/23:
https:/
19 hits in 7/22, check and gate, all failures.
summary: |
- resource-class-in-use_delete_resource_class fails with "AssertionError: - '404' not found in ['204']" since 7/22 + resource-class-in-use_create_a_resource_class fails with "MismatchError: + '204' not in ['201']" since 7/22 |
In the failed run, this class creates the same custom resource class:
2017-07-24 18:30:02.936984 | {3} nova.tests. functional. api.openstack. placement. test_placement_ api.allocation- bad-class_ create_ a_resource_ class.test_ request [0.010374s] ... ok
And they are running on the same process. They should be separate databases in sqlite given the APIFixture used in the tests, but maybe eventlet thread goofiness messed up the responses.