yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08690
[Bug 1264058] Re: run_test.sh broken for RequiredOptError: value required for option: lock_path
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1264058
Title:
run_test.sh broken for RequiredOptError: value required for option:
lock_path
Status in OpenStack Compute (Nova):
Fix Released
Status in Tempest:
Invalid
Bug description:
Steps To Reproduce
----------------------------
./run_tests.sh nova.tests.integrated.test_api_samples
Versions Affected
-------------------------
Trunk version after Dec. 21 2013, with following commit
commit 78d62186e5b0388f740d42cb8da5798cd67d7880
Refs: 2014.1.b1-281-g78d6218
Author: Roman Podoliaka <rpodolyaka@xxxxxxxxxxxx>
AuthorDate: Tue Dec 17 13:52:45 2013 +0200
Commit: Roman Podoliaka <rpodolyaka@xxxxxxxxxxxx>
CommitDate: Thu Dec 19 18:08:29 2013 +0200
Fix interprocess locks when running unit-tests
Symptom
--
Unit cases fail with following exception message.
stderr: {{{
/home/stack/nova/.venv/local/lib/python2.7/site-packages/sqlalchemy/sql/expression.py:1927: SAWarning: The IN-predicate on "instances.uuid" was invoked with an empty sequence. This results in a contradiction, which nonetheless can be expensive to evaluate. Consider alternative strategies for improved performance.
return self._in_impl(operators.in_op, operators.notin_op, other)
}}}
Traceback (most recent call last):
File "/home/stack/nova/nova/tests/integrated/test_api_samples.py", line 97, in setUp
super(ApiSampleTestBaseV2, self).setUp()
File "/home/stack/nova/nova/tests/integrated/integrated_helpers.py", line 81, in setUp
self._setup_services()
File "/home/stack/nova/nova/tests/integrated/integrated_helpers.py", line 94, in _setup_services
self.network = self.start_service('network')
File "/home/stack/nova/nova/test.py", line 284, in start_service
svc = self.useFixture(ServiceFixture(name, host, **kwargs))
File "/home/stack/nova/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 609, in useFixture
fixture.setUp()
File "/home/stack/nova/nova/test.py", line 175, in setUp
self.service.start()
File "/home/stack/nova/nova/service.py", line 172, in start
self.manager.init_host()
File "/home/stack/nova/nova/network/manager.py", line 1718, in init_host
self.l3driver.initialize(fixed_range=False, networks=networks)
File "/home/stack/nova/nova/network/l3.py", line 94, in initialize
linux_net.metadata_forward()
File "/home/stack/nova/nova/network/linux_net.py", line 647, in metadata_forward
iptables_manager.apply()
File "/home/stack/nova/nova/network/linux_net.py", line 426, in apply
self._apply()
File "/home/stack/nova/nova/openstack/common/lockutils.py", line 246, in inner
with lock(name, lock_file_prefix, external, lock_path):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/stack/nova/nova/openstack/common/lockutils.py", line 183, in lock
raise cfg.RequiredOptError('lock_path')
RequiredOptError: value required for option: lock_path
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1264058/+subscriptions
References