Project

General

Profile

Bug #14464

If a relay is deleted (via node->delete), its system rule remains

Added by François ARMAND 11 months ago. Updated about 2 months ago.

Status:
Released
Priority:
N/A
Category:
Server components
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Very Small
Priority:
89
Tags:

Description

A relay was deleted, and the " distributePolicy" directive was still applied to it, most likely because the rule for the relay was not correctly deleted.

Workaround: delete these element by hand with the following LDAP command (assuming the deleted relay had ID b30e567b-b166-4888-9ba0-e41aa87c6a7c):

ldapmodify -xc -H ldap://localhost:389 -D "cn=manager, cn=rudder-configuration" -w "secret" << EOF
dn: nodeGroupId=hasPolicyServer-b30e567b-b166-4888-9ba0-e41aa87c6a7c,groupCategoryId=SystemGroups,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration
changetype: delete

dn: ruleTarget=policyServer:b30e567b-b166-4888-9ba0-e41aa87c6a7c,groupCategoryId=SystemGroups,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration
changetype: delete

dn: directiveId=b30e567b-b166-4888-9ba0-e41aa87c6a7c-distributePolicy,activeTechniqueId=distributePolicy,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration
changetype: delete

dn: directiveId=common-b30e567b-b166-4888-9ba0-e41aa87c6a7c,activeTechniqueId=common,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuratio
changetype: delete

dn: ruleId=b30e567b-b166-4888-9ba0-e41aa87c6a7c-DP,ou=Rules,ou=Rudder,cn=rudder-configuration
changetype: delete

dn: ruleId=hasPolicyServer-b30e567b-b166-4888-9ba0-e41aa87c6a7c,ou=Rules,ou=Rudder,cn=rudder-configuration
changetype: delete
EOF

Associated revisions

Revision 19181bbd (diff)
Added by François ARMAND 2 months ago

Fixes #14464: If a relay is deleted (node->delete) a system rule for it remains

History

#1

Updated by François ARMAND 11 months ago

  • Tags set to Sponsored
#2

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 4.1.21 to 4.1.22
#3

Updated by Benoît PECCATTE 10 months ago

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Infrequent - complex configurations | third party integrations
  • Priority changed from 0 to 73
#4

Updated by François ARMAND 10 months ago

  • Target version changed from 4.1.22 to 5.0.10
#5

Updated by François ARMAND 10 months ago

  • Assignee set to François ARMAND
#6

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 5.0.10 to 5.0.11
  • Priority changed from 73 to 72
#7

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 5.0.11 to 5.0.12
#8

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 5.0.12 to 5.0.13
  • Priority changed from 72 to 70
#9

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 5.0.13 to 5.0.14
  • Priority changed from 70 to 68
#10

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 5.0.14 to 5.0.15
  • Priority changed from 68 to 67
#11

Updated by François ARMAND 3 months ago

  • Effort required set to Very Small
  • Priority changed from 67 to 91

It may need to be done in Rudder even if the relay-plugin is not installed because we want to be in a clean state even if the plugin isn't here anymore.

#12

Updated by François ARMAND 3 months ago

  • Status changed from New to In progress
#13

Updated by François ARMAND 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/2605
#14

Updated by François ARMAND 2 months ago

  • Status changed from Pending technical review to Pending release
#17

Updated by Alexis MOUSSET 2 months ago

  • Subject changed from If a relay is deleted (node->delete) a system rule for it remains to If a relay is deleted (via node->delete), its system rule remains
#18

Updated by François ARMAND 2 months ago

  • Priority changed from 91 to 90
#19

Updated by Vincent MEMBRÉ about 2 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.15 which was released today.

#20

Updated by François ARMAND about 2 months ago

  • Description updated (diff)
  • Priority changed from 90 to 89

Also available in: Atom PDF