Bug 46930

Summary: 2nd interface without IP leads to Traceback with Nagios
Product: UCS Reporter: Philipp Hahn <hahn>
Component: Monitoring (Prometheus or Nagios)Assignee: UCS maintainers <ucs-maintainers>
Status: NEW --- QA Contact: UCS maintainers <ucs-maintainers>
Severity: normal    
Priority: P5 CC: best
Version: UCS 5.0   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
See Also: http://forge.univention.org/bugzilla/show_bug.cgi?id=41052
What kind of report is it?: Bug Report What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 2: Will only affect a few installed domains How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.011 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:

Description Philipp Hahn univentionstaff 2018-05-03 10:27:16 CEST
VM with two interfcaces, only 1st was configured to get an IP.

setup.log:
=== 30_net/10interfaces (2018-05-03 10:19:01) ===
...
INFO:uss.network.plug:Calling LdapSelf.post() at 40...
...
WARNING:uss.network.phase.LdapSelf:Failed LDAP: 
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/netconf/modules/LdapSelf.py", line 37, in post
    self._update(computer)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/setup/netconf/modules/LdapSelf.py", line 91, in _update
    computer.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 526, in modify
    dn = self._modify(modify_childs, ignore_license=ignore_license, response=response)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1068, in _modify
    ml = self._ldap_modlist()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/domaincontroller_master.py", line 567, in _ldap_modlist
    self.nagios_ldap_modlist(ml)
  File "/usr/lib/pymodules/python2.7/univention/admin/nagios.py", line 200, in nagios_ldap_modlist
    raise univention.admin.uexceptions.nagiosARecordRequired
nagiosARecordRequired
INFO:uss.network.plug:Calling RestartKerberos.post() at 28...