← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1182772] Re: database migration failed with missing QUOTAS option

 

** Changed in: quantum
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1182772

Title:
  database migration failed with missing QUOTAS option

Status in OpenStack Quantum (virtual network service):
  Fix Released

Bug description:
  QUOTAS section was rename to quotas in commit:
  362bd7fd09a5c6ff67e751ae5927f5b45deeac11

  However the quantum/db/migration/alembic_migrations/env.py still using
  old QUOTAS to reference quota related options.

  So when I perform any database migration action there will be some
  error like this:

  Traceback (most recent call last):
    File "/usr/local/bin/quantum-db-manage", line 9, in <module>
      load_entry_point('quantum==2013.2.a615.gb28ae84', 'console_scripts', 'quantum-db-manage')()
    File "/home/ubuntu/quantum/quantum/db/migration/cli.py", line 135, in main
      CONF.command.func(config, CONF.command.name)
    File "/home/ubuntu/quantum/quantum/db/migration/cli.py", line 53, in do_alembic_command
      getattr(alembic_command, cmd)(config, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 189, in current
      script.run_env()
    File "/usr/local/lib/python2.7/dist-packages/alembic/script.py", line 191, in run_env
      util.load_python_file(self.dir, 'env.py')
    File "/usr/local/lib/python2.7/dist-packages/alembic/util.py", line 186, in load_python_file
      module = imp.load_source(module_id, path, open(path, 'rb'))
    File "/home/ubuntu/quantum/quantum/db/migration/alembic_migrations/env.py", line 100, in <module>
      run_migrations_online()
    File "/home/ubuntu/quantum/quantum/db/migration/alembic_migrations/env.py", line 84, in run_migrations_online
      options=build_options())
    File "/home/ubuntu/quantum/quantum/db/migration/alembic_migrations/env.py", line 90, in build_options
      return {'folsom_quota_db_enabled': is_db_quota_enabled()}
    File "/home/ubuntu/quantum/quantum/db/migration/alembic_migrations/env.py", line 94, in is_db_quota_enabled
      return quantum_config.QUOTAS.quota_driver == DATABASE_QUOTA_DRIVER
    File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1191, in __getattr__
      return self._get(name)
    File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1513, in _get
      value = self._substitute(self._do_get(name, group))
    File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1529, in _do_get
      info = self._get_opt_info(name, group)
    File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1629, in _get_opt_info
      raise NoSuchOptError(opt_name, group)
  oslo.config.cfg.NoSuchOptError: no such option: QUOTAS

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