Bug 2067312 - PPT event source is lost when received by the consumer
Summary: PPT event source is lost when received by the consumer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Native Events
Version: 4.11
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.11.0
Assignee: Aneesh Puttur
QA Contact: obochan
URL:
Whiteboard:
Depends On:
Blocks: 2067311
TreeView+ depends on / blocked
 
Reported: 2022-03-23 18:44 UTC by Aneesh Puttur
Modified: 2022-08-10 10:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:24:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5070 0 None None None 2022-08-10 10:25:01 UTC

Description Aneesh Puttur 2022-03-23 18:44:29 UTC
Description of problem:
Source of the event is lost when the event are converted from cloud events to cloud native events 

When event has created the source of the event is captured by the producer 
 \"source\": \"/cluster/cnfde7.ptp.lab.eng.bos.redhat.com/ptp/ens7fx/master\"

but when it is converted to Cloud-native events the source is replaced by event source type
/cluster/node/cnfde7.ptp.lab.eng.bos.redhat.com/sync/sync-status/os-clock-sync-state\"


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

4.10, 4.11

Actual results:
{\n    \"id\": \"\",\n    \"type\": \"event.sync.sync-status.os-clock-sync-state-change\",\n    \"source\": \"/cluster/node/cnfde7.ptp.lab.eng.bos.redhat.com/sync/sync-status/os-clock-sync-state\",\n    \"dataContentType\": \"application/json\",\n    \"time\": \"2022-03-23T17:56:27.444679124Z\",\n    \"data\": {\n      \"version\": \"v1\",\n      \"values\": [\n        {\n          \"resource\": \"/sync/sync-status/os-clock-sync-state\",\n          \"dataType\": \"notification\",\n          \"valueType\": \"enumeration\",\n          \"value\": \"LOCKED\"\n        },\n        {\n          \"resource\": \"/sync/sync-status/os-clock-sync-state\",\n          \"dataType\": \"metric\",\n          \"valueType\": \"decimal64.3\",\n          \"value\": \"2321\"\n        }\n      ]\n    }\n  }\n"


Expected results:
{\n    \"id\": \"2725fc41-0414-4b70-84cb-28689ab5ebe7\",\n    \"type\": \"event.sync.ptp-status.ptp-state-change\",\n    \"source\": \"/cluster/cnfde7.ptp.lab.eng.bos.redhat.com/ptp/CLOCK_REALTIME\",\n    \"dataContentType\": \"application/json\",\n    \"time\": \"2022-03-23T18:37:10.13560074Z\",\n    \"data\": {\n      \"version\": \"v1\",\n      \"values\": [\n        {\n          \"resource\": \"/sync/ptp-status/lock-state\",\n          \"dataType\": \"notification\",\n          \"valueType\": \"enumeration\",\n          \"value\": \"FREERUN\"\n        },\n        {\n          \"resource\": \"/sync/ptp-status/lock-state\",\n          \"dataType\": \"metric\",\n          \"valueType\": \"decimal64.3\",\n          \"value\": \"-1\"\n        }\n      ]\n    }\n  }"



Additional info:

Comment 2 obochan 2022-03-28 13:00:33 UTC
moved to verified in 4.11 so it will merge to 4.10

Comment 6 errata-xmlrpc 2022-08-10 10:24:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.11.0 extras and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5070


Note You need to log in before you can comment on or make changes to this bug.