Bug 1395737 - Python traceback in dnf-plugin-spacewalk in Fedora 23
Summary: Python traceback in dnf-plugin-spacewalk in Fedora 23
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 1401041 space27
TreeView+ depends on / blocked
 
Reported: 2016-11-16 14:46 UTC by Radovan Drazny
Modified: 2017-09-27 19:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1401041 (view as bug list)
Environment:
Last Closed: 2017-09-27 19:27:05 UTC


Attachments (Terms of Use)

Description Radovan Drazny 2016-11-16 14:46:08 UTC
Description of problem:
Doing "dnf -v repolist" on Fedora 23/24 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

Comment 1 Pavel Studeník 2016-12-02 13:33:03 UTC
Bug is not fixed in dnf-plugin-spacewalk-2.7.2-1.fc25.noarch

Comment 3 Pavel Studeník 2016-12-05 16:21:41 UTC
Verified with dnf-1.1.10-4.fc25.noarch

Comment 4 Eric Herget 2017-09-27 19:27:05 UTC
This looks like it was fixed in previous release, but I'm closing it in this one.

Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27


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