Univention Bugzilla – Bug 28194
nfsmounts-Policy-Skript funktioniert in 3.1 nicht mehr
Last modified: 2012-12-12 21:09:01 CET
Auf einem aktuellen 3.1 erhalte ich auf Master und Backup einen Traceback bei Aufruf des Policy-Skripts /usr/lib/univention-directory-policy/nfsmounts: root@xen:~# /usr/lib/univention-directory-policy/nfsmounts Traceback (most recent call last): File "/usr/lib/univention-directory-policy/nfsmounts", line 235, in <module> main() File "/usr/lib/univention-directory-policy/nfsmounts", line 170, in main result = lo.lo.search_s(dn, ldap.SCOPE_SUBTREE, 'objectclass=*', attrlist=['univentionShareHost', 'univentionSharePath']) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 502, in search_s return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 496, in search_ext_s return self.result(msgid,all=1,timeout=timeout)[1] File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 422, in result res_type,res_data,res_msgid = self.result2(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 426, in result2 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 432, in result3 ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call result = func(*args,**kwargs) ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}
Ich kann das nicht reproduzieren. Bei einem Rechner ohne NFS Freigaben und einem mit NFS Freigaben läuft /usr/lib/univention-directory-policy/nfsmounts ohne Fehler durch. Ich habe jetzt lediglich ein try/except try: result = lo.lo.search_s(... except ldap.NO_SUCH_OBJECT: continue um die LDAP Suche eingebaut.
Changelog: OK Fehler konnte ich auch keine mehr feststellen.
UCS 3.1-0 has been released: http://forum.univention.de/viewtopic.php?f=54&t=2125 If this error occurs again, please use "Clone This Bug".