https://bugzilla.redhat.com/show_bug.cgi?id=746229
Description of problem: Running an install using command: ipa-server-install --setup-dns --forwarder=10.14.63.12 --hostname=qe-blade-01.testrelm -r TESTRELM -n testrelm -p <xxx> -P <xxx> -a <xxx> -U throws error: Configuring Kerberos KDC: Estimated time 30 seconds [1/14]: setting KDC account password [2/14]: adding sasl mappings to the directory [3/14]: adding kerberos entries to the DS [4/14]: adding default ACIs [5/14]: configuring KDC Unexpected error - see ipaserver-install.log for details: 'NoneType' object has no attribute 'find' ipaserver-install.log has: 2011-10-14 08:18:54,618 DEBUG [5/14]: configuring KDC 2011-10-14 08:18:54,619 DEBUG Backing up system configuration file '/var/kerberos/krb5kdc/kdc.conf' 2011-10-14 08:18:54,619 DEBUG Saving Index File to '/var/lib/ipa/sysrestore/sysrestore.index' 2011-10-14 08:18:54,620 DEBUG Backing up system configuration file '/etc/krb5.conf' 2011-10-14 08:18:54,620 DEBUG Saving Index File to '/var/lib/ipa/sysrestore/sysrestore.index' 2011-10-14 08:18:54,628 DEBUG Backing up system configuration file '/usr/share/ipa/html/krb5.ini' 2011-10-14 08:18:54,629 DEBUG -> Not backing up - '/usr/share/ipa/html/krb5.ini' doesn't exist 2011-10-14 08:18:54,629 DEBUG Backing up system configuration file '/usr/share/ipa/html/krb.con' 2011-10-14 08:18:54,629 DEBUG -> Not backing up - '/usr/share/ipa/html/krb.con' doesn't exist 2011-10-14 08:18:54,629 DEBUG Backing up system configuration file '/usr/share/ipa/html/krbrealm.con' 2011-10-14 08:18:54,629 DEBUG -> Not backing up - '/usr/share/ipa/html/krbrealm.con' doesn't exist 2011-10-14 08:18:55,152 DEBUG args=kdb5_ldap_util -D uid=kdc,cn=sysaccounts,cn=etc,dc=testrelm create -s -r TESTRELM -subtrees dc=testrelm -sscope sub 2011-10-14 08:18:55,152 DEBUG stdout=Password for "uid=kdc,cn=sysaccounts,cn=etc,dc=testrelm": Initializing database for realm 'TESTRELM' You will be prompted for the database Master Password. It is important that you NOT FORGET this password. Enter KDC database master key: Re-enter KDC database master key to verify: 2011-10-14 08:18:55,152 DEBUG stderr= 2011-10-14 08:18:55,162 DEBUG args=klist -V 2011-10-14 08:18:55,162 DEBUG stdout=Kerberos 5 version 1.9 2011-10-14 08:18:55,162 DEBUG stderr= 2011-10-14 08:18:55,163 DEBUG Backing up system configuration file '/etc/sysconfig/krb5kdc' 2011-10-14 08:18:55,163 DEBUG Saving Index File to '/var/lib/ipa/sysrestore/sysrestore.index' 2011-10-14 08:18:55,171 DEBUG 'NoneType' object has no attribute 'find' File "/usr/sbin/ipa-server-install", line 1151, in <module> sys.exit(main()) File "/usr/sbin/ipa-server-install", line 1036, in main subject_base=options.subject) File "/usr/lib/python2.6/site-packages/ipaserver/install/krbinstance.py", line 180, in create_instance self.start_creation("Configuring Kerberos KDC", 30) File "/usr/lib/python2.6/site-packages/ipaserver/install/service.py", line 248, in start_creation method() File "/usr/lib/python2.6/site-packages/ipaserver/install/krbinstance.py", line 371, in __create_instance appendvars=appendvars) File "/usr/lib/python2.6/site-packages/ipapython/ipautil.py", line 1281, in backup_config_and_replace_variables old_values = config_replace_variables(filepath, replacevars, appendvars) File "/usr/lib/python2.6/site-packages/ipapython/ipautil.py", line 1238, in config_replace_variables if value.find(appendvars[option]) == -1: Version-Release number of selected component (if applicable): ipa-server-2.1.2-100.20111014T0057zgit16fc9f8.el6.x86_64 How reproducible: always Steps to Reproduce: 1. ipa-server-install --setup-dns --forwarder=10.14.63.12 --hostname=qe-blade-01.testrelm -r TESTRELM -n testrelm -p <xxx> -P <xxx> -a <xxx> -U Actual results: throws error: 'NoneType' object has no attribute 'find' Expected results: successful install Additional info:
attachment freeipa-rcrit-895-config.patch
master: f4ec8a2
ipa-2-1: c75b177
Another backtrace was discovered, a python 2.7 feature is being used.
File "/usr/lib/python2.6/site-packages/ipapython/ipautil.py", line 1247, in config_replace_variables newvars_view = new_vars.viewkeys() - old_values.viewkeys()
Patch submitted for review.
master: 447ce62
ipa-2-1: cc0e30a
Metadata Update from @rcritten: - Issue assigned to abbra - Issue set to the milestone: FreeIPA 2.1.3 (bug fixing)
Login to comment on this ticket.