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

Changing configOverrides doesn't restart NiFi pods #531

Open
chris922 opened this issue Nov 13, 2023 · 3 comments
Open

Changing configOverrides doesn't restart NiFi pods #531

chris922 opened this issue Nov 13, 2023 · 3 comments
Labels

Comments

@chris922
Copy link

Affected version

23.7

Current and expected behavior

When I add a configOverrides entry to the NifiCluster resource the config-map -node-default will get updated, but as the pod doesn't restart the update doesn't have any effect.

I would expect that the operator ensures the pod will be restarted, so that the new config override will be active.

Possible solution

I think that's a usual issue with Kubernetes apps that ConfigMaps will be updated but the updates are not reflected inside the pod. There are several solutions available, e. g. kustomize appends a kind of hash to the ConfigMap name and has to update the deployment with the new name to force a restart of the pods.

I don't have any explicit solution here.

Additional context

No extra context, but the documentation is also a bit hard to understand in this regards (https://docs.stackable.tech/home/stable/nifi/usage_guide/configuration-environment-overrides). I was not sure where to put the configOverrides properties.. Looking at the CRD I found out I have to put it below nodes.

Environment

Client Version: v1.27.3
Kustomize Version: v5.0.1
Server Version: v1.26.8+k3s1
Stackable Version 23.7
NiFi product version: 1.21.0

Would you like to work on fixing this bug?

None

@lfrancke
Copy link
Member

Thanks for the feedback.
@fhennig can you look at the docs for this one?

This is known behavior. Someone will get back to you tomorrow morning. Sorry about that.

@fhennig
Copy link
Contributor

fhennig commented Nov 14, 2023

@lfrancke The docs are already improved in the nightly version, there it already shows that the configOverrides go below nodes.

@sbernauer
Copy link
Member

sbernauer commented Nov 14, 2023

Hi @chris922, many thanks for your feedback!

we are aware of changing ConfigMaps/Secrets not resulting in a Pod restart. We actually have a solution for this, the restart-controller.
It can be enabled by adding the restarter.stackable.tech/enabled label on a StatefulSet. We have not enabled it yet on most of the products, as we currently have a problem described in stackabletech/commons-operator#111, which is rather complex to fix.
Once we have fixed the problem we will enable the restart-controller on all products and it should work as expected.

Regarding the docs for configOverrides: We have actually reworked and improved them since 23.7, they are currently in the nightly version and will be part of 23.11. You can find the current nightly version here: https://docs.stackable.tech/home/nightly/nifi/usage_guide/configuration-environment-overrides. There is also the concepts page on overrides: https://docs.stackable.tech/home/nightly/concepts/overrides#config-overrides
Do they do a better job of documenting the feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants