test_driver_spawn_fail_when_unshelving_instance fluctuates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Balazs Gibizer | ||
Pike |
Fix Committed
|
Undecided
|
Matt Riedemann |
Bug Description
The functional test test_driver_
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/
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/
2017-10-04 17:29:33.464733 | b" self.assertEqua
2017-10-04 17:29:33.464816 | b' File "/home/
2017-10-04 17:29:33.464849 | b' self.assertThat
2017-10-04 17:29:33.464931 | b' File "/home/
2017-10-04 17:29:33.464953 | b' raise mismatch_error'
2017-10-04 17:29:33.464985 | b'testtools.
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.
Changed in nova: | |
assignee: | nobody → Balazs Gibizer (balazs-gibizer) |
description: | updated |
tags: | added: testing |
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/509759
Review: https:/