Bug #10666
closedCreating a directive in audit mode generates an error
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