-
Notifications
You must be signed in to change notification settings - Fork 637
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
Config changes from AWX Custom Resource do not translate to AWX Deployment #1275
Comments
@danielmorillas I tested this out locally deploying with the 1.2.0 awx-operator helm chart, then upgrading to 1.3.0, and it looks like the AWX object's extra_settings does get updated. Here are the steps I took. Note that AWX.enabled must be set to Create a myvalues.yaml file:
Install an older version of the awx-operator:
Wait for AWX to fully deploy. Check to see that MAX_PAGE_SIZE is set correctly on the AWX CR's spec.
Modify myvalues.yaml so the MAX_PAGE_SIZE setting has a value of "333"
Now check to see that the value was updated on the spec:
|
Hey, For sure AWX object is updated, if you execute helm upgrade with "--debug" option you will see that at the end AWX object will include the new changes, but there's no template updated by helm upgrade (--debug will show you) Instead of that change, I propose you test (it could be good any change that then you could see in the UI) with adding in values.yaml the following parameters: Note: If you don't add "image" parameter (instead of being the default value), "image_version" parameter won't be updated (I tested some time ago and I needed to dig into awx templates and need both parameters in values.yaml) Same case updating for i.e LDAP values, AWX object is updated but not its configmap and no change is added to AWX instance. Note: I run this deployment in a GitOps environment using fluxCD, so I noticed after committing that no changes that I wanted to update were applied and after digging into it I realized that the problem was that the helm upgrade command that executed fluxCD to apply changes, for that reason I went through helm upgrade directly to see what's happened with it.
So it is checking for 12 resources changes... If I check the templates I see 13 templates (awx-deploy.yaml is the only one that it is not being checked above - in helm upgrade command-, could it be the issue?):
So AWX object is updated but this is not triggering any change in the current AWX instance deployed. I hope this clarifies my issue :) |
@danielmorillas, @rooftopcellist this issue still persists on an Openshift environment, with the AWX Operator installed through Operator Hub.
I am trying to add new organizations using the following LDAP config, cm is updated but new Deployment is not rolled out :
|
I think it's important to separate out helm's role here versus the operator itself. The helm |
Hey, yeah you are right. I think it is updated as expected but there is no rollout from the controller and I guess it should be once AWX resource is updated. The second output only shows the current templates for the helm chart. |
We have the same issue, running Operator 1.4.0 in a Kubernetes 1.24.6 cluster Rename issue / Open new issue?We are using kustomize instead of helm, so I would assume, it has nothing to do with either of them. Reproduce problemAt the moment we deploy our AWX instances (running in an OpenShift cluster) via
All resources are deployed as expected.
and repeating our
As long as the deployment resource remains untouched by our settings update, of course there is no trigger for a rolling update of pods. Our messy workaroundWe have been relying on forcing the recreation of most resources to make sure, every new setting really is propagated to our AWX pods. For obvious reasons we want to switch to a more kubernetes way of updating resource properties (Rolling update strategy). So we are very interested in a solution and are happy to provide more info if needed. |
@danielmorillas thanks for your thumbsup - if you agree, could you rename this issue to 'Config changes from AWX Custom Resource do not translate to AWX Deployment' (or something similar), so the title really says what this is about? :) |
Hey, Is there any news about this issue or does anyone know if it is gonna be something that it should add? |
Hey, Is anyone working on this? We are stuck due to this thing, would be great to know future plans Thanks! |
We are still hoping to get this feature as well. :-/ |
Please confirm the following
Bug Summary
This is a continuation of the proposed bug #1239.
I tested the new version v1.3.0 following the same steps and same result.
In the end, helm upgrade is not detecting any update in AWX kind object and they are only detecting if you manually delete the awx deployment that then respin up the awx pod with the new changes. This must be done automatically if there are changes in the AWX object.
I do not add more info because it is exactly the same issue as in the above link.
I am opening a new issue as @rooftopcellist suggested to me in the case that their patch did not work.
AWX Operator version
1.3.0
AWX version
21.13.0
Kubernetes platform
kubernetes
Kubernetes/Platform version
1.23 kind v0.11.0 go1.16.4 linux/amd64
Modifications
no
Steps to reproduce
Same than in #1239
Expected results
same than in #1239
Actual results
Same than in #1239
Additional information
#1239
Operator Logs
#1239
The text was updated successfully, but these errors were encountered: