Bug 1226564 - KeyError: 'wheel'
Summary: KeyError: 'wheel'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Shea
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2100f2de321adb2b9cd695827a8...
: 1272839 1279738 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-30 17:44 UTC by mk
Modified: 2015-11-10 13:44 UTC (History)
6 users (show)

Fixed In Version: anaconda-24.3-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-02 15:35:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (794.26 KB, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: anaconda.log (43.29 KB, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: dnf.log (50.85 KB, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: dnf.rpm.log (147 bytes, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: environ (492 bytes, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: lsblk_output (2.01 KB, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: nmcli_dev_list (1.95 KB, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: os_info (447 bytes, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: program.log (36.02 KB, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: storage.log (231.21 KB, text/plain)
2015-05-30 17:44 UTC, mk
no flags Details
File: syslog (113.04 KB, text/plain)
2015-05-30 17:45 UTC, mk
no flags Details
File: ifcfg.log (2.44 KB, text/plain)
2015-05-30 17:45 UTC, mk
no flags Details
File: packaging.log (3.41 KB, text/plain)
2015-05-30 17:45 UTC, mk
no flags Details
Fix KeyError exception during user creation as administrator. (1.78 KB, patch)
2015-06-01 10:38 UTC, Sujith
no flags Details | Diff

Description mk 2015-05-30 17:44:28 UTC
Description of problem:
During installation I selected to create a user acount. Entered full name, username, password and marked the user as an administrator. Clicked on Advanced. Closed the window with the advanced options. Clicked on Advanced again.

Version-Release number of selected component:
anaconda-22.20.13-1

The following was filed automatically by anaconda:
anaconda 22.20.13-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/user.py", line 153, in refresh
    group = self._groupDict[group_name]
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/user.py", line 633, in on_advanced_clicked
    self._advanced.refresh()
KeyError: 'wheel'

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python2  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-22-x86_64 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.0.4-301.fc22.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        22

Potential duplicate: bug 1122042

Comment 1 mk 2015-05-30 17:44:41 UTC
Created attachment 1032536 [details]
File: anaconda-tb

Comment 2 mk 2015-05-30 17:44:43 UTC
Created attachment 1032537 [details]
File: anaconda.log

Comment 3 mk 2015-05-30 17:44:45 UTC
Created attachment 1032538 [details]
File: dnf.log

Comment 4 mk 2015-05-30 17:44:46 UTC
Created attachment 1032539 [details]
File: dnf.rpm.log

Comment 5 mk 2015-05-30 17:44:48 UTC
Created attachment 1032540 [details]
File: environ

Comment 6 mk 2015-05-30 17:44:49 UTC
Created attachment 1032541 [details]
File: lsblk_output

Comment 7 mk 2015-05-30 17:44:51 UTC
Created attachment 1032542 [details]
File: nmcli_dev_list

Comment 8 mk 2015-05-30 17:44:52 UTC
Created attachment 1032543 [details]
File: os_info

Comment 9 mk 2015-05-30 17:44:54 UTC
Created attachment 1032544 [details]
File: program.log

Comment 10 mk 2015-05-30 17:44:59 UTC
Created attachment 1032545 [details]
File: storage.log

Comment 11 mk 2015-05-30 17:45:02 UTC
Created attachment 1032546 [details]
File: syslog

Comment 12 mk 2015-05-30 17:45:03 UTC
Created attachment 1032547 [details]
File: ifcfg.log

Comment 13 mk 2015-05-30 17:45:04 UTC
Created attachment 1032548 [details]
File: packaging.log

Comment 14 Sujith 2015-06-01 10:38:24 UTC
Created attachment 1033253 [details]
Fix KeyError exception during user creation as administrator.

Steps to reproduce:
1. Go to User creation page
2. Enter Full name, username and password.
3. Mark "Make this user as administrator"
4. Click on "Advanced"
5. Remove "wheel" group and mention a new group. Ex: my-team (1245)
6. Save Changes.
7. See that "Make this user administrator" is unchecked. So check it again and go to "Advanced" again.
8. Exception is thrown.


Observation:
"wheel" group is necessary for an user to be an administrator.

If "wheel" group is absent when user is marked as administrator, "wheel" group is appended to list of groups of the user(in function:on_advanced_clicked()). However adding the same to group_dictionary is missing. 
This is causing the exception.

Requesting review & comments for the attached patch.

Comment 15 David Shea 2015-10-01 18:05:21 UTC
The changes in https://github.com/rhinstaller/anaconda/commit/9f0ada938d7abe7f9ee36f2f818c7740d5202aa0 should fix this.

Comment 16 David Shea 2015-10-19 13:48:25 UTC
*** Bug 1272839 has been marked as a duplicate of this bug. ***

Comment 17 David Shea 2015-11-10 13:44:45 UTC
*** Bug 1279738 has been marked as a duplicate of this bug. ***


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