yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04613
[Bug 1211952] Re: makedirs should be stubbed out
** Changed in: neutron
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1211952
Title:
makedirs should be stubbed out
Status in OpenStack Neutron (virtual network service):
Fix Released
Bug description:
When I run the dhcp_agent test on my box I got this error once:
======================================================================
ERROR: neutron.tests.unit.test_dhcp_agent.TestDhcpAgent.test_call_driver_failure (subunit.RemotedTestCase)
neutron.tests.unit.test_dhcp_agent.TestDhcpAgent.test_call_driver_failure
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/home/armax/workspace/openstack/neutron/neutron/tests/unit/test_dhcp_agent.py", line 215, in test_call_driver_failure
dhcp = dhcp_agent.DhcpAgent(HOSTNAME)
File "/home/armax/workspace/openstack/neutron/neutron/agent/dhcp_agent.py", line 78, in __init__
os.makedirs(dhcp_dir, 0o755)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '//home/guest/workspace/openstack/neutron/dhcp'
Ideally the directory creation should be stubbed out in the tests.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1211952/+subscriptions