Skip to content

Add prometheus-k8s-federate to etc_hosts_entries for telemetry tests - #40

Merged
openshift-ci[bot] merged 1 commit into
mainfrom
add-prometheus-k8s-federate-etc-hosts
Sep 15, 2026
Merged

openshift-ci[bot] merged 1 commit into
mainfrom
add-prometheus-k8s-federate-etc-hosts

Conversation

@tusharjadhav3302

@tusharjadhav3302 tusharjadhav3302 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add prometheus-k8s-federate-openshift-monitoring.apps.<cluster>.<domain> to etc_hosts_entries in the prepare role (same apps_ip as other guest monitoring routes).
  • Fixes missing static DNS for the guest Prometheus federation route used by openstack-test observability tests (kube_persistentvolume_info in RHOSO Prometheus).

Context

On serval71, other monitoring routes were present in shiftstackclient /etc/hosts but the CMO prometheus-k8s-federate route was not, so federation scrape targets stayed up=0.

Test plan

  • Run prepare / external_access on a lab hypervisor and confirm /etc/hosts contains the federate FQDN.
  • Re-run kube_persistentvolume_info metric in RHOSO prometheus (with SOSQE-2170 dnsmasq path active for RHOSO pods).

Made with Cursor

CMO exposes a separate federate ingress for RHOSO telemetry tests; include
it alongside the other openshift-monitoring apps routes during prepare.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gryf

gryf commented Sep 15, 2026

Copy link
Copy Markdown

/lgtm

@ekuris-redhat ekuris-redhat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me

@openshift-ci

openshift-ci Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekuris-redhat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
openshift-ci Bot merged commit 9f5ac0e into main Sep 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants