Bug 1401041

Summary: Python traceback in dnf-plugin-spacewalk in Fedora 24
Product: [Fedora] Fedora Reporter: Pavel Studeník <pstudeni>
Component: dnfAssignee: rpm-software-management
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: mluscon, packaging-team-maint, pnemade, pstudeni, rdrazny, rpm-software-management, satqe-list, tkasparek, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-1.1.10-4.fc25 dnf-1.1.10-2.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1395737 Environment:
Last Closed: 2016-12-04 02:29:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1395737    
Bug Blocks:    

Description Pavel Studeník 2016-12-02 15:48:41 UTC
+++ This bug was initially created as a clone of Bug #1395737 +++

Description of problem:
Doing "dnf -v repolist" on Fedora 24/25 ends with a traceback if -v option used.


Version-Release number of selected component (if applicable):
dnf-plugin-spacewalk-2.5.8-1.fc23
dnf-1.1.10-1.fc23

Same issue reproduced on Fedora 24 with dnf-plugin-spacewalk-2.7.1-1 from nightly-client

How reproducible:
always


Steps to Reproduce:
1. Install rhn-client-tools and rhn-setup on Fedora 23 from Spacewalk client repo.
2. Create an channel on a Spacewalk 2.5 server and create an activation key for it. Empty channel without any packages is sufficient.
3. Register Fedora client to the channel on Spacewalk server using the activation key.
4. Try running "dnf -v repolist"

Actual results:

Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 112, in _main
    cli.run()
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1099, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.4/site-packages/dnf/cli/commands/repolist.py", line 216, in run
    if repo.repofile:
AttributeError: 'SpacewalkRepo' object has no attribute 'repofile'


Expected results:
Verbose repo info is listed without any error.

Additional info:
Same issue reproduced on Fedora 24 with dnf-plugin-spacewalk-2.7.1-1 from nightly-client

--- Additional comment from Pavel Studeník on 2016-12-02 08:33:03 EST ---

Bug is not fixed in dnf-plugin-spacewalk-2.7.2-1.fc25.noarch

--- Additional comment from Pavel Studeník on 2016-12-02 10:45:58 EST ---

fix in upstream https://github.com/rpm-software-management/dnf/commit/fba7ae2890ddc725fdad3fd092278e36dd029a83

Comment 1 Fedora Update System 2016-12-02 16:13:06 UTC
dnf-1.1.10-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-08cf606646

Comment 2 Fedora Update System 2016-12-02 16:13:17 UTC
dnf-1.1.10-4.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-72ef1673b7

Comment 3 Fedora Update System 2016-12-03 04:37:43 UTC
dnf-1.1.10-4.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-72ef1673b7

Comment 4 Fedora Update System 2016-12-03 05:43:23 UTC
dnf-1.1.10-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-08cf606646

Comment 5 Fedora Update System 2016-12-04 02:29:06 UTC
dnf-1.1.10-4.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2016-12-04 05:25:41 UTC
dnf-1.1.10-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.