Instances directory gets deleted during unit test suite run
Bug #974293 reported by
Unmesh Gurjar
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Vish Ishaya | ||
Essex |
Fix Released
|
High
|
Vish Ishaya |
Bug Description
Scenario:
I have a running instance in my devstack environment (using master branch). Then I ran the unit test suite and the Nova instances directory got deleted.
My instances directory is '/opt/stack/
The periodic task 'update_
description: | updated |
Changed in nova: | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → Vish Ishaya (vishvananda) |
Changed in nova: | |
milestone: | none → folsom-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-1 → 2012.2 |
To post a comment you must log in.
Seems that the issue occurs due to the tearDown( ) method in test_libvirt: LibvirtConnecti onTestCase.
https:/ /github. com/openstack/ nova/blob/ master/ nova/tests/ test_libvirt. py#L2314
Here is the tearDown code snippet:
def tearDown(self):
super( LibvirtConnecti onTestCase, self).tearDown()
try:
shutil. rmtree( flags.FLAGS. instances_ path)
except Exception:
pass