Bug 1955907

Summary: dnf playground throws an error
Product: [Fedora] Fedora Reporter: glebsmirnov0708
Component: dnf-plugins-coreAssignee: Copr Team <copr-team>
Status: NEW --- 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, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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@redhat.com is the assignee to use.