Project

General

Profile

Actions

Bug #23073

closed

If a change is made while a policy generation is running, it does not always trigger a new policy generation when needed

Added by Félix DALLIDET almost 1 year ago. Updated almost 1 year 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:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

It seems like if a policy generation is already running, when saving an element which will modify the current conf state will not automatically trigger a new policy generation after the one already running.

It can be observed in the event logs page where saving a rule impacting nodes, while a policy generation is running does not create a new event of policy generation trigger.
Also, in debug mode, the generation process does receive a notification of a need of a new generation as demonstrated by the line:

[2023-07-17 15:59:04+0200] DEBUG policy.generation.manager - Automatic policy generation request: queued - one policy generation already running

But unfortunately, after the one started before the edition, the queue does not continue and is stopped (the queued generations never happened).

To reproduce:
  1. On a 7.3.4+ webapp version with one node, named agent1
  2. Create a directive
  3. Prepare a new rule, which will be applied to "All managed nodes", and containing the newly created directive, but do not save it yet!
  4. trigger a generation
  5. quickly save the prepared directive

See how the policies for the agent1 are not changed, except in the rule webpage.
This may be very upsetting for users with very long generation time.


Files

eventLogs.png (91.8 KB) eventLogs.png Félix DALLIDET, 2023-07-17 16:11

Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #23074: Generation not queued when one already startedReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF