-
Notifications
You must be signed in to change notification settings - Fork 611
Error on Triggers during upgrade: statefulsets.apps "kafka-broker-dispatcher" not found
#8535
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
Comments
The Knative Eventing Broker for apache kafka in 1.13 is using deployments: While on 1.14 they are statefulsets: Release Notes:
|
@matzew Thanks! That explains why it's looking for a Stateful Set. Do you know what might be causing it not to be created as ons? It still exists and gets created as a deployment. Is there any config setting or other action I need to take to trigger this change? |
Are you on Eventing Kafka Broker 1.14? |
I have my apiVersion: operator.knative.dev/v1beta1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
version: 1.14.0 And it shows as ready: $ kubectl get knativeeventing -n knative-eventing
NAME VERSION READY REASON
knative-eventing 1.14.0 True These are the deployments in its namespace: $ kubectl get deployments -n knative-eventing
NAME READY UP-TO-DATE AVAILABLE AGE
eventing-controller 1/1 1 1 39h
eventing-webhook 1/1 1 1 39h
imc-controller 1/1 1 1 39h
imc-dispatcher 1/1 1 1 39h
kafka-broker-dispatcher 1/1 1 1 309d
kafka-broker-receiver 1/1 1 1 317d
kafka-controller 1/1 1 1 39h
kafka-webhook-eventing 1/1 1 1 39h
mt-broker-controller 1/1 1 1 39h
mt-broker-filter 1/1 1 1 39h
mt-broker-ingress 1/1 1 1 39h
pingsource-mt-adapter 0/0 0 0 39h and stateful sets $ kubectl get statefulsets -n knative-eventing
NAME READY AGE
kafka-source-dispatcher 1/1 39h This is all right after upgrading the
I get identical results on a full removal-reinstallation of the Knative operator (1.14.9) using the same versions listed here |
@matzew some other stuff I have tried since to no avail, in case it's meaningful
I have another cluster needing the same upgrades where I retried everything and got the same results. |
So your can you give details on the deployment of broker-dispatcher? Make sure it is on 1.14? I am not sure why the ugrade did not work. BTW. the Knative Kafka bits you have installed manually? |
@matzew Sorry for taking a bit to get back to you on this, I appreciate your help! I am keeping this particular This is the same image it was running while on 1.13.8, and I can see that it is the same image that it was running while we were on 1.12.0 since the deployment is pretty old, and there is only one RS for it which is the same age as the deployment. My The STS I do have, Given all of this I had the idea to try deleting those two possibly-stale deployments and retrying the upgrade which did not work. I then deleted the
And this stateful set
It seems weird to me that even a new status:
conditions:
- lastTransitionTime: "2025-03-30T21:46:30Z"
status: "True"
type: DependenciesInstalled
- lastTransitionTime: "2025-03-30T21:46:31Z"
status: "True"
type: DeploymentsAvailable
- lastTransitionTime: "2025-03-30T21:46:30Z"
status: "True"
type: InstallSucceeded
- lastTransitionTime: "2025-03-30T21:46:31Z"
status: "True"
type: Ready
- lastTransitionTime: "2025-03-30T21:45:57Z"
status: "True"
type: VersionMigrationEligible
manifests:
- /var/run/ko/knative-eventing/1.14.6
- /var/run/ko/eventing-source/1.14/kafka
observedGeneration: 1
version: 1.14.6 But the triggers are still failing with this error: status:
annotations:
group.id: knative-trigger-my-trigger
conditions:
- lastTransitionTime: "2025-03-30T21:43:34Z"
message: Did you install the data plane for this component?
reason: Data plane not available
status: "False"
type: BrokerReady
- lastTransitionTime: "2025-03-18T23:51:24Z"
status: "True"
type: DeadLetterSinkResolved
- lastTransitionTime: "2025-03-30T21:40:23Z"
message: 'failed to schedule consumers: statefulsets.apps "kafka-broker-dispatcher"
not found'
reason: Schedule
status: "False"
type: DependencyReady
- lastTransitionTime: "2025-03-30T21:46:00Z"
reason: authentication-oidc feature disabled
status: "True"
type: OIDCIdentityCreated
- lastTransitionTime: "2025-03-30T21:43:34Z"
message: Did you install the data plane for this component?
reason: Data plane not available
status: "False"
type: Ready
- lastTransitionTime: "2025-03-30T21:40:23Z"
status: "True"
type: SubscriberResolved
- lastTransitionTime: "2025-03-18T23:51:24Z"
status: "True"
type: SubscriptionReady
observedGeneration: 1 As far as other Kafka components, we have Kafka deployed in this cluster using Strimzi v0.45.0 and Kafka v3.9.0 |
I noticed that both the I ask because I have read a bunch of other issues in this repo where the poster shows that they only have a That being said I do not know how the stateful set would get the "wrong" name, I reviewed all of the config maps in the |
I am in the process of updating a Knative operator installation to the latest and am running into an issue with Triggers on the hop from 1.13.3 to 1.14.X with the Helm chart.
Describe the bug
After successfully updating the Knative Eventing and Serving resources the Triggers go into a state of
Ready=false
,Reason=Schedule
. The failure message is:This upgrade has also prompted the creation of new Consumer Groups, the original ones are named with a GUID and contain a reference to their source in the spec. The new ones are named
knative-trigger-<name-of-trigger
and are alsoReady=false
,Reason=Schedule
. The failure message is also:It is right that there is no Stateful Set by that name, there is a deployment by that name in the
knative-eventing
namespaceExpected behavior
Expected is full reconciliation as happened for the upgrade to 1.13.3
I am also seeing the same error in the logs of the
kafka-controller
deployment for the Knative Eventing resourceMy triggers are pretty simple as far as I know
I reviewed the release notes for every version of Knative 1.14.X and I did not see any deprecations or breaking changes but please let me know if you see me overlooking something.
To Reproduce
Knative release version
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: