← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1276398] [NEW] nova.tests.api.ec2.test_cloud is missing consoleauth_manager import

 

Public bug reported:

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/nova/nova/tests/api/ec2/test_cloud.py", line 178, in setUp
    self.consoleauth = self.start_service('consoleauth')
  File "/root/nova/nova/test.py", line 295, in start_service
    svc = self.useFixture(ServiceFixture(name, host, **kwargs))
  File "/usr/lib/python2.6/site-packages/testtools/testcase.py", line 628, in useFixture
    fixture.setUp()
  File "/root/nova/nova/test.py", line 174, in setUp
    self.service = service.Service.create(**self.kwargs)
  File "/root/nova/nova/service.py", line 272, in create
    manager = CONF.get(manager_cls, None)
  File "/usr/lib64/python2.6/_abcoll.py", line 336, in get
    return self[key]
  File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 1626, in __getitem__
    return self.__getattr__(key)
  File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 1622, in __getattr__
    raise NoSuchOptError(name)
NoSuchOptError: no such option: consoleauth_manager

There is a mailing list thread related to this, but not for ec2:

http://lists.openstack.org/pipermail/openstack-
dev/2013-September/014896.html

Simply importing this fixes the problem:

CONF.import_opt('consoleauth_manager', 'nova.consoleauth.manager')

** Affects: nova
     Importance: Low
     Assignee: Matt Riedemann (mriedem)
         Status: Confirmed


** Tags: ec2 testing

** Changed in: nova
     Assignee: (unassigned) => Matt Riedemann (mriedem)

** Changed in: nova
   Importance: Undecided => Low

** Changed in: nova
       Status: New => Confirmed

-- 
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/1276398

Title:
  nova.tests.api.ec2.test_cloud is missing consoleauth_manager import

Status in OpenStack Compute (Nova):
  Confirmed

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/nova/nova/tests/api/ec2/test_cloud.py", line 178, in setUp
      self.consoleauth = self.start_service('consoleauth')
    File "/root/nova/nova/test.py", line 295, in start_service
      svc = self.useFixture(ServiceFixture(name, host, **kwargs))
    File "/usr/lib/python2.6/site-packages/testtools/testcase.py", line 628, in useFixture
      fixture.setUp()
    File "/root/nova/nova/test.py", line 174, in setUp
      self.service = service.Service.create(**self.kwargs)
    File "/root/nova/nova/service.py", line 272, in create
      manager = CONF.get(manager_cls, None)
    File "/usr/lib64/python2.6/_abcoll.py", line 336, in get
      return self[key]
    File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 1626, in __getitem__
      return self.__getattr__(key)
    File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 1622, in __getattr__
      raise NoSuchOptError(name)
  NoSuchOptError: no such option: consoleauth_manager

  There is a mailing list thread related to this, but not for ec2:

  http://lists.openstack.org/pipermail/openstack-
  dev/2013-September/014896.html

  Simply importing this fixes the problem:

  CONF.import_opt('consoleauth_manager', 'nova.consoleauth.manager')

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1276398/+subscriptions


Follow ups

References