Bug 1813338 - fedpkg traceback on any use
Summary: fedpkg traceback on any use
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fedpkg
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Ondřej Nosek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-13 14:43 UTC by Steve Grubb
Modified: 2020-03-30 16:59 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-30 16:59:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Steve Grubb 2020-03-13 14:43:26 UTC
Description of problem:
Running any command under fedpkg-1.38-2 causes a traceback:

$ fedpkg switch-branch f32
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 11, in <module>
    load_entry_point('fedpkg==1.38', 'console_scripts', 'fedpkg')()
  File "/usr/lib/python3.7/site-packages/fedpkg/__main__.py", line 59, in main
    client = fedpkg.cli.fedpkgClient(config, name=cli_name)
  File "/usr/lib/python3.7/site-packages/fedpkg/cli.py", line 101, in __init__
    self.setup_fed_subparsers()
  File "/usr/lib/python3.7/site-packages/fedpkg/cli.py", line 123, in setup_fed_subparsers
    self.register_do_fork()
  File "/usr/lib/python3.7/site-packages/fedpkg/cli.py", line 463, in register_do_fork
    '{0}.distgit'.format(self.name), 'apibaseurl')).netloc))
  File "/usr/lib64/python3.7/configparser.py", line 780, in get
    d = self._unify_values(section, vars)
  File "/usr/lib64/python3.7/configparser.py", line 1146, in _unify_values
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'fedpkg.distgit'



Version-Release number of selected component (if applicable):
fedpkg-1.38-2.fc31.noarch

How reproducible:
Every time

Comment 1 Steve Grubb 2020-03-13 14:44:03 UTC
Btw, everything was good prior to the update today.

Comment 2 Lubomír Sedlář 2020-03-13 14:57:10 UTC
This looks like an issue with configuration. Can you check if you have /etc/rpkg/fedpkg.conf.rpmnew or /etc/rpkg/fedpkg.conf.rpmsave? If yes, try to merge your changes to the config with the maintainer provided version.

Comment 3 Ondřej Nosek 2020-03-13 15:01:08 UTC
The issue is connected with new feature "Create fork of the active repository" listed here:

https://docs.pagure.org/fedpkg/releases/1.38.html

There are two possibilities of how to recover


1) Modify config as per documentation page

/etc/rpkg/fedpkg.conf

[fedpkg.distgit]
apibaseurl = https://src.fedoraproject.org
token =


2) use default config
during the upgrade of the fedpkg-1.38 you probably could see a message:

warning: /etc/rpkg/fedpkg.conf created as /etc/rpkg/fedpkg.conf.rpmnew

so replace the fedpkg.conf with the .rpmnew file.

Comment 4 Fedora Admin XMLRPC Client 2020-03-23 16:40:24 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 5 Ondřej Nosek 2020-03-30 16:59:03 UTC
Fixed in current rawhide as fedpkg-1.38-3. Releases for other distros will follow.
When there is specific (especially recently added) missing section or option in a config file, the program will show a hint on how to recover.


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