RuntimeError: Unable to find group for option fatal_deprecations, maybe it's defined twice in the same group?

Bug #1424576 reported by Christian Berendt
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Davanum Srinivas (DIMS)
oslo-incubator
Won't Fix
Undecided
Unassigned

Bug Description

I tried to generate a nova.conf configuration file with the current state of the Nova repository (master) and got the following exception message:

% tox -e genconfig
genconfig create: /home/berendt/Repositories/nova/.tox/genconfig
genconfig installdeps: -r/home/berendt/Repositories/nova/requirements.txt, -r/home/berendt/Repositories/nova/test-requirements.txt
genconfig develop-inst: /home/berendt/Repositories/nova
genconfig runtests: PYTHONHASHSEED='0'
genconfig runtests: commands[0] | bash tools/config/generate_sample.sh -b . -p nova -o etc/nova
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/berendt/Repositories/nova/nova/openstack/common/config/generator.py", line 303, in <module>
    main()
  File "/home/berendt/Repositories/nova/nova/openstack/common/config/generator.py", line 300, in main
    generate(sys.argv[1:])
  File "/home/berendt/Repositories/nova/nova/openstack/common/config/generator.py", line 128, in generate
    for group, opts in _list_opts(mod_obj):
  File "/home/berendt/Repositories/nova/nova/openstack/common/config/generator.py", line 192, in _list_opts
    ret.setdefault(_guess_groups(opt, obj), []).append(opt)
  File "/home/berendt/Repositories/nova/nova/openstack/common/config/generator.py", line 172, in _guess_groups
    % opt.name
RuntimeError: Unable to find group for option fatal_deprecations, maybe it's defined twice in the same group?

description: updated
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

This problem was introduced with this change https://review.openstack.org/#/c/123868/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/159685

Changed in nova:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Changed in nova:
importance: Undecided → Low
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The config generator from the incubator is deprecated in favor of the new approach in oslo.config.

Changed in oslo-incubator:
status: New → Won't Fix
Changed in nova:
milestone: none → kilo-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/159685
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=31622aeaf947a0e053d24f21b2e24a09b43f9023
Submitter: Jenkins
Branch: master

commit 31622aeaf947a0e053d24f21b2e24a09b43f9023
Author: Davanum Srinivas <email address hidden>
Date: Thu Feb 26 17:46:28 2015 -0500

    Update config generator to use new style list_opts discovery

    Stop-gap until we move to oslo-config-generator. We need something
    to get by the fatal_deprecation problem. The oslo-incubator
    changeset referenced should be merged first.

    Closes-Bug: #1424576
    Depends-On: Ie6d1da242b79bb1dfd03494dee82fbb73eb94217
    Change-Id: I7b9aa7588d91ee7b7d2faeb090b4e0ca6ced1c0a

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.