V2.0.0p8 - upgrade failed for WATO rulesets with new WATO API

Hi folks,

I just have upgraded my site from 2.0.0p3 to 2.0.0p8, but the upgrade failed with an exception:

2021-08-04 09:58:12 - Updating site 'test_site' from version 2.0.0p3.cee to 2.0.0p8.cee...

 * Updated        etc/init.d/cmc
Creating temporary filesystem /omd/sites/test_site/tmp...OK
Executing update-pre-hooks script "01_mkp-disable-outdated"...OK
Executing update-pre-hooks script "02_cmk-update-config"...
-| Initializing application...
-| Loading GUI plugins...
-| Updating Checkmk configuration...
-| ATTENTION: Some steps may take a long time depending on your installation, e.g. during major upgrades.
-|  1/15 Migrate deprecated network topology dashlet...
-|  2/15 Update global settings...
-|  3/15 Rewriting WATO tags...
-|  4/15 Rewriting WATO hosts and folders...
-|  5/15 Rewriting WATO rulesets...
-| Replacing ruleset non_inline_snmp_hosts with snmp_backend_hosts
-|  + "Rewriting WATO rulesets" failed
-| Traceback (most recent call last):
-|   File "/omd/sites/test_site/lib/python3/cmk/update_config.py", line 148, in run
-|     step_func()
-|   File "/omd/sites/test_site/lib/python3/cmk/update_config.py", line 372, in _rewrite_wato_rulesets
-|     self._transform_wato_rulesets_params(all_rulesets)
-|   File "/omd/sites/test_site/lib/python3/cmk/update_config.py", line 457, in _transform_wato_rulesets_params
-|     valuespec = ruleset.valuespec()
-|   File "/omd/sites/test_site/lib/python3/cmk/gui/watolib/rulesets.py", line 693, in valuespec
-|     return self.rulespec.valuespec
-|   File "/omd/sites/test_site/lib/python3/cmk/gui/watolib/rulespecs.py", line 429, in valuespec
-|     return self._valuespec()
-|   File "/omd/sites/test_site/lib/python3/cmk/gui/watolib/rulespecs.py", line 931, in _rulespec_valuespec
-|     parameter_vs = _wrap_valuespec_in_timeperiod_valuespec(self._parameter_valuespec())
-|   File "/omd/sites/test_site/lib/python3/cmk/gui/watolib/rulespecs.py", line 867, in _wrap_valuespec_in_timeperiod_valuespec
-|     return TimeperiodValuespec(valuespec)
-|   File "/omd/sites/test_site/lib/python3/cmk/gui/watolib/rulespecs.py", line 1116, in __init__
-|     title=valuespec.title(),
-| AttributeError: 'tuple' object has no attribute 'title'
-|  6/15 Rewriting autochecks...
-| Transform failed: host='host1', plugin='certificates', ruleset='certificates', params={'intial_modulus_sha1': 'd39142747944a0d20c7696dc1dabaa5da953390f'}, error=AssertionError('non-empty params vanished')
-| Transform failed: host='host2', plugin='certificates', ruleset='certificates', params={'intial_modulus_sha1': '137d9b8c8605923006f760924be1245680085178'}, error=AssertionError('non-empty params vanished')
-| Transform failed: host='host2', plugin='sadmin_versions', ruleset='sadmin_versions', params={'original_name': 'SITE Version'}, error=AttributeError("'tuple' object has no attribute 'title'")
-| Transform failed: host='host2', plugin='sadmin_versions', ruleset='sadmin_versions', params={'original_name': 'SITE customer add-on'}, error=AttributeError("'tuple' object has no attribute 'title'")
-| Transform failed: host='host3', plugin='certificates', ruleset='certificates', params={'intial_modulus_sha1': 'b00cc8118316735de9604fa3efb7816069995e0c'}, error=AssertionError('non-empty params vanished')
-| Transform failed: host='host3', plugin='sadmin_versions', ruleset='sadmin_versions', params={'original_name': 'SITE Version'}, error=AttributeError("'tuple' object has no attribute 'title'")
-| Transform failed: host='host3', plugin='sadmin_versions', ruleset='sadmin_versions', params={'original_name': 'SITE customer add-on'}, error=AttributeError("'tuple' object has no attribute 'title'")
-| Transform failed: host='host4', plugin='sadmin_versions', ruleset='sadmin_versions', params={'original_name': 'SITE Version'}, error=AttributeError("'tuple' object has no attribute 'title'")
-| Transform failed: host='host5', plugin='sadmin_versions', ruleset='sadmin_versions', params={'original_name': 'SITE Version'}, error=AttributeError("'tuple' object has no attribute 'title'")
-| Transform failed: host='host5', plugin='sadmin_versions', ruleset='sadmin_versions', params={'original_name': 'SITE customer add-on'}, error=AttributeError("'tuple' object has no attribute 'title'")
-|  7/15 Cleanup version specific caches...
-|  8/15 Migrating fs_used name...
-|  9/15 Migrate pagetype topics...
-|  10/15 Migrate LDAP connections...
-|  11/15 Rewrite BI Configuration...
-| Skipping conversion of bi.mk (already done)
-|  12/15 Set version specific user attributes...
-|  13/15 Rewriting inventory data...
-| Skipping py2 inventory data update (already done)
-|  14/15 Migrate audit log...
-| No audit log present. Skipping.
-|  15/15 Rename discovered host label files...
-| Done
ERROR (exit code: 1)
Updating core configuration...
Generating configuration for core (type cmc)...Creating helper config...OK
OK
Finished update.

OMD[test_site]:~$

Only my checks, which I have already migrated to new WATO API style failed during the upgrade process.

Unfortunatly, I do not have any clue what the error could be. In my WATO plugins, all Tuple() class definitions have an appropriate title set. Attached you find the mentioned WATO plugins.
certificates.py (17.3 KB)
sadmin.py (4.9 KB)

Do you have any idea what could be the issue here?

Thank you

Best Regards
Markus

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.