Project

General

Profile

Actions

Bug #10666

closed

Creating a directive in audit mode generates an error

Added by Hamlyn Mootoo about 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Target version:
-
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

I created a simple package management directive to install the cups package. This was then set to audit mode. It generated the error that can be seen in the attached screenshot.
The directive does not generate an error and works well in Enforce mode. It also does not generate an error when not associated with a rule. the global policy mode is set to "enforce" and the override mode is set to "yes".

The details of the error are as follows:
------------------------------------------------------------------------------------------------------------------------------
Policy update process was stopped due to an error:

⇨ Policy update error for process '128' at 2017-04-27 17:12:57
⇨ Cannot write configuration node
⇨ Error when trying to generate the list of directive to apply to node '3936573c-46cb-4367-bbf0-3f07998c4c72' : Error with Technique Package management and [Rule ID // Directives ID: Policy Mode] [32377fd7-02fd-43d0-aab7-28460a91347b // 7f88793c-87a5-42f2-be7e-bbe2ea482fda: inherited]; [32377fd7-02fd-43d0-aab7-28460a91347b // a3e2266d-436f-42c8-b5c7-39ebad7f9d6d: inherited]; [9e73c2f6-d62a-469c-a01f-746546334fe2 // 10fc1af6-b8b1-468c-8106-d77757f594d1: audit] : Inconsistant policy mode: both audit and enforce applied ; Error when trying to generate the list of directive to apply to node '4bb5b5cc-ac3a-41ef-b646-5ebc19248a92' : Error with Technique Package management and [Rule ID // Directives ID: Policy Mode] [32377fd7-02fd-43d0-aab7-28460a91347b // 7f88793c-87a5-42f2-be7e-bbe2ea482fda: inherited]; [32377fd7-02fd-43d0-aab7-28460a91347b // a3e2266d-436f-42c8-b5c7-39ebad7f9d6d: inherited]; [9e73c2f6-d62a-469c-a01f-746546334fe2 // 10fc1af6-b8b1-468c-8106-d77757f594d1: audit] : Inconsistant policy mode: both audit and enforce applied ; Error when trying to generate the list of directive to apply to node 'e4ab7f99-5683-4a6e-95b7-c9654caa7b69' : Error with Technique Package management and [Rule ID // Directives ID: Policy Mode] [32377fd7-02fd-43d0-aab7-28460a91347b // 7f88793c-87a5-42f2-be7e-bbe2ea482fda: inherited]; [32377fd7-02fd-43d0-aab7-28460a91347b // a3e2266d-436f-42c8-b5c7-39ebad7f9d6d: inherited]; [9e73c2f6-d62a-469c-a01f-746546334fe2 // 10fc1af6-b8b1-468c-8106-d77757f594d1: audit] : Inconsistant policy mode: both audit and enforce applied ; Error when trying to generate the list of directive to apply to node '5d881c66-59dd-4a91-bcf4-55c3d8372de3' : Error with Technique Package management and [Rule ID // Directives ID: Policy Mode] [32377fd7-02fd-43d0-aab7-28460a91347b // 7f88793c-87a5-42f2-be7e-bbe2ea482fda: inherited]; [32377fd7-02fd-43d0-aab7-28460a91347b // a3e2266d-436f-42c8-b5c7-39ebad7f9d6d: inherited]; [9e73c2f6-d62a-469c-a01f-746546334fe2 // 10fc1af6-b8b1-468c-8106-d77757f594d1: audit] : Inconsistant policy mode: both audit and enforce applied


Files

audit_cups_directive.JPG (143 KB) audit_cups_directive.JPG Hamlyn Mootoo, 2017-04-27 23:04

Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #10580: Cannot mix audit/enforce mode on directives based on the same techniqueRejectedActions
Actions

Also available in: Atom PDF