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

Standalone KafkaSource #2089

Merged
merged 5 commits into from
May 4, 2022
Merged

Conversation

aavarghese
Copy link
Contributor

@aavarghese aavarghese commented Apr 12, 2022

Signed-off-by: aavarghese avarghese@us.ibm.com

Fixes #2046

Proposed Changes

  • Deploy just the KafkaSource v2 controller and new statefulset dispatcher (no receiver) for users of KakfaSource

Release Note

Deploy just the KafkaSource v2 controller and new statefulset dispatcher (no receiver) for users of KakfaSource 

@knative-prow
Copy link

knative-prow bot commented Apr 12, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/control-plane area/test labels Apr 12, 2022
@aavarghese aavarghese marked this pull request as ready for review April 12, 2022 22:23
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 12, 2022
@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #2089 (1287b0f) into main (47eb7f4) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##               main    #2089      +/-   ##
============================================
- Coverage     66.54%   66.52%   -0.03%     
+ Complexity      677      676       -1     
============================================
  Files           142      142              
  Lines          9141     9144       +3     
  Branches        196      196              
============================================
  Hits           6083     6083              
- Misses         2652     2654       +2     
- Partials        406      407       +1     
Flag Coverage Δ
java-unittests 82.54% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ontrol-plane/pkg/reconciler/consumer/controller.go 86.11% <66.66%> (-4.80%) ⬇️
...ispatcher/impl/http/WebClientCloudEventSender.java 60.46% <0.00%> (-2.33%) ⬇️
...a/broker/dispatcher/impl/RecordDispatcherImpl.java 90.44% <0.00%> (+0.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47eb7f4...1287b0f. Read the comment docs.

@knative-prow knative-prow bot requested a review from pierDipi April 12, 2022 22:38
@matzew
Copy link
Contributor

matzew commented Apr 13, 2022

/assign @matzew

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow knative-prow bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Apr 14, 2022
@aavarghese
Copy link
Contributor Author

aavarghese commented Apr 14, 2022

Getting this error

ansuvarghese$ k logs knative-kafka-storage-version-migrator--1-kxv4j -n knative-eventing
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.168510135Z","caller":"logging/config.go:116","message":"Successfully created the logger."}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.16868271Z","caller":"logging/config.go:117","message":"Logging level set to: info"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.168730257Z","caller":"logging/config.go:79","message":"Fetch GitHub commit ID from kodata failed","error":"open /var/run/ko/HEAD: no such file or directory"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.174438702Z","logger":"storage-migrator","caller":"migrate/main.go:60","message":"Migrating 2 group resources"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.174738273Z","logger":"storage-migrator","caller":"migrate/main.go:63","message":"Migrating group resource kafkasources.sources.knative.dev"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.277265501Z","logger":"storage-migrator","caller":"migrate/main.go:63","message":"Migrating group resource kafkachannels.messaging.knative.dev"}
{"severity":"EMERGENCY","timestamp":"2022-04-14T19:24:07.301721637Z","logger":"storage-migrator","caller":"migrate/main.go:65","message":"Failed to migrate: unable to fetch crd kafkachannels.messaging.knative.dev - customresourcedefinitions.apiextensions.k8s.io \"kafkachannels.messaging.knative.dev\" not found","stacktrace":"main.main\n\tknative.dev/pkg@v0.0.0-20220411234407-00c122e376d0/apiextensions/storageversion/cmd/migrate/main.go:65\nruntime.main\n\truntime/proc.go:255"}

because KafkaChannel CRD is not installed as part of kafka-source-bundle..... @pierDipi any ideas?

@knative-prow knative-prow bot added area/data-plane and removed lgtm Indicates that a PR is ready to be merged. labels Apr 14, 2022
@aavarghese
Copy link
Contributor Author

/lgtm

@pierDipi Sorry. Needed a few more changes for everything to work (b365c01). All is good with kafkasource now.

