Bug 25679 - UMC Nagios: Traceback beim Entfernen eines assignedHosts am Nagios Service
Summary: UMC Nagios: Traceback beim Entfernen eines assignedHosts am Nagios Service
Status: RESOLVED WORKSFORME
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - Nagios
Version: UCS 3.0
Hardware: Other Linux
: P3 minor
Target Milestone: ---
Assignee: Lukas Walter
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 14:59 CET by Felix Botner
Modified: 2012-02-16 15:06 CET (History)
2 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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-01-03 14:59:25 CET
Wenn ich über UMC am Service UNIVENTION_NTP einen Rechner lösche und speichere, gibt es folgenden Traceback (über CLI funktioniert es):

File '/usr/lib/pymodules/python2.6/notifier/threads.py', line 81, 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 305, in _thread
module.modify( properties )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 130, in wrapper_func
ret = func( *args, **kwargs )
File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 372, in modify
obj.modify()
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py', line 344, in modify
return self._modify(modify_childs,ignore_license=ignore_license)
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py', line 743, in _modify
ml=self._ldap_modlist()
File '/usr/lib/pymodules/python2.6/univention/admin/handlers/nagios/service.py', line 380, in _ldap_modlist
for hostdn in self.info['assignedHosts']:

KeyError: 'assignedHosts'
Comment 1 Lukas Walter univentionstaff 2012-02-16 15:06:33 CET
Das Problem (Zugriff auf key in einem dict, der zuvor vom frontend entfernt wurde) ist im SVN bereits behoben durch die Verwendung von

=================================================
for hostdn in self.info.get('assignedHosts', []):
=================================================

anstelle von

=================================================
for hostdn in self.info['assignedHosts']:
=================================================


Dieser Bug ist daher obsolet.