Skip to main content

Possible problems

Error from server (ServiceUnavailable)

Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods.metrics.k8s.io)

image-1644835302770.png

This error occurs because the commands that take the metrics from the nodes and pods cannot be invoked.

image-1644835468926.png

Most likely it is because the metric server or the monitoring option in the openshift environment is disabled, or has been disabled. Make sure the server is running, you can see more data about this error from the openshift console which will indicate if there is a problem with monitoring.

Permissions

The plugin has internal openshift CLI commands that need permissions to run from the pandora agent.

chmod 755 pandora_openshift.pl
chmod 755 pandora_openshift.conf

At the same time, the cli binary must also have the correct permissions, in this case root:root so that the pandora agent can execute it.

 

chown root:root /path_oc
chmod 755 /path_oc