Project

General

Profile

Actions

Bug #22139

open

Running deleted campaign don't get their directive cleaned-up

Added by François ARMAND 2 months ago. Updated 3 days ago.

Status:
Pending release
Priority:
N/A
Category:
Web - Campaigns
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Regression:
No

Description

If a campaign is deleted when it was running (and so, the directive/rule were created), then the configuration elements are not cleaned up.

Then, if you try to create a new campaign with the same name, you get an infinite log that kill the server/fill the disks:

[2022-11-25 16:10:08+0000] ERROR campaign - Inconsistency: Cannot set directive with name '  #1' : this name is already in use.

(yes, name was empty, because I didn't noticed I forgot to put one both time)

Workaround: delete the new campaign, then create one with a different name.

Solution: directive/rule of a running event must be deleted if the campaign is deleted (and a generation triggered).
Bonus: make name mandatory for campaign.

Actions #1

Updated by Vincent MEMBRÉ about 1 month ago

  • Target version changed from 7.2.3 to 7.2.4
Actions #2

Updated by Vincent MEMBRÉ 18 days ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #3

Updated by Vincent MEMBRÉ 18 days 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/4627
Actions #4

Updated by Vincent MEMBRÉ 3 days ago

  • Target version changed from 7.2.4 to 7.2.5
Actions #5

Updated by Vincent MEMBRÉ 3 days ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Vincent MEMBRÉ 3 days ago

  • Target version changed from 7.2.5 to 7.2.4
Actions

Also available in: Atom PDF