Reinstall agent node

  • Related issues: #2665 [BUG] reinstall 1st node

  • Related issues: #2892 [BUG] rancher-system-agent keeps showing error on a new node in an upgraded cluster

Category:

  • Host

Verification Steps

Test Plan 1: Reinstall management node and agent node in a upgraded cluster

  1. Create a 4-node v1.0.3 cluster.

  2. Upgrade the master branch:

  3. Check the spec content in provisioning.cattle.io/v1/clusters -> fleet-local image

  4. Check the iface content in helm.cattle.io/v1/helmchartconfigs -> rke2-canal image

       spec:                                                                                                                                                                                      │
    │   valuesContent: |-                                                                                                                                                                        │
    │     flannel:                                                                                                                                                                               │
    │       iface: "" 
    
  5. Remove the agent node and 1 management node. Remove agent node (node 4) image image

  6. Remove management node (node 3) image image image

  7. After the node is removed, provision a new node.

  8. Check the node can join the cluster and can be promoted as a management node.

  9. After we have 3 management nodes, provision a new node and check if it can join the cluster.

Test Plan 2: Reinstall management node and agent node in a new Harvester cluster

  1. Create a 4-node v1.0.3 cluster.

  2. Upgrade to the v1.1.0-rc3

  3. Remove the agent node and the first management node

  4. Remove agent node (node 4) image image image

  5. Remove management node (node 1) image image

  6. After the node is removed, provision a new node.

  7. Check the node can join the cluster and can be promoted as a management node. (node 1)

  8. After we have 3 management nodes, provision a new node and check if it can join the cluster. (node 4)

Expected Results

  1. Can successfully re-join the management node after upgrade image

  2. Can successfully re-join the agent node after upgrade image

  3. Verified after upgrading from v1.0.3 to v1.1.0-rc3,we can rejoin the management node and agent node back correctly.

  4. Successfully re-join the management node after upgrade image image

  5. Successfully re-join the agent node after upgrade image image