Change request on special:all_nodes_without_role lead to error
Since we change the target rule name
special:all_exceptPolicyServers (introduced by https://github.com/Normation/rudder/pull/4065)
When we access the change-request page, it generates an error in webapp logs
com.normation.rudder.domain.policies.RuleTarget - Error when trying to read the following serialized Rule target as a composite target: 'special:all_nodes_without_role'. Reported parsing error cause was: unknown token s Near: sp
It seems that Eventlogs are also impacted by this change, since the contains
Updated by François ARMAND 3 months ago
Since we don't have an understanding of the size of event log or existing change request with the old format, we will take an iterative migration solution:
- for event logs, just be able to read them: the one with the old format will tend to not be accessed after time (and if we still need, just log).
- for change request, read both new and old format, write only new.
It may have as a consequence that we need to keep forever that format, but eventlogs are not meant to be rewritten (perhaps a "cold storage" solution for them would be more appropriate, and migration would be done off line on the cold storage only)
Updated by Anonymous 3 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder:rudder|584f8457ebaf7f18c756899c45470d58218cf901.