Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger deadLetterUri does not conform to specification, should be deadLetterSinkUri #5639

Closed
knguyen0125 opened this issue Aug 18, 2021 · 16 comments · Fixed by #5642
Closed
Assignees
Labels
area/brokers good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@knguyen0125
Copy link

Describe the bug
A clear and concise description of what the bug is.

In Trigger Lifecycle specification, it specify the following:

If the Trigger's `spec.delivery.deadLetterSink` field it set, it MUST be resolved to a URI and reported in `status.deadLetterSinkUri` in the same manner as the `spec.subscriber` field before setting the Ready condition to true.

The newly merged new feature #5551 does not conform to this specification.

Additionally, since the CRD for Broker and Trigger does not contain deadLetterSinkUri nor deadLetterUri in status field, this change actually did not do anything as the newly added deadLetterUri is removed anyway.

Expected behavior
A clear and concise description of what you expected to happen.

  • Status for resolved dead letter sink URI correctly conforms to specification (use deadLetterSinkUri instead of deadLetterUri)
  • CRD for Broker and Trigger contains deadLetterSinkUri in status

To Reproduce
Steps to reproduce the behavior.

  1. Install Knative Eventing 0.25, MTChannelBasedBroker 0.25 and InMemoryChannel 0.25
  2. Create a trigger with deadLetterSink delivery option
  3. Trigger is resolved without deadLetterUri
  4. Manually add deadLetterUri to Trigger CRD
  5. Trigger is resolved with deadLetterUri

Knative release version

0.25

Additional context
Add any other context about the problem here such as proposed priority

@knguyen0125 knguyen0125 added the kind/bug Categorizes issue or PR as related to a bug. label Aug 18, 2021
@pierDipi
Copy link
Member

Hi @knguyen0125 👋, thanks for reporting!

Since you find the fix (4. Manually add deadLetterUri to Trigger CRD), can you please create a PR to fix this issue?

The Trigger CRD is in https://github.com/knative/eventing/blob/main/config/core/resources/trigger.yaml

/good-first-issue
/area brokers

@knative-prow-robot
Copy link
Contributor

@pierDipi:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

Hi @knguyen0125 👋, thanks for reporting!

Since you find the fix (4. Manually add deadLetterUri to Trigger CRD), can you please create a PR to fix this issue?

The Trigger CRD is in https://github.com/knative/eventing/blob/main/config/core/resources/trigger.yaml

/good-first-issue
/area brokers

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added area/brokers good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Aug 18, 2021
@lionelvillard lionelvillard added this to the v0.26.0 milestone Aug 18, 2021
@benmoss
Copy link
Member

benmoss commented Aug 18, 2021

/assign

@benmoss
Copy link
Member

benmoss commented Aug 19, 2021

/reopen

we still need to add a resolved DeadLetterSinkURI to the broker status

@knative-prow-robot
Copy link
Contributor

@benmoss: Reopened this issue.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@lionelvillard
Copy link
Member

@benmoss what the status on the one?

@benmoss benmoss removed their assignment Sep 20, 2021
@benmoss
Copy link
Member

benmoss commented Sep 20, 2021

Not actively working on it, took myself off as assignee

@gabo1208
Copy link
Member

Is this a GA blocker by any means? @lionelvillard @salaboy

@lionelvillard
Copy link
Member

yes.

@gabo1208
Copy link
Member

/assign

@salaboy
Copy link
Member

salaboy commented Oct 1, 2021

@gabo1208 good stuff.. can you please keep me posted about this one as well

@gabo1208
Copy link
Member

gabo1208 commented Oct 5, 2021

this was fixed by @pierDipi here #5748

@gabo1208
Copy link
Member

gabo1208 commented Oct 5, 2021

It is fixed for the Triggers and is unclear for the Brokers so we should discuss this in a separate issue for the brokers i think.

@gabo1208
Copy link
Member

gabo1208 commented Oct 5, 2021

Since this issue is specific to Triggers, have been divided into two issues:

@devguyio devguyio changed the title deadLetterUri does not conform to specification Trigger deadLetterUri does not conform to specification Oct 6, 2021
@devguyio devguyio changed the title Trigger deadLetterUri does not conform to specification Trigger deadLetterUri does not conform to specification, should be deadLetterSinkUri Oct 6, 2021
@devguyio
Copy link
Contributor

devguyio commented Oct 6, 2021

@gabo1208 that makes sense, I'm closing this issue . Fixed by #5748

/close

@knative-prow-robot
Copy link
Contributor

@devguyio: Closing this issue.

In response to this:

@gabo1208 that makes sense, I'm closing this issue . Fixed by #5748

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/brokers good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants