Running neutron unit tests creates 'fip-priorities' file in directory

Bug #1541119 reported by Brian Haley
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Abishek Subramanian

Bug Description

I noticed a couple of untracked files in my git repo, one being 'fip-priorities'. I deleted it and re-ran 'tox -e py27', but it was re-created:

--> cat fip-priorities
<MagicMock name='get_floating_ips.__getitem__()' id='140298371491792'>,67778

dvr_fip_ns.py is where it's used in a path definition, but it's actually in the ItemAllocator class where the file is read and written. Since this is a unit test it should have been mocked-out so the file is not created, just need to track down where to do that.

Changed in neutron:
importance: Undecided → Low
status: New → Confirmed
Sam Betts (sambetts)
Changed in neutron:
assignee: nobody → Sam Betts (sambetts)
Changed in neutron:
assignee: Sam Betts (sambetts) → Abishek Subramanian (absubram)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/283843

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/283843
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f3a0d3d31531cfe9e2973114076b14381d366eb5
Submitter: Jenkins
Branch: master

commit f3a0d3d31531cfe9e2973114076b14381d366eb5
Author: Abishek Subramanian <email address hidden>
Date: Tue Feb 23 17:44:18 2016 -0500

    Ensure DVR unit tests use '/tmp' directory

    Running 'tox -e py27' creates files in the local directory.
    This fix ensures the /tmp directory is used instead.

    Change-Id: If545b8795570eb424483f554fef8ad6170fa7ed9
    Closes-Bug: #1541119

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 8.0.0.0b3

This issue was fixed in the openstack/neutron 8.0.0.0b3 development milestone.

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.