Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-54168

[4.19] oc adm top pvc not showing usage statistics in private, disconnected, proxy clusters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.19.0
    • 4.19
    • Storage
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • Done
    • Bug Fix
    • Hide
      * Previously, using the `oc adm top pvc` command would not show usage statistics for persistent volume claims (PVCs) for clusters with restricted network configurations, such as clusters with a proxy or clusters in a disconnected environment. With this release, usage statistics can be acquired for clusters in these environments. (link:https://issues.redhat.com/browse/OCPBUGS-54168[OCPBUGS-54168])
      Show
      * Previously, using the `oc adm top pvc` command would not show usage statistics for persistent volume claims (PVCs) for clusters with restricted network configurations, such as clusters with a proxy or clusters in a disconnected environment. With this release, usage statistics can be acquired for clusters in these environments. (link: https://issues.redhat.com/browse/OCPBUGS-54168 [ OCPBUGS-54168 ])
    • None
    • None
    • None
    • None

      Description of problem:

      Usage statistics is not shows on proxy, disconnected, private kind of clusters

      Version-Release number of selected component (if applicable):

      4.19.0-0.nightly-2025-03-21-030708 

      How reproducible:

      Always

      Steps to Reproduce:

      1. Install proxy/Private/Disconnected clusters.
      2. Provision the volume and check usage statistics    

      Actual results:

      oc adm top pvc -A --insecure-skip-tls-verify=true                                                    
      error: failed to get persistentvolumeclaims from Prometheus: unable to get /api/v1/query from URI in the openshift-monitoring/prometheus-k8s Route: prometheus-k8s-openshift-monitoring.apps.ropatil-324aws1.qe.devcluster.openshift.com, Get "https://prometheus-k8s-openshift-monitoring.apps.ropatil-324aws1.qe.devcluster.openshift.com/api/v1/query?query=100%2Akubelet_volume_stats_used_bytes%7Bpersistentvolumeclaim%3D~%22.%2A%22%7D%2Fkubelet_volume_stats_capacity_bytes%7Bpersistentvolumeclaim%3D~%22.%2A%22%7D": dial tcp: lookup prometheus-k8s-openshift-monitoring.apps.ropatil-324aws1.qe.devcluster.openshift.com: no such host

      Expected results:

      It should show the pvc data usage

      Additional info:

      https://issues.redhat.com/browse/OCPQE-28824
      Discussion: https://redhat-internal.slack.com/archives/GK0DA0JR5/p1742809711015949 

              rhn-support-pewang Penghao Wang
              ropatil@redhat.com Rohit Patil
              None
              None
              Rohit Patil Rohit Patil
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: