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

event.sync.ptp-status.ptp-state-change is not showing LOCKED in cloud-event-proxy

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Environment: GNR-D dpll BC
      ptp-operator.v4.21.0-202512180841
      Cluster version is 4.21.0-ec.3
      cnfdg17 - gnrd-bc-tt & gnrd-bc-tr ptpconfigs, using cnfdg32 GM as clock source
      
      Problem detected during regression testing - recovery test after rebooting node.
      cloud-event-proxy is not showing any LOCKED events at all:
      $ oc logs -n openshift-ptp ds/linuxptp-daemon cloud-event-proxy | grep -E 'event.sync.ptp-status.ptp-state-change.*LOCKED.*'
      ${code}
      {code:none}
      cloud-event-proxy reports FREERUN event.sync.ptp-status.ptp-state-change, while event.sync.sync-status.synchronization-state-change shows LOCKED:
      
      16:03:55  2025/12/19 21:03:42 Info: event.sync.ptp-status.ptp-state-change has value FREERUN for /cluster/node/cnfdg17.ptp.eng.rdu2.dc.redhat.com/enox/master, expected value: LOCKED
      
      ---
      
      time="2025-12-19T21:03:19Z" level=debug msg="event sent {\n    \"id\": \"1c9fc054-8d9f-4bb0-a1eb-ef24f198f319\",\n    \"type\": \"event.sync.sync-status.synchronization-state-change\",\n    \"source\": \"/sync/sync-status/sync-state\",\n    \"dataContentType\": \"application/json\",\n    \"time\": \"2025-12-19T21:03:19.929024209Z\",\n    \"data\": {\n      \"version\": \"1.0\",\n      \"values\": [\n        {\n          \"ResourceAddress\": \"/cluster/node/cnfdg17.ptp.eng.rdu2.dc.redhat.com/sync/sync-status/sync-state\",\n          \"data_type\": \"notification\",\n          \"value_type\": \"enumeration\",\n          \"value\": \"LOCKED\"\n        }\n      ]\n    }\n  }"
      Metrics are also reporting locked state at the same time as above events are reported:
      
      16:05:02  # TYPE openshift_ptp_clock_state gauge
      16:05:02  openshift_ptp_clock_state{iface="CLOCK_REALTIME",node="cnfdg17.ptp.eng.rdu2.dc.redhat.com",process="phc2sys"} 1
      16:05:02  openshift_ptp_clock_state{iface="enox",node="cnfdg17.ptp.eng.rdu2.dc.redhat.com",process="T-BC"} 1
      16:05:02  openshift_ptp_clock_state{iface="enox",node="cnfdg17.ptp.eng.rdu2.dc.redhat.com",process="dpll"} 1
      16:05:02  openshift_ptp_clock_state{iface="enox",node="cnfdg17.ptp.eng.rdu2.dc.redhat.com",process="ptp4l"} 1
      16:05:02  openshift_ptp_clock_state{iface="enox",node="cnfdg17.ptp.eng.rdu2.dc.redhat.com",process="ts2phc"} 1
      16:05:02  openshift_ptp_clock_state{iface="enp108s0fx",node="cnfdg17.ptp.eng.rdu2.dc.redhat.com",process="ts2phc"} 1
      A similar issue was reported in https://issues.redhat.com/browse/OCPBUGS-69698

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

          4.21

      How reproducible:

          100%

      Steps to Reproduce:

          1.  Deploy SNO with gnrd-bc-tt & gnrd-bc-tr ptpconfigs
          2.  Reboot node
          3.  Observe cloud-event-proxy for event.sync.ptp-status.ptp-state-change event      

      Actual results:

          LOCKED events are never reported

      Expected results:

          event.sync.ptp-status.ptp-state-change reports LOCKED

      Additional info:

          

              micosta@redhat.com Michele Tomaso Costa
              bblock@redhat.com Bonnie Block
              None
              None
              Bonnie Block Bonnie Block
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: