nova.tests.api.ec2.test_cloud is missing consoleauth_manager import
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Matt Riedemann |
Bug Description
If you run nova unit tests outside of a virtualenv, like with using nosetests on python 2.6 (which should be supported but not really enforced), then the ec2 test_cloud test fails due to not having the consoleauth_manager config option in scope:
Traceback (most recent call last):
File "/root/
self.
File "/root/
svc = self.useFixture
File "/usr/lib/
fixture.setUp()
File "/root/
self.service = service.
File "/root/
manager = CONF.get(
File "/usr/lib64/
return self[key]
File "/usr/lib/
return self.__
File "/usr/lib/
raise NoSuchOptError(
NoSuchOptError: no such option: consoleauth_manager
There is a mailing list thread related to this, but not for ec2:
http://
Simply importing this fixes the problem:
CONF.import_
Changed in nova: | |
milestone: | none → icehouse-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-3 → 2014.1 |
Grepping the code for "self.start_ service( 'consoleauth' )" it also shows up in:
integrated_ helpers. py - nova/nova/ tests/integrate d cloud.py - nova/nova/ tests/api/ ec2
test_cinder_
But there is no import for consoleauth_ manager, so those should also be fixed. integrated_ helpers. py is where Andrea was hitting this in the mailing list.