Project

General

Profile

Actions

Bug #18348

closed

Bug #18286: Agents fail to check their policy server's identity

After a factory reset agents can no longer download their policies from the new server they are managed by

Added by Félix DALLIDET about 4 years ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
Agent
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:
Priority:
37
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

I tried to switch a node from a Rudder server to another. To do it I:
  1. Deleted the node from the initial server
  2. run rudder agent factory-reset on the target node
  3. rm /var/rudder/cfengine-community/ppkeys/policy_server_hash on the node (should be done by the factory reset)
  4. run a first inventory:
    agent1:~ # rudder agent inventory
    Agent is currently in bootstrap policies, cannot run an inventory. Please download initial policies from the server with command   notice: Trusting new key: MD5=bc0c9963a2cd481f2b9d9521b9958b2f
    R: Initial policies have been successfully downloaded from the policy server
    ok: Rudder agent policies were updated. first. If problem persists, use WARNING: The file /var/rudder/cfengine-community/last_successful_inputs_update is older than twice 10 minutes, the agent is probably stuck. Purging the CFEngine lock database... Done
    FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error. for diagnostic
    
  5. run a second inventory which worked
    agent1:~ # rudder agent inventory
    Rudder agent 6.1.6.rc1.git202010150124
    Node uuid: 6a56a9f1-07b3-4d92-89ec-0c0e0cf10b85
    M| State         Technique                 Component                 Key                Message
    E| repaired      Common                    Compute inventory splay   rudder_run_invent| Scheduling rudder_run_inventory was repaired
    Start execution with config [0]
    
    E| compliant     Inventory                 inventory                                    The inventory has been successfully sent
    info     Rudder agent was run on a subset of policies - not all policies were checked
    
    ## Summary #####################################################################
    2 components verified in 4 directives
       => 2 components in Enforce mode
          -> 1 compliant
          -> 1 repaired
    Execution time: 3.40s
    ################################################################################
    
  6. Accept the node on the new server
  7. Try to update my node, which failed:
    agent1:~ # rudder agent update
    R: *********************************************************************************
    * rudder-agent could not get an updated configuration from the policy server.   *
    * This can be caused by:                                                        *
    *   * an agent key that has been changed                                        *
    *   * if this node is not accepted or deleted node on the Rudder root server    *
    *   * if this node has changed policy server without sending a new inventory    *
    * Any existing configuration policy will continue to be applied without change. *
    *********************************************************************************
    

Subtasks 4 (0 open4 closed)

Bug #18407: Factory reset does not workReleasedBenoît PECCATTEActions
Bug #18408: Factory reset does not work - techniquesReleasedNicolas CHARLESActions
Bug #18410: Parent will fait to trust server in some casesReleasedNicolas CHARLESActions
Bug #18422: parent ticket fails to prevent trustReleasedAlexis MoussetActions

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #18356: Add a command to reset trustReleasedAlexis MoussetActions
Actions #1

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #2

Updated by Nicolas CHARLES about 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/324
Actions #3

Updated by Nicolas CHARLES about 4 years ago

  • Related to Bug #18356: Add a command to reset trust added
Actions #4

Updated by Nicolas CHARLES about 4 years ago

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

Updated by Alexis Mousset about 4 years ago

  • Fix check changed from To do to Error - Blocking
Actions #6

Updated by Alexis Mousset about 4 years ago

  • Fix check changed from Error - Blocking to Checked
Actions #7

Updated by Alexis Mousset about 4 years ago

  • Parent task set to #18286
Actions #8

Updated by Alexis Mousset about 4 years ago

  • Name check changed from To do to Reviewed
Actions #9

Updated by Vincent MEMBRÉ about 4 years ago

This bug has been fixed in Rudder 6.1.6 and 6.2.0~beta1 which were released today.

Actions #10

Updated by Vincent MEMBRÉ over 3 years ago

  • Status changed from Pending release to Released
  • Priority changed from 41 to 37
Actions

Also available in: Atom PDF