allocation candidates with invalid traits negative functional tests are intermittently failing

Bug #1746388 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
High
Unassigned

Bug Description

Introduced here:

https://review.openstack.org/#/c/535642/4/nova/tests/functional/api/openstack/placement/gabbits/allocation-candidates.yaml

Seen failing here later in the series:

http://logs.openstack.org/10/539310/1/check/nova-tox-functional/a6ba562/job-output.txt.gz#_2018-01-30_21_02_40_414709

2018-01-30 21:02:40.414681 | ubuntu-xenial | ==============================
2018-01-30 21:02:40.414709 | ubuntu-xenial | Failed 2 tests - output below:
2018-01-30 21:02:40.414732 | ubuntu-xenial | ==============================
2018-01-30 21:02:40.414741 | ubuntu-xenial |
2018-01-30 21:02:40.414822 | ubuntu-xenial | nova.tests.functional.api.openstack.placement.test_placement_api.allocation-candidates_get_allocation_candidates_with_empty_required_value.test_request
2018-01-30 21:02:40.414901 | ubuntu-xenial | -------------------------------------------------------------------------------------------------------------------------------------------------------
2018-01-30 21:02:40.414910 | ubuntu-xenial |
2018-01-30 21:02:40.414930 | ubuntu-xenial | Captured pythonlogging:
2018-01-30 21:02:40.414949 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~~~~~
2018-01-30 21:02:40.415054 | ubuntu-xenial | 2018-01-30 20:44:44,989 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /allocation_candidates?resources=VCPU:1,MEMORY_MB:1024,DISK_GB:100&required=" status: 400 len: 351 microversion: 1.17
2018-01-30 21:02:40.415066 | ubuntu-xenial |
2018-01-30 21:02:40.415075 | ubuntu-xenial |
2018-01-30 21:02:40.415092 | ubuntu-xenial | Captured traceback:
2018-01-30 21:02:40.415110 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~
2018-01-30 21:02:40.415136 | ubuntu-xenial | Traceback (most recent call last):
2018-01-30 21:02:40.415212 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 94, in wrapper
2018-01-30 21:02:40.415235 | ubuntu-xenial | func(self)
2018-01-30 21:02:40.415315 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 143, in test_request
2018-01-30 21:02:40.415335 | ubuntu-xenial | self._run_test()
2018-01-30 21:02:40.415412 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 550, in _run_test
2018-01-30 21:02:40.415441 | ubuntu-xenial | self._assert_response()
2018-01-30 21:02:40.415522 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 191, in _assert_response
2018-01-30 21:02:40.415541 | ubuntu-xenial | handler(self)
2018-01-30 21:02:40.415621 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/handlers/base.py", line 54, in __call__
2018-01-30 21:02:40.415650 | ubuntu-xenial | self.action(test, item, value=value)
2018-01-30 21:02:40.415729 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/handlers/core.py", line 26, in action
2018-01-30 21:02:40.415765 | ubuntu-xenial | test.assert_in_or_print_output(expected, test.output)
2018-01-30 21:02:40.415849 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 652, in assert_in_or_print_output
2018-01-30 21:02:40.415869 | ubuntu-xenial | self.fail(msg)
2018-01-30 21:02:40.415945 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/unittest2/case.py", line 690, in fail
2018-01-30 21:02:40.415972 | ubuntu-xenial | raise self.failureException(msg)
2018-01-30 21:02:40.416072 | ubuntu-xenial | AssertionError: 'Invalid query string parameters: Expected 'required' parameter value of the form: HW_CPU_X86_VMX,CUSTOM_MAGIC.' not found in {
2018-01-30 21:02:40.416094 | ubuntu-xenial | "errors": [
2018-01-30 21:02:40.416107 | ubuntu-xenial | {
2018-01-30 21:02:40.416146 | ubuntu-xenial | "request_id": "req-8b3d6369-0829-47a8-951f-ebb71dc0e501",
2018-01-30 21:02:40.416170 | ubuntu-xenial | "title": "Bad Request",
2018-01-30 21:02:40.416189 | ubuntu-xenial | "status": 400,
2018-01-30 21:02:40.416313 | ubuntu-xenial | "detail": "The server could not comply with the request since it is either malformed or otherwise incorrect.\n\n Invalid query string parameters: Expected \"required\" parameter value of the form: HW_CPU_X86_VMX,CUSTOM_MAGIC. Got: \"\" "
2018-01-30 21:02:40.416330 | ubuntu-xenial | }
2018-01-30 21:02:40.416342 | ubuntu-xenial | ]
2018-01-30 21:02:40.416353 | ubuntu-xenial | }
2018-01-30 21:02:40.416363 | ubuntu-xenial |
2018-01-30 21:02:40.416372 | ubuntu-xenial |
2018-01-30 21:02:40.416450 | ubuntu-xenial | nova.tests.functional.api.openstack.placement.test_placement_api.allocation-candidates_get_allocation_candidates_with_invalid_required_value.test_request
2018-01-30 21:02:40.416530 | ubuntu-xenial | ---------------------------------------------------------------------------------------------------------------------------------------------------------
2018-01-30 21:02:40.416538 | ubuntu-xenial |
2018-01-30 21:02:40.416557 | ubuntu-xenial | Captured pythonlogging:
2018-01-30 21:02:40.416576 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~~~~~
2018-01-30 21:02:40.416681 | ubuntu-xenial | 2018-01-30 20:44:45,073 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /allocation_candidates?resources=VCPU:1,MEMORY_MB:1024,DISK_GB:100&required=,," status: 400 len: 353 microversion: 1.17
2018-01-30 21:02:40.416692 | ubuntu-xenial |
2018-01-30 21:02:40.416700 | ubuntu-xenial |
2018-01-30 21:02:40.416717 | ubuntu-xenial | Captured traceback:
2018-01-30 21:02:40.416734 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~
2018-01-30 21:02:40.416760 | ubuntu-xenial | Traceback (most recent call last):
2018-01-30 21:02:40.416835 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 94, in wrapper
2018-01-30 21:02:40.416851 | ubuntu-xenial | func(self)
2018-01-30 21:02:40.416930 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 143, in test_request
2018-01-30 21:02:40.416949 | ubuntu-xenial | self._run_test()
2018-01-30 21:02:40.417026 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 550, in _run_test
2018-01-30 21:02:40.417049 | ubuntu-xenial | self._assert_response()
2018-01-30 21:02:40.452857 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 191, in _assert_response
2018-01-30 21:02:40.452932 | ubuntu-xenial | handler(self)
2018-01-30 21:02:40.453018 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/handlers/base.py", line 54, in __call__
2018-01-30 21:02:40.453049 | ubuntu-xenial | self.action(test, item, value=value)
2018-01-30 21:02:40.453129 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/handlers/core.py", line 26, in action
2018-01-30 21:02:40.453167 | ubuntu-xenial | test.assert_in_or_print_output(expected, test.output)
2018-01-30 21:02:40.453252 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/gabbi/case.py", line 652, in assert_in_or_print_output
2018-01-30 21:02:40.453271 | ubuntu-xenial | self.fail(msg)
2018-01-30 21:02:40.453351 | ubuntu-xenial | File "/home/zuul/src/git.openstack.org/openstack/nova/.tox/functional/local/lib/python2.7/site-packages/unittest2/case.py", line 690, in fail
2018-01-30 21:02:40.453379 | ubuntu-xenial | raise self.failureException(msg)
2018-01-30 21:02:40.453457 | ubuntu-xenial | AssertionError: 'Invalid query string parameters: Expected 'required' parameter value of the form: HW_CPU_X86_VMX,CUSTOM_MAGIC.' not found in {
2018-01-30 21:02:40.453473 | ubuntu-xenial | "errors": [
2018-01-30 21:02:40.453485 | ubuntu-xenial | {
2018-01-30 21:02:40.453525 | ubuntu-xenial | "request_id": "req-2ae0e058-e5c7-48ec-a62a-f3dee4048f57",
2018-01-30 21:02:40.453548 | ubuntu-xenial | "title": "Bad Request",
2018-01-30 21:02:40.453568 | ubuntu-xenial | "status": 400,
2018-01-30 21:02:40.453693 | ubuntu-xenial | "detail": "The server could not comply with the request since it is either malformed or otherwise incorrect.\n\n Invalid query string parameters: Expected \"required\" parameter value of the form: HW_CPU_X86_VMX,CUSTOM_MAGIC. Got: \",,\" "
2018-01-30 21:02:40.453706 | ubuntu-xenial | }
2018-01-30 21:02:40.453717 | ubuntu-xenial | ]
2018-01-30 21:02:40.453728 | ubuntu-xenial | }
2018-01-30 21:02:40.453743 | ubuntu-xenial |
2018-01-30 21:02:40.453751 | ubuntu-xenial |
2018-01-30 21:02:40.453759 | ubuntu-xenial |
2018-01-30 21:02:40.453770 | ubuntu-xenial | ======
2018-01-30 21:02:40.453782 | ubuntu-xenial | Totals
2018-01-30 21:02:40.453793 | ubuntu-xenial | ======
2018-01-30 21:02:40.453816 | ubuntu-xenial | Ran: 2097 tests in 1089.0000 sec.
2018-01-30 21:02:40.453832 | ubuntu-xenial | - Passed: 2095
2018-01-30 21:02:40.453846 | ubuntu-xenial | - Skipped: 0
2018-01-30 21:02:40.453890 | ubuntu-xenial | - Expected Fail: 0
2018-01-30 21:02:40.453910 | ubuntu-xenial | - Unexpected Success: 0
2018-01-30 21:02:40.453925 | ubuntu-xenial | - Failed: 2

Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in nova:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.