Project

General

Profile

Actions

Bug #14707

closed

Impossible to recreate a node deleted

Added by P C about 5 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
48
Name check:
Fix check:
Regression:

Description

If you delete a node :
server : Delete button on the Nodes manager view
client : apt-get purge --auto-remove rudder-agent & rm -fR .../rudder
and the recreate it : apt-get install rudder-agent
the 'new' node will never arrive in the view "Accept new nodes"

Explanation : the node is not really deleted, it is still present, with its previous public key, in the ldap db on "Removed Inventories" and no more on "Active Inventories". Why?

Quick solution : duplicate the script rudder-keys in rudder-keys2 and change line 38 :
#01 ACCEPTED_NODES_BASE="ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration"
ACCEPTED_NODES_BASE="ou=Nodes,ou=Removed Inventories,ou=Inventories,cn=rudder-configuration" #01

Proposed solutions :
1) buttun Delete > Destroy (no more data in the ldap db)
2)
buttons (scripts) : Delete , Undelete, Destroy
- adapt script : rudder-keys
3) ...
and update the doc :
- How to delete a node?
- How to recreate/undelete" a node


Related issues 3 (0 open3 closed)

Related to Rudder - Bug #9609: Deleted node should be periodically fully erased in LDAP (after some ttl)ReleasedNicolas CHARLESActions
Related to Rudder - Bug #13843: Inventory keeps its key certified when node is deleted even is keystatus is erasedReleasedFrançois ARMANDActions
Is duplicate of Rudder - Bug #14209: Impossible to reset the status of a Node using rudder-keys cliReleasedVincent MEMBRÉActions
Actions #1

Updated by Alexis Mousset about 5 years ago

  • Related to Bug #9609: Deleted node should be periodically fully erased in LDAP (after some ttl) added
Actions #2

Updated by François ARMAND about 5 years ago

  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 52

What ou experience is not what is expected. A deleted node from the UI should come back in "pending", and the fact that its UUID changed or that it goes to "deleted" should have nothing to do with that.

Perhaps you hit a variant of that bug: https://issues.rudder.io/issues/13843

We will investigate.

Actions #3

Updated by François ARMAND about 5 years ago

  • Related to Bug #13843: Inventory keeps its key certified when node is deleted even is keystatus is erased added
Actions #4

Updated by François ARMAND about 5 years ago

  • Translation missing: en.field_tag_list set to community
  • Assignee set to François ARMAND
  • Target version set to 5.0.10
Actions #5

Updated by François ARMAND almost 5 years ago

  • Related to Bug #14209: Impossible to reset the status of a Node using rudder-keys cli added
Actions #6

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 5.0.10 to 5.0.11
Actions #7

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 5.0.11 to 5.0.12
Actions #8

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 5.0.12 to 5.0.13
  • Priority changed from 52 to 50
Actions #9

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 5.0.13 to 5.0.14
  • Priority changed from 50 to 49
Actions #10

Updated by François ARMAND over 4 years ago

  • Priority changed from 49 to 48

Tested, still the case in 5.0.14.
This is especially strange, since the node is deleted and we have keyStatus=undefined in node inventory.

Actions #11

Updated by François ARMAND over 4 years ago

  • Status changed from New to Rejected

This was actually a duplicate of #14202. I'm closing this one.

Actions #12

Updated by François ARMAND over 4 years ago

  • Related to deleted (Bug #14209: Impossible to reset the status of a Node using rudder-keys cli)
Actions #13

Updated by François ARMAND over 4 years ago

  • Is duplicate of Bug #14209: Impossible to reset the status of a Node using rudder-keys cli added
Actions

Also available in: Atom PDF