Bug 752495

Summary: Crash when apply settings
Product: [Fedora] Fedora Reporter: Bill C. Riemers <briemers>
Component: sssdAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 16CC: jhrozek, jon+bugzilla.redhat.com, sbose, sgallagh, ssorce, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: sssd-1.6.4-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 768935 (view as bug list) Environment:
Last Closed: 2012-01-04 01:52:19 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:
Bug Depends On:    
Bug Blocks: 768935    
Attachments:
Description Flags
/etc/sssd/sssd.conf causing the error none

Description Bill C. Riemers 2011-11-09 17:19:38 UTC
Description of problem:

Whenever I click on the apply button, the dialog crashes, my settings are not saved.


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

authconfig-gtk-6.1.16-1.fc16.x86_64

How reproducible:

100%

Steps to Reproduce:
1. system-config-gtk
2. set some parameters, such as an LDAP configuration
3. click apply
  
Actual results:

[root@briemersw sssd]# system-config-authentication 
Traceback (most recent call last):
  File "/usr/sbin/system-config-authentication", line 701, in <module>
    module.apply()
  File "/usr/sbin/system-config-authentication", line 650, in apply
    self.info.writeChanged(self.pristineinfo)
  File "/usr/share/authconfig/authinfo.py", line 3632, in writeChanged
    ret = ret and group.saveFunction()
  File "/usr/share/authconfig/authinfo.py", line 2974, in writeSSSD
    self.sssdConfig.save_domain(domain)
  File "/usr/lib/python2.7/site-packages/SSSDConfig.py", line 1765, in save_domain
    self.delete_option_subtree(section_subtree, 'option', option['name'], True)
  File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 559, in delete_option_subtree
    index, item = self.findOpts(subtree, type, name, exclude_sections)
  File "/usr/lib/python2.7/site-packages/ipachangeconf.py", line 201, in findOpts
    if o['type'] == type and o['name'] == name:
TypeError: 'int' object is not subscriptable


Expected results:

savings are applied

Additional info:

Comment 1 Tomas Mraz 2011-11-09 22:17:43 UTC
I cannot reproduce the problem on my freshly updated Fedora 16 VM. The traceback comes from the SSSD configuration API, reassigning.

Comment 2 Bill C. Riemers 2011-11-09 23:17:23 UTC
Created attachment 532688 [details]
/etc/sssd/sssd.conf causing the error

It looks like the code that is reporting the error is designed to remove unrecognised options from the config file.   I do not know which option it is causing the problem.   Based on the idea that it works with a fresh install, I replaced this file with the fresh install file and reconfigured from scratch.

Comment 3 Tomas Mraz 2011-11-10 10:14:12 UTC
*** Bug 752741 has been marked as a duplicate of this bug. ***

Comment 4 Jakub Hrozek 2011-11-10 12:08:26 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1082

Comment 5 Jon Dowland 2011-11-10 14:35:34 UTC
In my case (merged bug 752741) this was a pristine F16 install and no custom sssd.conf.

Comment 6 Fedora Update System 2011-12-19 21:28:00 UTC
sssd-1.6.4-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/sssd-1.6.4-1.fc16

Comment 7 Fedora Update System 2011-12-22 22:51:32 UTC
Package sssd-1.6.4-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing sssd-1.6.4-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17349/sssd-1.6.4-1.fc16
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-01-04 01:52:19 UTC
sssd-1.6.4-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.