test_list_servers_filter_by_error_status intermittently fails with MismatchError on no servers in response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
melanie witt | ||
tempest |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Seen here:
2017-01-31 17:48:34.663337 | Captured traceback:
2017-01-31 17:48:34.663348 | ~~~~~~~~~~~~~~~~~~~
2017-01-31 17:48:34.663363 | Traceback (most recent call last):
2017-01-31 17:48:34.663393 | File "tempest/
2017-01-31 17:48:34.663414 | self.assertIn(
2017-01-31 17:48:34.663448 | File "/opt/stack/
2017-01-31 17:48:34.663468 | self.assertThat
2017-01-31 17:48:34.663502 | File "/opt/stack/
2017-01-31 17:48:34.663515 | raise mismatch_error
2017-01-31 17:48:34.663542 | testtools.
This test resets the state on a server to ERROR:
2017-01-31 17:48:34.663649 | 2017-01-31 17:28:39,375 504 INFO [tempest.
2017-01-31 17:48:34.663695 | 2017-01-31 17:28:39,376 504 DEBUG [tempest.
2017-01-31 17:48:34.663714 | Body: {"os-resetState": {"state": "error"}}
Then tries to list servers by that status and expects to get that one back:
2017-01-31 17:48:34.663883 | 2017-01-31 17:28:39,556 504 INFO [tempest.
2017-01-31 17:48:34.663955 | 2017-01-31 17:28:39,556 504 DEBUG [tempest.
2017-01-31 17:48:34.663969 | Body: None
2017-01-31 17:48:34.664078 | Response - Headers: {u'x-openstack-
2017-01-31 17:48:34.664094 | Body: {"servers": []}
And the list is coming back empty, intermittently, with cells v1. So there is probably some vm_state change race between the state change in the child cell and reporting that back up to the parent API cell.
16 hits in 7 days, check and gate, all failures.
tags: |
added: ocata-rc-potential removed: testing v1 |
tags: | removed: ocata-rc-potential |
This is potentially a Tempest bug since the os-resetState API in Nova returns a 202 response, so Tempest should probably be waiting for the server to go into error state before doing the GET query with the status filter.