Description of problem:
PTP Event (AMQ) : GET /api/cloudnotifications/v1/{resourceaddress}/CurrentState API route is not documented
Version-Release number of selected component (if applicable):
4.11, 4.12
How reproducible:
An example of getting the current state for os-clock-sync state is below. The polling for currentstate should work for all of the event types as listed: https://docs.openshift.com/container-platform/4.11/networking/using-ptp.html#cnf-fast-event-notifications-api-refererence_using-ptp curl http://localhost:9085/api/cloudNotifications/v1/cluster/node/cnfocto2.ptp.lab.eng.bos.redhat.com/sync/sync-status/os-clock-sync-state/CurrentState {"specversion":"0.3","id":"4f51fe99-feaa-4e66-9112-66c5c9b9afcb","source":"/cluster/node/cnfocto2.ptp.lab.eng.bos.redhat.com/sync/sync-status/os-clock-sync-state","type":"event.sync.sync-status.os-clock-sync-state-change","subject":"/cluster/node/cnfocto2.ptp.lab.eng.bos.redhat.com/sync/sync-status/os-clock-sync-state","datacontenttype":"application/json","time":"2022-11-29T17:44:22.202Z","data":{"version":"v1","values":[{"resource":"/cluster/node/cnfocto2.ptp.lab.eng.bos.redhat.com/CLOCK_REALTIME","dataType":"notification","valueType":"enumeration","value":"LOCKED"},{"resource":"/cluster/node/cnfocto2.ptp.lab.eng.bos.redhat.com/CLOCK_REALTIME","dataType":"metric","valueType":"decimal64.3","value":"27"}]}} The curl is of this format ` GET /api/cloudnotifications/v1/{resourceaddress}/CurrentState` This will return event for that resourceAddress for all three types
- documents
-
OCPBUGS-3296 PTP Event (AMQ) : Failed to get GetCurrentState for Events Clock Class Change
- Closed
- links to