Monitoring kubernetes in Azure, problem with API

When we try to monitor a kubernetes cluster running in Azure the agent returns a error message saying “Agent exited with code 1: Invalid value for names, must not be None

Tried to debug but the output doesnt give me any suggestions what the problem can be.
Has anyone seen this error and if yes how did you solve it?

//Daniel

Do you have an image which has the name = null ?

Hi

Theres no images at all in that specific kubernetes cluster.
I´ve created a tracefile and attached it to the post.
wineally-trace.txt (1.2 MB)

In total you have five times the images with the name = null.
We have also seen this problem before with Openshift and now it shows up with AKS. This message gets triggered from here:
/omd/sites//lib/python3.9/site-packages/kubernetes/client/models/v1_container_image.py
To get around with this problem, here is a temporary workaround:

Open this file and comment out line number 79 and 80. If needed, restart the site and reschedule.

1 Like

Hi,

That solved the problem for us, so thank you very much.
Is there permenant fix in the works for this or should we just note down the temporary workaround?

//Daniel

There is already an internal ticket on this topic. It is in progress.

We are still investigating why an image name could be null in the first place.

Till then you can use this temporary workaround.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.