Bug #9455
closedUser story #1808: Add an Audit mode to Rudder: only check properties, no modification on nodes
Changed compliance mode to allow overridable mode, but promises where not regenerated, and reporting was invalid
Description
I set directive based on MOTD to be in "Audit" mode, then I allowed the mode to be overridable.
Rules reported that it was in mixed mode, but running the agent showed that the Directive was in enforce mode
Promise where not regenerated - clicking on "Update" regenerated the policy with proper mode, and correct behaviour was enforced
The most confusing part was that the "Rules" page reported a mixed mode while it was false (policies distributed where pure enforce)
Updated by Benoît PECCATTE about 8 years ago
- Subject changed from Changed compliance mode to allow overridable mode, but prmose where not regenerated, and reporting was invalid to Changed compliance mode to allow overridable mode, but promises where not regenerated, and reporting was invalid
Updated by François ARMAND about 8 years ago
I believe that the problem is that in the Rules (and node details) screen, we are using the current configuration (as in "live"), not the one of the last generation (which can be older, like it is in that use case).
I was thinking that the correct solution was to use information from the expected node configuration (ie data actually used in the node), but in fact, it would be extremelly confusing for an user, for example when he just changed a config and the displaying is still on the old one.
So perhaps the least surprising solution is to trigger a regeneration. We didn't do that because we wanted to let the user decide WHEN actually changing the config, in particular when going from audit to enforce. But it is confusing, and more so when everywhere in Rudder we trigger regeneration for everything.
So we should just trigger the regeneration.
Updated by Vincent MEMBRÉ about 8 years ago
- Status changed from New to In progress
- Assignee changed from François ARMAND to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ about 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/1310
Updated by Vincent MEMBRÉ about 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder|12e2d9c1144a01c6b92811a3cf4b7a121f57a761.
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 318 to 4.0.0~rc2
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 4.0.0~rc2 to 4.0.0~rc1
Updated by Alexis Mousset about 8 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.0.0 which was released the 10th November 2016.