Project

General

Profile

Actions

Bug #14464

closed

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

Added by François ARMAND about 2 years ago. Updated over 1 year 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
Actions #1

Updated by François ARMAND about 2 years ago

  • Tags set to Sponsored
Actions #2

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 4.1.21 to 4.1.22
Actions #3

Updated by Benoît PECCATTE about 2 years 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
Actions #4

Updated by François ARMAND about 2 years ago

  • Target version changed from 4.1.22 to 5.0.10
Actions #5

Updated by François ARMAND about 2 years ago

  • Assignee set to François ARMAND
Actions #6

Updated by Vincent MEMBRÉ about 2 years ago

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

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 5.0.11 to 5.0.12
Actions #8

Updated by Vincent MEMBRÉ almost 2 years ago

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

Updated by Vincent MEMBRÉ over 1 year ago

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

Updated by Vincent MEMBRÉ over 1 year ago

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

Updated by François ARMAND over 1 year 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.

Actions #12

Updated by François ARMAND over 1 year ago

  • Status changed from New to In progress
Actions #13

Updated by François ARMAND over 1 year 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
Actions #14

Updated by François ARMAND over 1 year ago

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

Updated by Alexis MOUSSET over 1 year 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
Actions #18

Updated by François ARMAND over 1 year ago

  • Priority changed from 91 to 90
Actions #19

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released

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

Actions #20

Updated by François ARMAND over 1 year ago

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

Also available in: Atom PDF