Dear folks,
I am currently preparing the upgrade our landscape from 1.5.0p25 to 1.6.0p27 and encounter a problem on the automatically configuration update process related to the change of tag groups. We are running on CEE and SLES 12SP3 as operating system.
In preparation I changed all used legacy hosttags from the tag group agent to the new ones and deleted the old legacy tags from the tag group, cleaned all rules and hosts accordingly:
From my understanding, deleting the custom tag group agent should bring up the built-in tag group agent and all hosts should be added as before with the custom tag group.
This is not the case, after confirming the dialog on deleting the custom tag group all host are changed back to default value Contact either Check_MK Agent or use datasource program. This affects als hosts which are formerly set to no-agent. It’s not suitable to change back around 3500 hosts manually to there original value.
Hosts before deletion:
Hots after deletion:
(no-agent missing, cmk-agent added)
Beside the described issue we encounter also another problem on the update process which is suspicious similar to the other problem. The omd update <site>
command ends in a stack trace:
Updating Checkmk configuration...
+ Rewriting WATO tags...
+ Rewriting WATO hosts and folders...
ERROR: Please repair this and run "cmk-update-config -v" BEFORE starting the site again.
Traceback (most recent call last):
File "/omd/sites/hr_rz/lib/python/cmk/update_config.py", line 185, in main
UpdateConfig(logger, arguments).run()
File "/omd/sites/hr_rz/lib/python/cmk/update_config.py", line 90, in run
step_func()
File "/omd/sites/hr_rz/lib/python/cmk/update_config.py", line 112, in _rewrite_wato_host_and_folder_config
root_folder.rewrite_hosts_files()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 1732, in rewrite_hosts_files
subfolder.rewrite_hosts_files()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 1732, in rewrite_hosts_files
subfolder.rewrite_hosts_files()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 1732, in rewrite_hosts_files
subfolder.rewrite_hosts_files()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 1730, in rewrite_hosts_files
self._rewrite_hosts_file()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 1758, in _rewrite_hosts_file
self.save_hosts()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 677, in save_hosts
self._save_hosts_file()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 717, in _save_hosts_file
tag_groups = host.tag_groups()
File "/omd/sites/hr_rz/lib/python/cmk/gui/watolib/hosts_and_folders.py", line 2087, in tag_groups
and tag_groups["agent"] == "no-agent" \
KeyError: 'agent'
Aborted.
This hangs until i abort the process manually via ^C
. As far as i know the old tag group should also work with 1.6.0 and should cleared before upgrading to versions above 1.6.0.
Does anybody has a clue what’s going wrong or any advice how to fix it?
I already thought about just deleting the tag group from hosttags.mk
but haven’t validated it yet.