#1 Global Leader in Data Resilience

Report Generation Fails with "lookup prometheus-server-exp: no such host"

KB ID: 4570
Product: Veeam Kasten for Kubernetes
Published: 2024-06-14
Last Modified: 2024-06-14
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Challenge

After enabling Veeam Kasten for Kubernetes reports, reports are not generated.

When running an on-demand report policy, the following error message is observed within the executor logs:

"message":"Post "http://prometheus-server-exp:80/k10/prometheus/api/v1/query\": dial tcp: lookup prometheus-server-exp on 192.0.0.10:53: no such host" 
cause":{"message":"Failure in subordinate phase","function":"kasten.io/k10/kio/exec/phases/phase.(*queueAndWaitChildrenPhase).processGroup","linenumber":196,"file":"kasten.io/k10/kio/exec/phases/phase/queue_and_wait_children.go:196","fields":[{"name":"FailedSubPhases","value":[{"Phase":"","Err":{"cause":{"cause":{"cause":{"cause":{"cause":{"message":"Post "http://prometheus-server-exp:80/k10/prometheus/api/v1/query\": dial tcp: lookup prometheus-server-exp on 192.0.0.10:53: no such host"},"fields":[{"name":"query","value":"sum(round(increase(action_backup_skipped_overall{cluster=""}[24h])))"}] 

Cause

This issue occurs when the Prometheus server hostname cannot be resolved via DNS, which prevents Veeam Kasten for Kubernetes pods (i.e., Executor pods) from capturing the Prometheus metrics. Since the Prometheus instance metrics cannot be collected, the Veeam Kasten for Kubernetes reports, which depend on those metrics, cannot be generated.

This may also occur when the DNS server is not running.

lookup prometheus-server-exp on 192.0.0.10:53: no such host 

Solution

Cluster DNS Validation

Validate the cluster DNS by following this DNS troubleshooting guide.

The following commands can be used to help to check DNS functionality within the cluster:

  • DNS debugging example pod YAML from kubernetes documentation:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/admin/dns/dnsutils.yaml
  • exec into the pod to run the nslookup command with the name <svcName.NamespaceName>:
kubectl -n default exec -i -t dnsutils -- nslookup prometheus-server-exp.kasten-io

Example of an issue with the cluster DNS:

> kubectl -n default exec -i -t dnsutils -- nslookup prometheus-server-exp.kasten-io
Server:        10.245.0.10
Address:    10.245.0.10#53
** server can't find prometheus-server-exp.kasten-io: NXDOMAIN
command terminated with exit code 1

 

Troubleshoot DNS Service Functionality

The next steps are to check if the DNS service is running, whether endpoints are exposed, and restart the DNS deployment.

The commands below demonstrate troubleshooting with coredns as that is the built-in DNS service that comes with a Kubernetes cluster. If you are using a different DNS service, the troubleshooting procedure should be similar, check documentation to be sure. 

  • Check if DNS pods are running filtering by label kube-dns:
kubectl get pods --namespace=kube-system -l k8s-app=kube-dns 
  • Check if DNS endpoints are discovered:
kubectl get endpoint kube-dns --namespace=kube-system
  • Try restarting DNS services (rollout):
kubectl -n kube-system rollout restart deployment coredns
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.