spidernet-io / spiderpool

Underlay and RDMA network solution of the Kubernetes, for bare metal, VM and any public cloud
https://spidernet-io.github.io/spiderpool/
Apache License 2.0
503 stars 72 forks source link

API failed to restart spiderpool controller, reporting error pods "spiderpool-controller-797c94645b-c6jp8" not found #3650

Open github-actions[bot] opened 5 days ago

github-actions[bot] commented 5 days ago

action url: https://github.com/spidernet-io/spiderpool/actions/runs/9651692589

ty-dc commented 5 days ago
  now time: 2024-06-24T20:32:12.48040245Z, restart spiderpool controller 
  failed to DeletePodList
  [FAILED] Unexpected error:
      <*errors.StatusError | 0xc00042b540>: 
      pods "spiderpool-controller-797c94645b-c6jp8" not found
      {
          ErrStatus: {
              TypeMeta: {Kind: "", APIVersion: ""},
              ListMeta: {
                  SelfLink: "",
                  ResourceVersion: "",
                  Continue: "",
                  RemainingItemCount: nil,
              },
              Status: "Failure",
              Message: "pods \"spiderpool-controller-797c94645b-c6jp8\" not found",
              Reason: "NotFound",
              Details: {
                  Name: "spiderpool-controller-797c94645b-c6jp8",
                  Group: "",
                  Kind: "pods",
                  UID: "",
                  Causes: nil,
                  RetryAfterSeconds: 0,
              },
              Code: 404,
          },
      }
  occurred
  In [It] at: /home/runner/work/spiderpool/spiderpool/test/e2e/reclaim/reclaim_test.go:570 @ 06/24/24 20:32:12.521
  < Exit [It] a dirty IP record (pod name is wrong or containerID is wrong) in the IPPool should be auto clean by Spiderpool - 
ty-dc commented 5 days ago

The pod has been restarted successfully, but the old pod name is still being used, which is not what I expected.

kube-system          spiderpool-controller-6f7449b998-g7dlt                         0/1     Running       0          3s      172.18.0.3      spiderpool0624201227-control-plane   <none>           <none>            app.kubernetes.io/component=spiderpool-controller,app.kubernetes.io/instance=spiderpool,app.kubernetes.io/name=spiderpool,pod-template-hash=6f7449b998
kube-system          spiderpool-controller-6f7449b998-nhnfq                         0/1     Running       0          3s      172.18.0.2      spiderpool0624201227-worker          <none>           <none>            app.kubernetes.io/component=spiderpool-controller,app.kubernetes.io/instance=spiderpool,app.kubernetes.io/name=spiderpool,pod-template-hash=6f7449b998