Bug 34037 - Traceback when trying to remove all nagios parents
Traceback when trying to remove all nagios parents
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Nagios
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-2-errata
Assigned To: Lukas Walter
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-03 10:46 CET by Dirk Wiesenthal
Modified: 2014-08-07 17:48 CEST (History)
4 users (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): Error handling
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2014-02-03 10:46:39 CET
Reported by traceback feedback:

 Traceback:
  File "/usr/lib/pymodules/python2.6/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.6/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py", line
373, in _thread
    module.modify( properties )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line
155, in wrapper_func
    ret = func( *args, **kwargs )
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py", line
410, in modify
    obj.modify()
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 345, in
modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 799, in
_modify
    ml=self._ldap_modlist()
  File
"/usr/lib/pymodules/python2.6/univention/admin/handlers/computers/domaincontroller_master.py",
line 603, in _ldap_modlist
    self.nagios_ldap_modlist(ml)
  File "/usr/lib/pymodules/python2.6/univention/admin/nagios.py", line 248, in
nagios_ldap_modlist
    self.nagiosSaveParentHostList(ml)
  File "/usr/lib/pymodules/python2.6/univention/admin/nagios.py", line 203, in
nagiosSaveParentHostList
    for parentdn in self.info['nagiosParents']:

KeyError: 'nagiosParents'


Remark:
Tried to remove Nagios parent
Comment 1 Florian Best univentionstaff 2014-03-04 14:58:23 CET
Reported again at #2014022021009028 with remark:
Standardmäßig ist kein übergeordneter Rechner im Nagios aktiv.
Wurde ein Rechner hinzugefügt, lässt sich dieser nicht mehr löschen.
Comment 2 Lukas Walter univentionstaff 2014-06-11 14:10:20 CEST
Fixed in svn50987 along with Bug #33120

YAML:
=====
product: ucs
release: "3.2"
scope: ucs_3.2-0-errata3.2-2
src: univention-directory-manager-modules
fix: 9.0.76-2.1198.201406111347
version: [2]
desc: |
 This update fixes an issue which caused a traceback if one
 removed all Nagios services or superior hosts from computer
 objects.
bug: [33120, 34037]
Comment 3 Florian Best univentionstaff 2014-06-12 11:58:07 CEST
OK: removal of all nagios parents works
OK: YAML (adapted)
Comment 4 Stefan Gohmann univentionstaff 2014-07-28 06:11:46 CEST
Reported again: Ticket #2014072221000283 3.2-2 errata152
Comment 5 Janek Walkenhorst univentionstaff 2014-08-07 17:48:22 CEST
http://errata.univention.de/ucs/3.2/170.html