Code Monkey home page Code Monkey logo

cloud-event-proxy's People

Contributors

aneeshkp avatar dependabot[bot] avatar javierpena avatar jennifer-chen-rh avatar jzding avatar leifmadsen avatar loganmc10 avatar mrvectorz avatar nishant-parekh avatar openshift-bot avatar openshift-ci[bot] avatar openshift-merge-bot[bot] avatar openshift-merge-robot avatar sebrandon1 avatar thiagoalessio avatar vitus133 avatar yselkowitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cloud-event-proxy's Issues

AMQP connection retry sequence ID error

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[]}"}

Migrate to GitHub Actions

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.

Code fails Golang linting

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)

sender.Client.Send() says failed eventhough data is send

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

@aneeshkp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.