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

PTP events oran compliant API (v2) reports send error 400.

XMLWordPrintable

    • Important
    • None
    • CNF RAN Sprint 258, CNF RAN Sprint 259
    • 2
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done
    • 9/19: Waiting on QE to verify this in 4.17 before GA

      This is a clone of issue OCPBUGS-38216. The following is the description of the original issue:

      Description of problem:

          When I performed ptp events v2 manual testing against 4.17.0-ec2, I observed the ptp events send error after several days and there were ptp interface bouncing, and sno reboots etc.
      
      
      

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

          

      How reproducible:

           The developer of ptp events v2 was able to reproduce the issue in his lab.

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

        time="2024-07-30T12:18:40Z" level=info msg="checking for rest service health"
      time="2024-07-30T12:18:40Z" level=info msg="health check http://ptp-event-publisher-service-cloudransno-site6.openshift-ptp.svc.cluster.local:9043/api/ocloudNotifications/v2/health"
      time="2024-07-30T12:18:40Z" level=info msg="rest service returned healthy status"
      time="2024-07-30T12:18:47Z" level=error msg="error in post response Get \"http://ptp-event-publisher-service-cloudransno-site6.openshift-ptp.svc.cluster.local:9043/api/ocloudNotifications/v2/cluster/node/cloudransno-site6/sync/ptp-status/clock-class/CurrentState\": context deadline exceeded (Client.Timeout exceeded while awaiting headers) to http://ptp-event-publisher-service-cloudransno-site6.openshift-ptp.svc.cluster.local:9043/api/ocloudNotifications/v2/cluster/node/cloudransno-site6/sync/ptp-status/clock-class/CurrentState "
      time="2024-07-30T12:18:47Z" level=error msg="CurrentState:error 400 from url http://ptp-event-publisher-service-cloudransno-site6.openshift-ptp.svc.cluster.local:9043/api/ocloudNotifications/v2/cluster/node/cloudransno-site6/sync/ptp-status/clock-class/CurrentState, error in post response Get \"http://ptp-event-publisher-service-cloudransno-site6.openshift-ptp.svc.cluster.local:9043/api/ocloudNotifications/v2/cluster/node/cloudransno-site6/sync/ptp-status/clock-class/CurrentState\": context deadline exceeded (Client.Timeout exceeded while awaiting headers) to http://ptp-event-publisher-service-cloudransno-site6.openshift-ptp.svc.cluster.local:9043/api/ocloudNotifications/v2/cluster/node/cloudransno-site6/sync/ptp-status/clock-class/CurrentState "
      time="2024-07-30T12:18:49Z" level=debug msg="Got CurrentState: {\"specversion\":\"1.0\",\"id\":\"8b537cef-89e2-4955-89f3-2d71a8079dd1\",\"source\":\"/cluster/node/cloudransno-site6/sync/ptp-status/lock-state\",\"type\":\"event.sync.ptp-status.ptp-state-change\",\"time\":\"2024-07-30T12:18:49.185106449Z\",\"data\":{\"version\":\"1.0\",\"values\":[{\"ResourceAddress\":\"/cluster/node/cloudransno-site6/ens2fx/master\",\"data_type\":\"notification\",\"value_type\":\"enumeration\",\"value\":\"LOCKED\"},{\"ResourceAddress\":\"/cluster/node/cloudransno-site6/ens2fx/master\",\"data_type\":\"metric\",\"value_type\":\"decimal64.3\",\"value\":\"0\"}]}} "
      time="2024-07-30T12:18:49Z" level=debug msg="Got CurrentState: {\"specversion\":\"1.0\",\"id\":\"06d77f5b-d8ca-4734-bbc1-d2e68db13e89\",\"source\":\"/cluster/node/cloudransno-site6/sync/gnss-status/gnss-sync-status\",\"type\":\"event.sync.gnss-status.gnss-state-change\",\"time\":\"2024-07-30T12:18:49.185699444Z\",\"data\":{\"version\":\"1.0\",\"values\":[{\"ResourceAddress\":\"/cluster/node/cloudransno-site6/event-not-found\",\"data_type\":\"notification\",\"value_type\":\"enumeration\",\"value\":\"FREERUN\"},{\"ResourceAddress\":\"/cluster/node/cloudransno-site6/event-not-found\",\"data_type\":\"metric\",\"value_type\":\"decimal64.3\",\"value\":\"0\"}]}} "
      time="2024-07-30T12:18:49Z" level=error msg="CurrentState:error 404 from url http://ptp-event-publisher-service-cloudransno-site6.openshift-  

      Expected results:

          No sent error

      Additional info:

          The problem was observed after several days.

            jacding@redhat.com Jack Ding
            openshift-crt-jira-prow OpenShift Prow Bot
            Bonnie Block Bonnie Block
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: