- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-23-2024 03:52 AM
Took me long, but now i think i found strange behavior of the Kubernetes plugin - monitoring definition and especially matching criteria in the dynamic address groups.
TL/DR - having service in the kubernetes cluster, which does not have assigned ports - breaks the polling and watcher
Starting point was : working cn series as well the possibility to use the data from monitoring definition - both: to create dynamic groups and to use them in policy. Suddenly after while the monitoring definition processes (polling and watcher) stopped function (stuck in initializing state). Long story short - discovered in the kubernetes plugin logs the following suspicious lines
2024-05-23 13:21:39.868 +0300 ERROR: k8s-ret: skipping service, no port information found 'NoneType' object is not iterable
2024-05-23 13:21:39.869 +0300 ERROR: k8s-ret: skipping service, no port information found 'NoneType' object is not iterable
Looking at my kubernetes cluster - there were two distinct from the other services - without ports (PORT(S) column)
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
longhorn-system longhorn-engine-manager ClusterIP None <none> <none> 87d
longhorn-system longhorn-replica-manager ClusterIP None <none> <none> 87d
Next - i just add some ports definition to them - as i want to see if that will make any difference to the panorama monitoring definition processes. And it does - the processes started in normal state (connected)
2024-05-23 13:24:20.327 +0300 DEBUG: k8s-ret: <labkube> Successfully retrieved Service information.
Still not sure for the root cause of this behavior, probably can be bug. As having services without ports seems just ok for me.
Hope that, this behavior is reproducible elsewhere and will be addressed?
05-29-2024 08:36 AM
Hi @YLesev ,
Thanks for sharing your findings. I would recommend reaching out to support to share what you have.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!