← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1218745] Re: no such option 'osapi_compute_ext_list' while running single unit test through nosetests

 

tox -epy27
nova.tests.api.openstack.compute.contrib.test_disk_config.DiskConfigTestCase.test_create_server_detect_from_image

worked for me, and as we are moving towards not using run_tests, marking
this as opinion, feel free to propose a patch to fix this though.

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

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

Title:
  no such option 'osapi_compute_ext_list' while running single unit test
  through nosetests

Status in OpenStack Compute (Nova):
  Opinion

Bug description:
  this may because we have not import the src code
  'nova.api.openstack.compute.contrib', so the config is not registered.

  $ nosetests nova.tests.api.openstack.compute.contrib.test_disk_config
  EEEEEEEE
  ======================================================================
  ERROR: nova.tests.api.openstack.compute.contrib.test_disk_config.DiskConfigTestCase.test_create_server_detect_from_image

  .......

  Traceback (most recent call last):
    File "/home/hzwangpan/nova/nova/tests/api/openstack/compute/contrib/test_disk_config.py", line 50, in setUp
      osapi_compute_ext_list=['Disk_config'])
    File "/home/hzwangpan/nova/nova/test.py", line 273, in flags
      CONF.set_override(k, v, group)
    File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1540, in __inner
      result = f(self, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1783, in set_override
      opt_info = self._get_opt_info(name, group)
    File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2029, in _get_opt_info
      raise NoSuchOptError(opt_name, group)
  NoSuchOptError: no such option: osapi_compute_ext_list

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