redhat-cne / cloud-event-proxy Goto Github PK
View Code? Open in Web Editor NEWSidecar Cloud Native Events Manager
License: Apache License 2.0
Sidecar Cloud Native Events Manager
License: Apache License 2.0
When context deadline occurs, the logic is to retry 3 times before dropping the event on the floor.
But the retry action creates a new sequence id and causes
Error while receiving a message: *Error{Condition: amqp:session:invalid-field, Description: sequencing error, expected delivery-id 7780, got 7781,
Full error
time="2021-06-23T16:55:10Z" level=error msg="failed to send(TO): /cluster/node/cnfde7.ptp.lab.eng.bos.redhat.com/ptp result *Error{Condition: amqp:session:invalid-field, Description: sequencing error, expected delivery-id 7780, got 7781, Info: map[]} "
time="2021-06-23T16:55:10Z" level=warning msg="retry for 3 times and then declare connection error\n"
{"level":"warn","ts":1624467310.1740294,"logger":"fallback","caller":"client/client.go:244","msg":"Error while receiving a message: *Error{Condition: amqp:session:invalid-field, Description: sequencing error, expected delivery-id 7780, got 7781, Info: map[]}"}
{"level":"warn","ts":1624467310.1742873,"logger":"fallback","caller":"client/client.go:244","msg":"Error while receiving a message: *Error{Condition: amqp:session:invalid-field, Description: sequencing error, expected delivery-id 7780, got 7781, Info: map[]}"}
Using Travis CI is a pattern that won't scale long term because of the new requirements. Primarily, projects that are built primarily by a commercial entity and paying the developers to work on the project are not able to consume Travis CI long term once the initial credits run out.
Migrating from Travis CI to GHA would be a better long term solution.
The following branches are being fast-forwarded from the current development branch (main) as placeholders for future releases. No merging is allowed into these release branches until they are unfrozen for production release.
release-4.17
release-4.18
For more information, see the branching documentation.
Update supported PTP Events (e.g., missing event.sync.gnss-status.gnss-state-change
) and its Prometheus metrics, on the Plugins Readme page.
https://quay.io/repository/redhat-cne/cloud-event-proxy?tab=tags
The release-4.11
image on quay appears to be a v4.10 image, see: https://quay.io/repository/redhat-cne/cloud-event-proxy/manifest/sha256:3058eb81753942e7a30a542c9f3d3251536e0b8fb1b8f84c649ae77625bf8bbd
From the golang CI linter:
Running [/home/runner/golangci-lint-1.33.2-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
Error: `hwEventPort` is unused (deadcode)
Error: Error return value of `http.ListenAndServe` is not checked (errcheck)
Error: structtag: struct field tag `json:"EventTypes" example:["StatusChange", "ResourceUpdated", "ResourceAdded", "ResourceRemoved", "Alert"]` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)
Error: func `ackEvent` is unused (unused)
Error: type `HwSubPayload` is unused (unused)
Error: func `createHwEventSubscription` is unused (unused)
Error: type `HTTPHeader` is unused (unused)
Error: func `startWebhook` is unused (unused)
Error: var `hwEventTypes` is unused (unused)
Error: var `resourceAddress` is unused (unused)
Error: func `getWebhookAddr` is unused (unused)
Error: var `hwSubURL` is unused (unused)
Error: type `RedfishEvent` is unused (unused)
Error: func `publishHwEvent` is unused (unused)
linuxptp-daemon
time="2022-11-10T20:39:45Z" level=info msg="setting return address to /cluster/node/cp-baremetal-ptpstack-1/mock/RRyIz"
time="2022-11-10T20:39:45Z" level=info msg="got status check call,fire events returning to /cluster/node/cp-baremetal-ptpstack-1/mock/RRyIz"
time="2022-11-10T20:39:45Z" level=info msg="created new sender for /cluster/node/cp-baremetal-ptpstack-1/mock/RRyIz"
time="2022-11-10T20:39:47Z" level=error msg="failed to send(TO): /cluster/node/cp-baremetal-ptpstack-1/mock/RRyIz result context deadline exceeded "
time="2022-11-10T20:39:47Z" level=error msg="postprocessfn:not finding publisher for address /cluster/node/cp-baremetal-ptpstack-1/mock/status"
consumer side:
time="2022-11-10T20:39:45Z" level=info msg="sending status requerst to status address /cluster/node/cp-baremetal-ptpstack-1/mock/status with return /cluster/node/cp-baremetal-ptpstack-1/mock/RRyIz"
time="2022-11-10T20:39:45Z" level=info msg="waiting to receive message at /cluster/node/cp-baremetal-ptpstack-1/mock/RRyIz"
time="2022-11-10T20:39:45Z" level=info msg="got the status msg Context Attributes,\n specversion: 0.3\n type: /cluster/node/cp-baremetal-ptpstack-1/mock\n source: /cluster/node/cp-baremetal-ptpstack-1/mock\n subject: mock\n id: 3eb49d48-f07b-4406-b8f0-d445472fe629\n time: 2022-11-10T20:39:45.485Z\n datacontenttype: application/json\nData,\n {\n \"version\": \"v1\",\n \"values\": [\n {\n \"resource\": \"/mock\",\n \"dataType\": \"notification\",\n \"valueType\": \"enumeration\",\n \"value\": \"ACQUIRING-SYNC\"\n },\n {\n \"resource\": \"/mock\",\n \"dataType\": \"metric\",\n \"valueType\": \"decimal64.3\",\n \"value\": \"99.6\"\n }\n ]\n }\n"
time="2022-11-10T20:39:47Z" level=error msg="failed to send(TO): /cluster/node/cp-baremetal-ptpstack-1/mock/status result context deadline exceeded "
time="2022-11-10T20:39:47Z" level=error msg="failed to receive status request to address /cluster/node/cp-baremetal-ptpstack-1/mock/status"
Even though data is send, send() says "failed to send(TO): /cluster/node/cp-baremetal-ptpstack-1/mock/status result context deadline exceeded"
On Further debugging it narrowed down to this issue Azure/go-amqp#193
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.