But, migrator jobs crashing fatally due to kafkachannel CRD missing in this source only setup (#2089 (comment))

@pierDipi
Copy link
Member

Getting this error

ansuvarghese$ k logs knative-kafka-storage-version-migrator--1-kxv4j -n knative-eventing
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.168510135Z","caller":"logging/config.go:116","message":"Successfully created the logger."}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.16868271Z","caller":"logging/config.go:117","message":"Logging level set to: info"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.168730257Z","caller":"logging/config.go:79","message":"Fetch GitHub commit ID from kodata failed","error":"open /var/run/ko/HEAD: no such file or directory"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.174438702Z","logger":"storage-migrator","caller":"migrate/main.go:60","message":"Migrating 2 group resources"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.174738273Z","logger":"storage-migrator","caller":"migrate/main.go:63","message":"Migrating group resource kafkasources.sources.knative.dev"}
{"severity":"INFO","timestamp":"2022-04-14T19:24:07.277265501Z","logger":"storage-migrator","caller":"migrate/main.go:63","message":"Migrating group resource kafkachannels.messaging.knative.dev"}
{"severity":"EMERGENCY","timestamp":"2022-04-14T19:24:07.301721637Z","logger":"storage-migrator","caller":"migrate/main.go:65","message":"Failed to migrate: unable to fetch crd kafkachannels.messaging.knative.dev - customresourcedefinitions.apiextensions.k8s.io \"kafkachannels.messaging.knative.dev\" not found","stacktrace":"main.main\n\tknative.dev/pkg@v0.0.0-20220411234407-00c122e376d0/apiextensions/storageversion/cmd/migrate/main.go:65\nruntime.main\n\truntime/proc.go:255"}

because KafkaChannel CRD is not installed as part of kafka-source-bundle..... @pierDipi any ideas?

Can we patch the storage version migrator to ignore resources that are not found?

control-plane/cmd/kafka-source-controller/main.go Outdated Show resolved Hide resolved
hack/data-plane.sh Outdated Show resolved Hide resolved
hack/data-plane.sh Outdated Show resolved Hide resolved
hack/data-plane.sh Outdated Show resolved Hide resolved
Signed-off-by: aavarghese <avarghese@us.ibm.com>
@aavarghese aavarghese force-pushed the issue#2046 branch 3 times, most recently from 7030f1a to 21be860 Compare May 2, 2022 22:35
@aavarghese
Copy link
Contributor Author

aavarghese commented May 2, 2022

@pierDipi latest changes for adding DP sourcev2 to bundle + release changes in aa8d0ba

Signed-off-by: aavarghese <avarghese@us.ibm.com>
hack/release-source.sh Outdated Show resolved Hide resolved
hack/release-source.sh Outdated Show resolved Hide resolved
Signed-off-by: aavarghese <avarghese@us.ibm.com>
@aavarghese aavarghese requested a review from pierDipi May 3, 2022 16:08
@pierDipi
Copy link
Member

pierDipi commented May 3, 2022

LGTM

Verify job is failing https://github.com/knative-sandbox/eventing-kafka-broker/runs/6276506322?check_suite_focus=true due to changes in vendor/k8s.io/code-generator/*

Signed-off-by: aavarghese <avarghese@us.ibm.com>
@aavarghese
Copy link
Contributor Author

LGTM

Verify job is failing https://github.com/knative-sandbox/eventing-kafka-broker/runs/6276506322?check_suite_focus=true due to changes in vendor/k8s.io/code-generator/*

Yeah. Reverting that codegen update to see if it resolves that job for this PR.

Signed-off-by: aavarghese <avarghese@us.ibm.com>
@aavarghese
Copy link
Contributor Author

/retest-required

@pierDipi
Copy link
Member

pierDipi commented May 4, 2022

/test upgrade-tests_eventing-kafka-broker_main

2 similar comments
@pierDipi
Copy link
Member

pierDipi commented May 4, 2022

/test upgrade-tests_eventing-kafka-broker_main

@aavarghese
Copy link
Contributor Author

/test upgrade-tests_eventing-kafka-broker_main

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Let's keep an eye on nightly releases (including checking what's inside yamls) so that we can capture any release problem early on.

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 4, 2022
@knative-prow
Copy link

knative-prow bot commented May 4, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aavarghese, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@aavarghese
Copy link
Contributor Author

Thanks!

Let's keep an eye on nightly releases (including checking what's inside yamls) so that we can capture any release problem early on.

/lgtm /approve

Absolutely. Will do these next few days. Thanks @pierDipi for all the reviews!

@aavarghese
Copy link
Contributor Author

/unhold

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 4, 2022
@knative-prow knative-prow bot merged commit 6138931 into knative-extensions:main May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane area/data-plane area/test lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standalone KafkaSource
3 participants