Project

General

Profile

Bug #11231

Impossible to delete a node when policy server has been deleted

Added by Alexis MOUSSET 3 months ago. Updated 3 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:
0

Description


Could not remove Node 'd77e2198-4c12-4e2a-9b6d-bc7f288a4e2e' from Rudder

There was an error while deleting Node <- The policy server 'f3267c51-58fd-42fb-ad6b-c0be1dab70fa' for node agent2.rudder.local ('d77e2198-4c12-4e2a-9b6d-bc7f288a4e2e') was not found in Rudder

Associated revisions

Revision f0c2dfef
Added by François ARMAND 3 months ago

Fixes #11231: Impossible to delete a node when policy server has been deleted

History

#1 Updated by François ARMAND 3 months ago

So, the problem is that we need the node's policy server to calculate the node promise path, which is given as parameter to hook.
What would be the correct behavior in that case ? Empty values for the paths ?

In all case, we must allow the node to be deleted even in that case, else the policy regeneration will fail (node without a policy server => generation error).

#2 Updated by François ARMAND 3 months ago

  • Target version changed from 4.2.0~rc1 to 3.1.22

#3 Updated by François ARMAND 3 months ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND

#4 Updated by François ARMAND 3 months ago

  • Target version changed from 3.1.22 to 4.1.6

In fact, it's ok in 3.1

#5 Updated by François ARMAND 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/1719

#6 Updated by François ARMAND 3 months ago

  • Status changed from Pending technical review to Pending release

#7 Updated by Vincent MEMBRÉ 3 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.6 and 4.2.0~beta3 which were released today.

Also available in: Atom PDF