Bug 2374297 - python-oslo-config: FTBFS in Fedora Rawhide with tests: ValueError: cannot have multiple subparser arguments [NEEDINFO]
Summary: python-oslo-config: FTBFS in Fedora Rawhide with tests: ValueError: cannot ha...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-oslo-config
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: PYTHON3.14 F43FTBFS PYC3.14rc3
TreeView+ depends on / blocked
 
Reported: 2025-06-23 11:28 UTC by Karolina Surma
Modified: 2025-10-31 02:16 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
mhroncok: needinfo? (jcapitao)
mhroncok: needinfo? (jcapitao)
mhroncok: needinfo? (jcapitao)
ksurma: needinfo? (jcapitao)


Attachments (Terms of Use)

Description Karolina Surma 2025-06-23 11:28:02 UTC
Description of problem:
Package python-oslo-config fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
9.6.0-4.fc43

Steps to Reproduce:
Switch the repo_bootstrap global macro to 0
Run a local mockbuild


Reproducible: Always

Actual Results:
oslo_config.tests.test_cfg.SubCommandTestCase.test_sub_command_multiple
-----------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/builddir/build/BUILD/python-oslo-config-9.6.0-build/oslo.config-9.6.0/oslo_config/tests/test_cfg.py", line 4389, in test_sub_command_multiple
    self.assertRaisesRegex(argparse.ArgumentError, 'multiple',
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           self.conf, [])
                           ^^^^^^^^^^^^^^

      File "/usr/lib64/python3.14/unittest/case.py", line 1414, in assertRaisesRegex
    return context.handle('assertRaisesRegex', args, kwargs)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib64/python3.14/unittest/case.py", line 247, in handle
    callable_obj(*args, **kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^

      File "/builddir/build/BUILD/python-oslo-config-9.6.0-build/oslo.config-9.6.0/oslo_config/tests/test_cfg.py", line 98, in __call__
    return cfg.ConfigOpts.__call__(
           ~~~~~~~~~~~~~~~~~~~~~~~^
        self,
        ^^^^^
    ...<7 lines>...
        default_config_dirs=default_config_dirs,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        validate_default_values=True)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/builddir/build/BUILD/python-oslo-config-9.6.0-build/oslo.config-9.6.0/oslo_config/cfg.py", line 2187, in __call__
    self._namespace = self._parse_cli_opts(argv)
                      ~~~~~~~~~~~~~~~~~~~~^^^^^^

      File "/builddir/build/BUILD/python-oslo-config-9.6.0-build/oslo.config-9.6.0/oslo_config/cfg.py", line 3139, in _parse_cli_opts
    opt._add_to_cli(self._oparser, group)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^

      File "/builddir/build/BUILD/python-oslo-config-9.6.0-build/oslo.config-9.6.0/oslo_config/cfg.py", line 1336, in _add_to_cli
    subparsers = parser.add_subparsers(dest=dest,
                                       title=self.title,
                                       description=self.description,
                                       help=self.help)

      File "/usr/lib64/python3.14/argparse.py", line 1948, in add_subparsers
    raise ValueError('cannot have multiple subparser arguments')

    ValueError: cannot have multiple subparser arguments

Comment 1 Miro Hrončok 2025-08-26 11:08:43 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc2+ bytecode in Fedora 43.

The Beta Freeze of Fedora 43 is scheduled to start today. Please prioritize this bugzilla accordingly.

Thanks.

Comment 2 Miro Hrončok 2025-09-23 18:55:58 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc3+ bytecode in Fedora 43.

The Final Freeze of Fedora 43 is scheduled to start on 2025-10-07. Please prioritize this bugzilla accordingly.

Thanks.

Comment 3 Karolina Surma 2025-09-29 14:21:09 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc3+ bytecode in Fedora 43.

The Final Freeze of Fedora 43 is scheduled to start next week. Please prioritize this bugzilla accordingly.

Thanks.

Comment 4 Fedora Admin user for bugzilla script actions 2025-10-31 02:16:36 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.


Note You need to log in before you can comment on or make changes to this bug.