Project

General

Profile

Actions

Bug #16074

closed

When deleting completely a rudder-agent, it is very hard to re-install a functionnal agent on it

Added by Félix DALLIDET about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
N/A
Category:
-
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:
Very Small
Priority:
80
Name check:
Fix check:
To do
Regression:

Description

If you uninstall rudder-agent from a node, and then remove the ppkeys of it from the node, it will be hard to make the agent come back in the Rudder server.
--> the webapp will throw errors like:

[2019-10-29 09:04:48] ERROR inventory-processing - Rejecting Inventory 'agent1-96d90e95-54ee-4d20-a95e-2d6dc4dccf61.ocs' for Node '96d90e95-54ee-4d20-a95e-2d6dc4dccf61' because the Inventory signature is not valid: the Inventory was not signed with the same agent key as the one saved within Rudder for that Node. If you updated the agent key on this node, you can update the key stored within Rudder with the following command on the Rudder Server: '/opt/rudder/bin/rudder-keys change-key 96d90e95-54ee-4d20-a95e-2d6dc4dccf61 <your new public key>'. If you did not change the key, please ensure that the node sending that inventory is actually the node registered within Rudder

Thing is, rudder-keys does not seem to work if we already removed the agent from the webapp...


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #13886: New inventory not accepted when deleted inventory with "undefined" key status deletedResolvedFrançois ARMANDActions
Actions #1

Updated by Félix DALLIDET about 5 years ago

It worked by checking in ou=Nodes,ou=Removed Inventories,ou=Inventories,cn=rudder-configuration besides of ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration

Actions #2

Updated by Benoît PECCATTE about 5 years ago

  • Effort required set to Small
  • Priority changed from 41 to 56
Actions #3

Updated by Benoît PECCATTE about 5 years ago

  • Assignee set to Félix DALLIDET

This should have been fixed in 5.0.14, needs a recheck

Actions #4

Updated by Félix DALLIDET about 5 years ago

  • Status changed from New to In progress
Actions #5

Updated by Félix DALLIDET about 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-plugins/pull/205
Actions #6

Updated by Félix DALLIDET about 5 years ago

  • Category deleted (Agent)
  • Target version changed from 5.0.15 to Ideas (not version specific)
  • Pull Request deleted (https://github.com/Normation/rudder-plugins/pull/205)
  • User visibility deleted (Infrequent - complex configurations | third party integrations)
  • Effort required deleted (Small)
  • Priority changed from 56 to 0
  • Name check deleted (To do)

Wrong pr

Actions #7

Updated by Benoît PECCATTE about 5 years ago

  • Status changed from Pending technical review to New
  • Assignee changed from Benoît PECCATTE to Félix DALLIDET
  • Target version changed from Ideas (not version specific) to 5.0.15
  • Effort required set to Small
Actions #8

Updated by François ARMAND about 5 years ago

  • Assignee changed from Félix DALLIDET to François ARMAND
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Effort required changed from Small to Very Small
  • Priority changed from 0 to 80
Actions #9

Updated by François ARMAND about 5 years ago

  • Related to Bug #13886: New inventory not accepted when deleted inventory with "undefined" key status deleted added
Actions #10

Updated by François ARMAND about 5 years ago

  • Status changed from New to Resolved

Solved in 5.0.14

Tested:

- just delete in UI + on node rudder agent inventory => OK
- delete in UI + on node, rudder agent reinit => ok
- delete in UI, desinstall on node, rm -rf /{var,opt}/rudder, install => OK

Actions

Also available in: Atom PDF