https://bugzilla.redhat.com/show_bug.cgi?id=723624
Description of problem: Adding new host groups is causing internal error with latest ipa-server build. The hostgroup is added successfully though # ipa hostgroup-add --desc="hostgrp1" "hostgrp1" ipa: ERROR: an internal error has occurred [root@apollo tasks]# echo $? 1 [root@apollo tasks]# ipa hostgroup-find hostgrp1 ------------------- 1 hostgroup matched ------------------- Host-group: hostgrp1 Description: hostgrp1 ---------------------------- Number of entries returned 1 errors_log: [Wed Jul 20 13:45:38 2011] [error] ipa: ERROR: non-public: UnboundLocalError: local variable 'newentry' referenced before assignment [Wed Jul 20 13:45:38 2011] [error] Traceback (most recent call last): [Wed Jul 20 13:45:38 2011] [error] File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 220, in wsgi_execute [Wed Jul 20 13:45:38 2011] [error] result = self.Command[name](*args, **options) [Wed Jul 20 13:45:38 2011] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 425, in __call__ [Wed Jul 20 13:45:38 2011] [error] ret = self.run(*args, **options) [Wed Jul 20 13:45:38 2011] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 731, in run [Wed Jul 20 13:45:38 2011] [error] return self.execute(*args, **options) [Wed Jul 20 13:45:38 2011] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 726, in execute [Wed Jul 20 13:45:38 2011] [error] dn = callback(ldap, dn, entry_attrs, *keys, **options) [Wed Jul 20 13:45:38 2011] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/hostgroup.py", line 104, in post_callback [Wed Jul 20 13:45:38 2011] [error] entry_from_entry(entry_attrs, newentry) [Wed Jul 20 13:45:38 2011] [error] UnboundLocalError: local variable 'newentry' referenced before assignment
master: 7ce57e3
Metadata Update from @mkosek: - Issue assigned to rcritten - Issue set to the milestone: FreeIPA 2.1 - 2011/07
Login to comment on this ticket.