Activity log for bug #1721514

Date Who What changed Old value New value Message
2017-10-05 11:08:57 Balazs Gibizer bug added bug
2017-10-05 11:11:35 Balazs Gibizer nova: assignee Balazs Gibizer (balazs-gibizer)
2017-10-05 11:12:09 Balazs Gibizer description The functional test test_driver_spawn_fail_when_unshelving_instance fluctuates at the following place: Captured traceback: 2017-10-04 17:29:33.464455 | ~~~~~~~~~~~~~~~~~~~ 2017-10-04 17:29:33.464483 | b'Traceback (most recent call last):' 2017-10-04 17:29:33.464577 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/nova/tests/functional/test_servers.py", line 2664, in test_driver_spawn_fail_when_unshelving_instance' 2017-10-04 17:29:33.464618 | b" {'vcpus': 0, 'ram': 0, 'disk': 0}, usages)" 2017-10-04 17:29:33.464695 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/nova/tests/functional/test_servers.py", line 1117, in assertFlavorMatchesAllocation' 2017-10-04 17:29:33.464733 | b" self.assertEqual(flavor['vcpus'], allocation['VCPU'])" 2017-10-04 17:29:33.464816 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/.tox/functional-py35/lib/python3.5/site-packages/testtools/testcase.py", line 411, in assertEqual' 2017-10-04 17:29:33.464849 | b' self.assertThat(observed, matcher, message)' 2017-10-04 17:29:33.464931 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/.tox/functional-py35/lib/python3.5/site-packages/testtools/testcase.py", line 498, in assertThat' 2017-10-04 17:29:33.464953 | b' raise mismatch_error' 2017-10-04 17:29:33.464985 | b'testtools.matchers._impl.MismatchError: 0 != 1' 2017-10-04 17:29:33.464998 | b'' 2017-10-04 17:29:33.465008 | It is because the test waits for the instance state to be set to SHELVED_OFFLOADED but and then asserts that the allocation of the instance is deleted in Placement. But the compute/manager set the instance state _before_ it deletes that allocation so the test is racy. [1] http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22in%20test_driver_spawn_fail_when_unshelving_instance%5C%22 The functional test test_driver_spawn_fail_when_unshelving_instance fluctuates at the following place: Captured traceback: 2017-10-04 17:29:33.464455 | ~~~~~~~~~~~~~~~~~~~ 2017-10-04 17:29:33.464483 | b'Traceback (most recent call last):' 2017-10-04 17:29:33.464577 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/nova/tests/functional/test_servers.py", line 2664, in test_driver_spawn_fail_when_unshelving_instance' 2017-10-04 17:29:33.464618 | b" {'vcpus': 0, 'ram': 0, 'disk': 0}, usages)" 2017-10-04 17:29:33.464695 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/nova/tests/functional/test_servers.py", line 1117, in assertFlavorMatchesAllocation' 2017-10-04 17:29:33.464733 | b" self.assertEqual(flavor['vcpus'], allocation['VCPU'])" 2017-10-04 17:29:33.464816 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/.tox/functional-py35/lib/python3.5/site-packages/testtools/testcase.py", line 411, in assertEqual' 2017-10-04 17:29:33.464849 | b' self.assertThat(observed, matcher, message)' 2017-10-04 17:29:33.464931 | b' File "/home/jenkins/workspace/gate-nova-tox-functional-py35-ubuntu-xenial/.tox/functional-py35/lib/python3.5/site-packages/testtools/testcase.py", line 498, in assertThat' 2017-10-04 17:29:33.464953 | b' raise mismatch_error' 2017-10-04 17:29:33.464985 | b'testtools.matchers._impl.MismatchError: 0 != 1' 2017-10-04 17:29:33.464998 | b'' 2017-10-04 17:29:33.465008 | It is because the test waits for the instance state to be set to SHELVED_OFFLOADED and then asserts that the allocation of the instance is deleted in Placement. But the compute/manager set the instance state _before_ it deletes that allocation so the test is racy. [1] http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22in%20test_driver_spawn_fail_when_unshelving_instance%5C%22
2017-10-05 11:12:16 Balazs Gibizer tags testing
2017-10-05 12:10:44 OpenStack Infra nova: status New In Progress
2017-10-05 14:49:01 Matt Riedemann nova: importance Undecided Medium
2017-10-05 14:49:15 Matt Riedemann nominated for series nova/pike
2017-10-05 14:49:15 Matt Riedemann bug task added nova/pike
2017-10-05 15:51:33 OpenStack Infra nova/pike: status New In Progress
2017-10-05 15:51:33 OpenStack Infra nova/pike: assignee Balazs Gibizer (balazs-gibizer)
2017-10-05 16:51:08 OpenStack Infra nova/pike: assignee Balazs Gibizer (balazs-gibizer) Matt Riedemann (mriedem)
2017-10-05 19:13:16 OpenStack Infra nova: status In Progress Fix Released
2017-10-19 04:58:42 OpenStack Infra nova/pike: status In Progress Fix Committed