← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1748399] [NEW] Config generation failing after recent patch

 

Public bug reported:

tox -egenconfig failing after https://review.openstack.org/#/c/541740/  with Error:-
Traceback (most recent call last):
  File "/root/glance/.tox/genconfig/bin/oslo-config-generator", line 11, in <module>
    sys.exit(main())
  File "/root/glance/.tox/genconfig/lib/python2.7/site-packages/oslo_config/generator.py", line 770, in main
    generate(conf)
  File "/root/glance/.tox/genconfig/lib/python2.7/site-packages/oslo_config/generator.py", line 731, in generate
    groups = _get_groups(_list_opts(conf.namespace))
  File "/root/glance/.tox/genconfig/lib/python2.7/site-packages/oslo_config/generator.py", line 489, in _list_opts
    for group, group_opts in loader():
  File "/root/glance/glance/opts.py", line 165, in list_image_import_opts
    return [(g, copy.deepcopy(o)) for g, o in opts]
TypeError: 'NoneType' object is not iterable
ERROR: InvocationError: '/root/glance/.tox/genconfig/bin/oslo-config-generator --config-file etc/oslo-config-generator/glance-image-import.conf'
____________________________________________________________________ summary _____________________________________________________________________
ERROR:   genconfig: commands failed

Review https://review.openstack.org/#/c/541740/ wrongly used "extend"
method in image_import_opts.

** Affects: glance
     Importance: Critical
     Assignee: yatin (yatinkarel)
         Status: Confirmed

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

Title:
  Config generation failing after recent patch

Status in Glance:
  Confirmed

Bug description:
  tox -egenconfig failing after https://review.openstack.org/#/c/541740/  with Error:-
  Traceback (most recent call last):
    File "/root/glance/.tox/genconfig/bin/oslo-config-generator", line 11, in <module>
      sys.exit(main())
    File "/root/glance/.tox/genconfig/lib/python2.7/site-packages/oslo_config/generator.py", line 770, in main
      generate(conf)
    File "/root/glance/.tox/genconfig/lib/python2.7/site-packages/oslo_config/generator.py", line 731, in generate
      groups = _get_groups(_list_opts(conf.namespace))
    File "/root/glance/.tox/genconfig/lib/python2.7/site-packages/oslo_config/generator.py", line 489, in _list_opts
      for group, group_opts in loader():
    File "/root/glance/glance/opts.py", line 165, in list_image_import_opts
      return [(g, copy.deepcopy(o)) for g, o in opts]
  TypeError: 'NoneType' object is not iterable
  ERROR: InvocationError: '/root/glance/.tox/genconfig/bin/oslo-config-generator --config-file etc/oslo-config-generator/glance-image-import.conf'
  ____________________________________________________________________ summary _____________________________________________________________________
  ERROR:   genconfig: commands failed

  Review https://review.openstack.org/#/c/541740/ wrongly used "extend"
  method in image_import_opts.

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


Follow ups