Leftover ./instances from test runs can make tests fail locally
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Ilya Popov |
Bug Description
I noticed this while running unit tests on stable/mitaka, but I think it applies to other branches including master.
When you run tox -r -e py27 you'll have a ./instances directory created, I think from the state_path variable used in the libvirt driver. ./keys is also created and left around, but wasn't an issue for me.
On stable/mitaka, because of the files existing on disk in ./instances, the test_rescue() test in the libvirt driver would find a file that exists (which normally wouldn't) and tries to chown it, which hangs the test process on sudo prompting for a password.
Ideally the tests would cleanup any resources they create, but as a quick fix we could simply just rm -rf ./instances from tox.ini when we run tests, just like we do with removing *.pyc files.
summary: |
- Leftover nova/instances from test runs can make tests fail locally + Leftover ./instances from test runs can make tests fail locally |
description: | updated |
Changed in nova: | |
assignee: | nobody → Maciej Szankin (mszankin) |
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | Maciej Szankin (mszankin) → nobody |
Changed in nova: | |
assignee: | nobody → Maciej Szankin (mszankin) |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | nobody → Ilya Popov (ilya-p) |
Fix proposed to branch: master /review. openstack. org/433948
Review: https:/