← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1396703] [NEW] NoSuchOptError: no such option in group database: backend

 

Public bug reported:

When running any of the database specific test classes in
nova.tests.unit.db.test_migrations, each individual test will fail with
a traceback similar to this:

Traceback (most recent call last):
  File "/home/johannes/openstack/nova/nova/tests/unit/db/test_migrations.py", line 164, in test_compare_schema_alembic
    self.walk_versions(snake_walk=False, downgrade=False)
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/db/sqlalchemy/test_migrations.py", line 187, in walk_versions
    self.INIT_VERSION)
  File "/home/johannes/openstack/nova/nova/tests/unit/db/test_migrations.py", line 73, in INIT_VERSION
    return migration.db_initial_version()
  File "/home/johannes/openstack/nova/nova/db/migration.py", line 44, in db_initial_version
    return IMPL.db_initial_version()
  File "/home/johannes/openstack/nova/nova/utils.py", line 427, in __getattr__
    backend = self.__get_backend()
  File "/home/johannes/openstack/nova/nova/utils.py", line 410, in __get_backend
    backend_name = CONF[self.__config_group][self.__pivot]
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2313, in __getitem__
    return self.__getattr__(key)
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2309, in __getattr__
    return self._conf._get(name, self._group)
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2043, in _get
    value = self._do_get(name, group, namespace)
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2061, in _do_get
    info = self._get_opt_info(name, group)
  File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2189, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option in group database: backend

This appears to be because of an incorrect use of conf_fixture

** Affects: nova
     Importance: Undecided
     Assignee: Johannes Erdfelt (johannes.erdfelt)
         Status: In Progress

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

Title:
  NoSuchOptError: no such option in group database: backend

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  When running any of the database specific test classes in
  nova.tests.unit.db.test_migrations, each individual test will fail
  with a traceback similar to this:

  Traceback (most recent call last):
    File "/home/johannes/openstack/nova/nova/tests/unit/db/test_migrations.py", line 164, in test_compare_schema_alembic
      self.walk_versions(snake_walk=False, downgrade=False)
    File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/db/sqlalchemy/test_migrations.py", line 187, in walk_versions
      self.INIT_VERSION)
    File "/home/johannes/openstack/nova/nova/tests/unit/db/test_migrations.py", line 73, in INIT_VERSION
      return migration.db_initial_version()
    File "/home/johannes/openstack/nova/nova/db/migration.py", line 44, in db_initial_version
      return IMPL.db_initial_version()
    File "/home/johannes/openstack/nova/nova/utils.py", line 427, in __getattr__
      backend = self.__get_backend()
    File "/home/johannes/openstack/nova/nova/utils.py", line 410, in __get_backend
      backend_name = CONF[self.__config_group][self.__pivot]
    File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2313, in __getitem__
      return self.__getattr__(key)
    File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2309, in __getattr__
      return self._conf._get(name, self._group)
    File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2043, in _get
      value = self._do_get(name, group, namespace)
    File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2061, in _do_get
      info = self._get_opt_info(name, group)
    File "/home/johannes/virtualenvs/migrations/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2189, in _get_opt_info
      raise NoSuchOptError(opt_name, group)
  NoSuchOptError: no such option in group database: backend

  This appears to be because of an incorrect use of conf_fixture

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


Follow ups

References