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

Role metrics are missing after restarting sidecar container in linuxptp-daemon

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • Yes
    • Hide
      8/14: Dev on feature in progress
      7/31: Technical debt . Need new implementation.
      Show
      8/14: Dev on feature in progress 7/31: Technical debt . Need new implementation.
    • None
    • None
    • CNF RAN Sprint 275
    • 1
    • In Progress
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      Description of problem:

      openshift_ptp_interface_role gauge is missing from metrics after restarting sidecar container.
      Automated test and manual test steps show same result.
      
      
          

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

      ptp-operator.v4.20.0-202507011152
      Cluster version is 4.20.0-0.nightly-2025-07-01-051543    

      How reproducible:

      100%    

      Steps to Reproduce:

      1.  Deploy 4.20 SNO with PTP
      
      2.  Examine metrics:
      oc exec -it ds/linuxptp-daemon  -n openshift-ptp -c linuxptp-daemon-container -- curl -s localhost:9091/metrics
      
      Metrics should include a section for openshift_ptp_interface_role gauge:
      # TYPE openshift_ptp_interface_role gauge
      openshift_ptp_interface_role{iface="eno12399",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens3f1np1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 1
      openshift_ptp_interface_role{iface="ens5f0",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f1",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f2",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens5f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      openshift_ptp_interface_role{iface="ens7f3",node="helix60.lab.eng.rdu2.redhat.com",process="ptp4l"} 2
      3.  Restart sidecar:
      oc exec ds/linuxptp-daemon -c cloud-event-proxy -n openshift-ptp -- sh -c "kill -9 \$(ps aux | grep cloud-event-proxy | grep -v grep | awk '{print \$2}')"
      4.  Wait for recovery and check metrics for openshift_ptp_interface_role gauge:
      oc exec -it ds/linuxptp-daemon  -n openshift-ptp -c linuxptp-daemon-container -- curl -s localhost:9091/metrics | grep -i role

      Actual results:

      No openshift_ptp_interface_role gauge is shown in metrics.

      Expected results:

      openshift_ptp_interface_role gauge shows role for all interfaces.

      Additional info:

      Retested on 4.18 with ptp-operator.v4.18.0-202507081733 with same results.

              aputtur@redhat.com Aneesh Puttur
              bblock@redhat.com Bonnie Block
              None
              None
              Hen Shay Hassid Hen Shay Hassid
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: