Bug 1289231

Summary: [abrt] dnf: package.py:115:repo:KeyError: '@commandline'
Product: [Fedora] Fedora Reporter: Sudhir Khanger <sudhir>
Component: dnf-plugins-extrasAssignee: Igor Gnatenko <ignatenko>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: ignatenko, jkadlcik, jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/b4d63e6ebac7b02c02e16a75a270fe716db5bed6
Whiteboard: abrt_hash:15d9aeacfb9f04094f6e1a0250444b8fdc8803f9;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 10:29:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: _var_log_dnf.log
none
File: backtrace
none
File: dnf-makecache.log
none
File: environ none

Description Sudhir Khanger 2015-12-07 17:18:20 UTC
Version-Release number of selected component:
dnf-1.1.4-1.fc23

Additional info:
reporter:       libreport-2.6.3
cmdline:        /usr/bin/python3 -OO /bin/dnf -y install --disablerepo=* /tmp/akmods.6NV44x4C/results/kmod-VirtualBox-4.2.6-301.fc23.x86_64-5.0.10-1.fc23.x86_64.rpm
executable:     /bin/dnf
kernel:         4.2.6-300.fc23.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
package.py:115:repo:KeyError: '@commandline'

Traceback (most recent call last):
  File "/bin/dnf", line 57, 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 120, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 159, in resolving
    base.plugins.run_transaction()
  File "/usr/lib/python3.4/site-packages/dnf/plugin.py", line 82, in fn
    dnf.util.mapall(operator.methodcaller(method), self.plugins)
  File "/usr/lib/python3.4/site-packages/dnf/util.py", line 157, in mapall
    return list(map(fn, *seq))
  File "/usr/lib/python3.4/site-packages/dnf-plugins/local.py", line 119, in transaction
    if pkg.repo.pkgdir == repodir:
  File "/usr/lib/python3.4/site-packages/dnf/package.py", line 115, in repo
    return self.base.repos[self.reponame]
KeyError: '@commandline'

Local variables in innermost frame:
self: <hawkey.Package object id 2252, kmod-VirtualBox-4.2.6-301.fc23.x86_64-5.0.10-1.fc23.x86_64, @commandline>

Comment 1 Sudhir Khanger 2015-12-07 17:18:36 UTC
Created attachment 1103325 [details]
File: _var_log_dnf.log

Comment 2 Sudhir Khanger 2015-12-07 17:18:38 UTC
Created attachment 1103326 [details]
File: backtrace

Comment 3 Sudhir Khanger 2015-12-07 17:18:45 UTC
Created attachment 1103327 [details]
File: dnf-makecache.log

Comment 4 Sudhir Khanger 2015-12-07 17:18:47 UTC
Created attachment 1103328 [details]
File: environ

Comment 5 Sudhir Khanger 2015-12-09 09:32:38 UTC
This is even affecting normal package install.

$ sudo dnf reinstall google-chrome-unstable_current_x86_64.rpm
Last metadata expiration check performed 0:01:24 ago on Wed Dec  9 14:35:45 2015.
Dependencies resolved.
========================================================================================================================================================================
 Package                                         Arch                            Version                                    Repository                             Size
========================================================================================================================================================================
Reinstalling:
 google-chrome-unstable                          x86_64                          48.0.2564.22-1                             @commandline                           46 M

Transaction Summary
========================================================================================================================================================================

Total size: 46 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Reinstalling: google-chrome-unstable-48.0.2564.22-1.x86_64                                                                                                        1/2 
Redirecting to /bin/systemctl start  atd.service
  Erasing     : google-chrome-unstable-48.0.2564.22-1.x86_64                                                                                                        2/2 
  Verifying   : google-chrome-unstable-48.0.2564.22-1.x86_64                                                                                                        1/2 
  Verifying   : google-chrome-unstable-48.0.2564.22-1.x86_64                                                                                                        2/2 

Reinstalled:
  google-chrome-unstable.x86_64 48.0.2564.22-1                                                                                                                          

Traceback (most recent call last):
  File "/bin/dnf", line 57, 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 120, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 159, in resolving
    base.plugins.run_transaction()
  File "/usr/lib/python3.4/site-packages/dnf/plugin.py", line 82, in fn
    dnf.util.mapall(operator.methodcaller(method), self.plugins)
  File "/usr/lib/python3.4/site-packages/dnf/util.py", line 157, in mapall
    return list(map(fn, *seq))
  File "/usr/lib/python3.4/site-packages/dnf-plugins/local.py", line 119, in transaction
    if pkg.repo.pkgdir == repodir:
  File "/usr/lib/python3.4/site-packages/dnf/package.py", line 115, in repo
    return self.base.repos[self.reponame]
KeyError: '@commandline'

Comment 6 Michal Luscon 2015-12-09 09:39:13 UTC
You can try to disable plugins or uninstall plugin "local" as it looks like the local plugin is responsible for your issues.

Comment 7 Igor Gnatenko 2016-04-07 10:29:49 UTC

*** This bug has been marked as a duplicate of bug 1226766 ***