Project

General

Profile

Actions

Bug #14464

closed

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

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

Added by François ARMAND almost 7 years ago. Updated over 3 years ago.

Status:
Released
Priority:
N/A
Category:
Server components
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Very Small
Priority:
87
Name check:
Reviewed
Fix check:
Checked
Regression:

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

Updated by François ARMAND almost 7 years ago Actions #1

  • Translation missing: en.field_tag_list set to Sponsored

Updated by Vincent MEMBRÉ almost 7 years ago Actions #2

  • Target version changed from 4.1.21 to 4.1.22

Updated by Benoît PECCATTE almost 7 years ago Actions #3

  • 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

Updated by François ARMAND almost 7 years ago Actions #4

  • Target version changed from 4.1.22 to 5.0.10

Updated by François ARMAND almost 7 years ago Actions #5

  • Assignee set to François ARMAND

Updated by Vincent MEMBRÉ almost 7 years ago Actions #6

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

Updated by Vincent MEMBRÉ almost 7 years ago Actions #7

  • Target version changed from 5.0.11 to 5.0.12

Updated by Vincent MEMBRÉ over 6 years ago Actions #8

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

Updated by Vincent MEMBRÉ over 6 years ago Actions #9

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

Updated by Vincent MEMBRÉ over 6 years ago Actions #10

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

Updated by François ARMAND over 6 years ago Actions #11

  • 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.

Updated by François ARMAND over 6 years ago Actions #12

  • Status changed from New to In progress

Updated by François ARMAND over 6 years ago Actions #13

  • 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

Updated by François ARMAND over 6 years ago Actions #14

  • Status changed from Pending technical review to Pending release

Updated by Vincent MEMBRÉ over 6 years ago Actions #15

  • Fix check set to To do

Updated by Vincent MEMBRÉ over 6 years ago Actions #16

  • Name check set to To do

Updated by Alexis Mousset over 6 years ago Actions #17

  • 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
  • Name check changed from To do to Reviewed

Updated by François ARMAND about 6 years ago Actions #18

  • Priority changed from 91 to 90
  • Fix check changed from To do to Checked

Updated by Vincent MEMBRÉ about 6 years ago Actions #19

  • Status changed from Pending release to Released

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

Updated by François ARMAND about 6 years ago Actions #20

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

Updated by Alexis Mousset over 3 years ago Actions #21

  • Priority changed from 89 to 87
Actions

Also available in: PDF Atom