We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Checkmk 1.6 has arrived! Learn more about it here!

Werk #7769: Fix broken computation of host contact groups in some cases

ComponentCore & Setup
TitleFix broken computation of host contact groups in some cases
Date2019-06-07 14:56:56
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0b2,1.7.0i1
LevelProminent Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

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 cmk -U to update the core configuration:

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'