greenframe-cli icon indicating copy to clipboard operation
greenframe-cli copied to clipboard

Cannot find network container for pod

Open vpeltot opened this issue 1 year ago • 4 comments

I have an issue with the greenframe analyze cli in a kubernetes execution context. All the analyse I run fails with the error :

Cannot find network container for pod pod-name-746fd5878bvvmnd

I have not made any changes to my kubernetes cluster.

greenframe-cli/1.6.6 linux-x64 node-v16.19.1 Kubernetes version 1.23, build v1.23.14-gke.1800, platform linux/amd64

@fzaninotto @guilbill What’s going on?

vpeltot avatar Mar 15 '23 17:03 vpeltot

Did these analyses run previously? Which version of greenframe-cli are you using? Did you update it recently?

Also, the error message seems to come from your kubernetes configuration rather than from greenframe. In any case, to help you troubleshoot this error, we'll need a way to reproduce it.

fzaninotto avatar Mar 17 '23 13:03 fzaninotto

Everything was working fine before an automatic update to a minor version of our kubernetes cluster.

Before, when everything was working, we were in Kubernetes version 1.23, build v1.23.13-gke.900, platform linux/amd64 and now we are in Kubernetes version 1.23, build v1.23.14-gke.1800, platform linux/amd64

This is the only difference.

I tried without success to:

  • Update the greenframe cli to 1.6.6 (we had stayed in version 1.4.4)
  • Kill and recreate the cadvisor pods (greenframe kube-config --delete and greenframe kube-config)

vpeltot avatar Mar 17 '23 14:03 vpeltot

Can you confirm this works again if you downgrade the Kubernetes version ?

fzaninotto avatar Mar 20 '23 17:03 fzaninotto

I can't downgrade the kubernetes version, the old version is no longer available...

vpeltot avatar Mar 21 '23 09:03 vpeltot