Adding oslo.limit entrypoint to oslo-config-generator config results in ValueError

Bug #1962406 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.limit
Fix Released
Undecided
Takashi Kajinami

Bug Description

It turned out the following change causes regression and now oslo-config-genrator command always fails when oslo.limit entrypoint is added to its config file.

https://review.opendev.org/c/openstack/oslo.limit/+/813540

~~~
Traceback (most recent call last):
  File "/home/tkajinam/git/openstack/nova/.tox/shared/bin/oslo-config-generator", line 8, in <module>
    sys.exit(main())
  File "/home/tkajinam/git/openstack/nova/.tox/shared/lib/python3.8/site-packages/oslo_config/generator.py", line 836, in main
    generate(conf)
  File "/home/tkajinam/git/openstack/nova/.tox/shared/lib/python3.8/site-packages/oslo_config/generator.py", line 797, in generate
    groups = _get_groups(_list_opts(conf.namespace))
  File "/home/tkajinam/git/openstack/nova/.tox/shared/lib/python3.8/site-packages/oslo_config/generator.py", line 537, in _list_opts
    for group, group_opts in loader():
ValueError: too many values to unpack (expected 2)
~~~

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/oslo.limit/+/831103

Changed in oslo.limit:
status: New → In Progress
Changed in oslo.limit:
assignee: nobody → Takashi Kajinami (kajinamit)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.limit (master)

Reviewed: https://review.opendev.org/c/openstack/oslo.limit/+/831103
Committed: https://opendev.org/openstack/oslo.limit/commit/ce5aa7dccad4b95db6758c988287a07574ddb918
Submitter: "Zuul (22348)"
Branch: master

commit ce5aa7dccad4b95db6758c988287a07574ddb918
Author: Takashi Kajinami <email address hidden>
Date: Mon Feb 28 01:23:14 2022 +0900

    oslo-config-generator: Fix ValueError

    This fixes how the opts data is formatted to fix auto-generation of
    config file using oslo-config-generator with oslo.limit entry point.

    Closes-Bug: #1962406
    Change-Id: I176a7b2b8e2edb50659783a2139c3cc13e8f2f53

Changed in oslo.limit:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.limit (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/oslo.limit/+/832713

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.limit (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/oslo.limit/+/832713
Committed: https://opendev.org/openstack/oslo.limit/commit/594aff58952e35a8f0c578cd21c9754db32d2bd4
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 594aff58952e35a8f0c578cd21c9754db32d2bd4
Author: Takashi Kajinami <email address hidden>
Date: Mon Feb 28 01:23:14 2022 +0900

    oslo-config-generator: Fix ValueError

    This fixes how the opts data is formatted to fix auto-generation of
    config file using oslo-config-generator with oslo.limit entry point.

    Closes-Bug: #1962406
    Change-Id: I176a7b2b8e2edb50659783a2139c3cc13e8f2f53
    (cherry picked from commit ce5aa7dccad4b95db6758c988287a07574ddb918)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.limit 1.6.0

This issue was fixed in the openstack/oslo.limit 1.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.limit 1.5.1

This issue was fixed in the openstack/oslo.limit 1.5.1 release.

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.