Bug 1145820

Summary: groupinstall traceback with nonexistent group
Product: [Fedora] Fedora Reporter: Luke Macken <lmacken>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akozumpl, jsilhan, packaging-team-maint, pfrields, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-23 23:43:49 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 Luke Macken 2014-09-23 21:05:52 UTC
Description of problem:

Out of old habit, I ran this groupinstall command, and triggered a traceback. It looks like the group I'm trying to install doesn't exist anymore, but  `groupinstall foo` doesn't trigger the same exception.

[~] sudo dnf -y groupinstall "Fedora Packager"
Dependencies resolved.
Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 141, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving
    base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 185, in do_transaction
    grp_diff = self._groups_diff()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 145, in _groups_diff
    return self.group_persistor.diff()
  File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 273, in diff
    return _GroupsDiff(self._original, self.db)
  File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 170, in __init__
    self.added, self.removed = _diff_dcts(db_old, db_new)
  File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 60, in _diff_dcts
    keys1 = set(dct1.keys())
AttributeError: 'NoneType' object has no attribute 'keys'

[~] sudo dnf grouplist | grep Fedora
   Fedora Cloud Server
   Fedora Server
   Fedora Workstation
   Fedora Eclipse


Version-Release number of selected component (if applicable):
dnf-0.6.0-1.fc21.noarch

Comment 1 Parag Nemade 2014-09-23 23:43:49 UTC
I will mark this as duplicate as both traceback looks same. Please update dnf package to latest update 0.6.1-1.fc21

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