[checkmk-commits] [tribe29/checkmk] 73ee15: 7769 FIX Fix broken computation of host contact gr...

Lars noreply at github.com
Wed Jun 26 21:10:35 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/tribe29/checkmk
  Commit: 73ee157f5681892408e478c48e7309aa70f96fba
      https://github.com/tribe29/checkmk/commit/73ee157f5681892408e478c48e7309aa70f96fba
  Author: Lars Michelsen <lm at tribe29.com>
  Date:   2019-06-26 (Wed, 26 Jun 2019)

  Changed paths:
    A .werks/7769
    M cmk/gui/watolib/hosts_and_folders.py
    M cmk_base/config.py
    M tests/unit/cmk_base/test_config.py

  Log Message:
  -----------
  7769 FIX Fix broken computation of host contact groups in some cases

The core config creation was broken in 1.6.0b1 when using the WATO
folder hierarchy for assigning contact groups to hosts.

An exception like this was displayed after the update or later, e.g.
when executing <tt>cmk -U</tt> to update the core configuration:

C+:
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 457, in cmc_all_hosts
cmc_hosts = CMCHosts(config_cache.all_active_hosts(), CMCHostConfig)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 501, in __init__
self._compute(hostnames, host_class)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 513, in _compute
host_config = host_class(hostname)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 962, in __init__
super(CMCHostConfig, self).__init__(hostname)
File "/omd/sites/produktiv/lib/python/cmk_base/cee/core_cmc.py", line 753, in __init__
self._host_contact_groups = self._host_config.contactgroups
File "/omd/sites/produktiv/lib/python/cmk_base/config.py", line 2471,
in contactgroups
return list(set(cgrs))
TypeError: unhashable type: 'list'
C-:

Change-Id: Ib4f0839745f6d01cfd9dd11a847589ce26e444e9


  Commit: 712401e832594cdfb052726d294aae7cd067cab5
      https://github.com/tribe29/checkmk/commit/712401e832594cdfb052726d294aae7cd067cab5
  Author: Lars Michelsen <lm at tribe29.com>
  Date:   2019-06-26 (Wed, 26 Jun 2019)

  Changed paths:
    M cmk/gui/watolib/hosts_and_folders.py

  Log Message:
  -----------
  Create rules in hosts.mk in new rule format

Change-Id: I88b750de86678029c52dc39e5e9a6abc746be119


  Commit: 1aec2cbc9272a5cda51101605afc764b8de1e7ec
      https://github.com/tribe29/checkmk/commit/1aec2cbc9272a5cda51101605afc764b8de1e7ec
  Author: Lars Michelsen <lm at tribe29.com>
  Date:   2019-06-26 (Wed, 26 Jun 2019)

  Changed paths:
    A .werks/7898
    M cmk/gui/watolib/hosts_and_folders.py

  Log Message:
  -----------
  7898 FIX Fix possible syntax error when configuring service contact groups (1.6.0b2 regression)

A "syntax error" exception could occur when configuring service contact groups
using the folder hierarchy of WATO

Change-Id: I964f5cbdc61382ebffdeff5626cfcb6567de9d58


Compare: https://github.com/tribe29/checkmk/compare/fe1736799f57...1aec2cbc9272


More information about the checkmk-commits mailing list