Bug 1955907

Summary: dnf playground throws an error
Product: [Fedora] Fedora Reporter: glebsmirnov0708
Component: dnf-plugins-coreAssignee: Silvie Chlupova <schlupov>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: amatej, dmach, jmracek, mblaha, packaging-team-maint, pkratoch, praiskup, rpm-software-management, schlupov, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.0.23-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-24 20:32:29 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:
Embargoed:

Description glebsmirnov0708 2021-05-01 11:27:07 UTC
Description of problem:

`dnf playground` with any of its subcommands (enable, disable and upgrade) throws an error and fails.


Version-Release number of selected component (if applicable):

4.0.19


How reproducible:

Always


Steps to Reproduce:

1. Open terminal
2. Run `dnf playground enable` or `dnf playground disable` or `dnf playground upgrade`


Actual results:

Python throws an error


Expected results:

DNF enables, disables or upgrades Playground repo


Additional info:

Thrown error:

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.9/site-packages/dnf/cli/main.py", line 201, in user_main
    errcode = main(args)
  File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 67, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 102, in _main
    cli.configure(list(map(ucd, args)), option_parser())
  File "/usr/lib/python3.9/site-packages/dnf/cli/cli.py", line 881, in configure
    self.command.configure()
  File "/usr/lib/python3.9/site-packages/dnf-plugins/copr.py", line 144, in configure
    if len(self.opts.arg):
AttributeError: 'Namespace' object has no attribute 'arg'

Comment 1 Lukáš Hrázký 2021-05-03 13:35:11 UTC
Pavel, reassigning to you, seems like a copr plugin bug.

In case there's a different procedure to assign bugs to the Copr team, let me know, thanks.

Comment 2 Lukáš Hrázký 2021-05-03 13:59:00 UTC
Actually, seems copr-team is the assignee to use.

Comment 3 Fedora Update System 2021-09-23 13:04:49 UTC
FEDORA-2021-a3a73697b8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a3a73697b8

Comment 4 Fedora Update System 2021-09-23 19:41:48 UTC
FEDORA-2021-a3a73697b8 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a3a73697b8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a3a73697b8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-09-24 20:32:29 UTC
FEDORA-2021-a3a73697b8 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.