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
505 stars 72 forks source link

The API detected that the spiderpool-controller pod restart failed, but it actually restarted successfully. #3582

Open github-actions[bot] opened 3 weeks ago

github-actions[bot] commented 3 weeks ago

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

ty-dc commented 3 weeks ago

CI failed to check and restart spiderpool-controller.

  checking restarted pod 
  checking restarted pod 
  checking restarted pod 
  checking restarted pod 
  checking restarted pod 
  checking restarted pod 
  [FAILED] Unexpected error:
      <*errors.errorString | 0x37b2380>: 
      context timeout
      {s: "context timeout"}
  occurred
  In [It] at: /home/runner/work/spiderpool/spiderpool/test/e2e/reclaim/reclaim_test.go:570

But actually checking the logs, the Pod is running normally.

kube-system          spiderpool-agent-r8kw4                                       1/1     Running     0          13m     172.18.0.2      spiderpool0612201613-worker          <none>           <none>            app.kubernetes.io/component=spiderpool-agent,app.kubernetes.io/instance=spiderpool,app.kubernetes.io/name=spiderpool,controller-revision-hash=7957cd945,pod-template-generation=1
kube-system          spiderpool-agent-vd652                                       1/1     Running     0          13m     172.18.0.3      spiderpool0612201613-control-plane   <none>           <none>            app.kubernetes.io/component=spiderpool-agent,app.kubernetes.io/instance=spiderpool,app.kubernetes.io/name=spiderpool,controller-revision-hash=7957cd945,pod-template-generation=1
kube-system          spiderpool-controller-7c7679876b-4wpfp                       1/1     Running     0          5m3s    172.18.0.2      spiderpool0612201613-worker          <none>           <none>            app.kubernetes.io/component=spiderpool-controller,app.kubernetes.io/instance=spiderpool,app.kubernetes.io/name=spiderpool,pod-template-hash=7c7679876b
kube-system          spiderpool-controller-7c7679876b-pxtp2                       1/1     Running     0          5m3s    172.18.0.3      spiderpool0612201613-control-plane   <none>           <none>            app.kubernetes.io/component=spiderpool-controller,app.kubernetes.io/instance=spiderpool,app.kubernetes.io/name=spiderpool,pod-template-hash=7c7679876b
kube-system          spiderpool-init 

I suspect there is a problem with the API for checking and restarting.