Bug 28194 - nfsmounts-Policy-Skript funktioniert in 3.1 nicht mehr
nfsmounts-Policy-Skript funktioniert in 3.1 nicht mehr
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Felix Botner
Stefan Gohmann
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-13 12:57 CEST by Moritz Muehlenhoff
Modified: 2012-12-12 21:09 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Muehlenhoff univentionstaff 2012-08-13 12:57:29 CEST
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'}
Comment 1 Felix Botner univentionstaff 2012-10-04 14:23:28 CEST
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.
Comment 2 Stefan Gohmann univentionstaff 2012-10-16 16:02:12 CEST
Changelog: OK

Fehler konnte ich auch keine mehr feststellen.
Comment 3 Stefan Gohmann univentionstaff 2012-12-12 21:09:01 CET
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".