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

helm operator upgrade is happening continuously without any trigger #6233

Closed
malli31 opened this issue Dec 25, 2022 · 10 comments
Closed

helm operator upgrade is happening continuously without any trigger #6233

malli31 opened this issue Dec 25, 2022 · 10 comments
Assignees
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. triage/needs-information Indicates an issue needs more information in order to work on it.
Milestone

Comments

@malli31
Copy link

malli31 commented Dec 25, 2022

I am seeing strange issue with Helm operator,
Installed helm operator setup and the tried installing
CR , after successful installation, Immediate upgrade is happening
and this process continuing , I am seeing below logs in operator pod continuously

{"level":"info","ts":1671986485.61458,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986545.2212965,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986606.602362,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986667.6448646,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986728.6824412,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986789.7362242,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}

@malli31
Copy link
Author

malli31 commented Dec 25, 2022

Seeing this especially with helm-operator sdk 1.25.3

@varshaprasad96
Copy link
Member

@malli31 Can you provide more details on what you mean by "immediate upgrade is happening". If possible, can you also point us towards your repository so that we can look at the code. Also, what is the version of operator-sdk you are using?

@varshaprasad96 varshaprasad96 added the triage/needs-information Indicates an issue needs more information in order to work on it. label Jan 9, 2023
@varshaprasad96 varshaprasad96 added this to the Backlog milestone Jan 9, 2023
@malli31
Copy link
Author

malli31 commented Jan 10, 2023

Dear @varshaprasad96 @laxmikantbpandhare

Thanks for responding,
helm operator sdk version we are using is 1.25.3
if we revert to 1.22.x working as expectred, anythign specific changed in 1.25.3
in operator pod log seeing Upgraded release info
{"level":"info","ts":1671986485.61458,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986545.2212965,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986606.602362,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}
{"level":"info","ts":1671986667.6448646,"logger":"helm.controller","msg":"Upgraded release","namespace":"caapm","name":"uma-monitor","apiVersion":"ca.broadcom.com/v1alpha1","kind":"UniversalMonitoringAgent","release":"uma-monitor","force":false}

please find git url where our metadata is present

https://github.com/redhat-openshift-ecosystem/certified-operators/tree/main/operators/uma-operator/2022.11.3

this is metadata that we used from our helm charts, let me know if you want ful helm-charts code?

@malli31
Copy link
Author

malli31 commented Jan 10, 2023

If you want to try our operator in kubernetes you can install from
https://packages.broadcom.com/artifactory/apm-agents/uma/2022.11.0.13-1/uma-operator.tar.gz
untar uma-operator.tar.gz and go to uma-operator folder and run below commands,

kubectl create ns caapm
kubectl create -f setup -n caapm
kubectl create -f uma_cr.yaml -n caapm

and try to delete uma_cr jus installed
kubectl delete -f uma_cr.yaml -n caapm

its struck forever, and seeing reconisile error in uma-operator-*** pod,

also before running delete cr, we are continuously seeing Upgraded release info in uma-operator logs
and becuase of this i suspect sh.helm.release.v1.uma-monitor.v19 this hel secret versions are changin and this may be causing the reconsile errors?

If you want to insall in Openshift 4.11 jus go to operator hub and search for uma and install

@laxmikantbpandhare
Copy link
Member

thank you @malli31 for a detailed explanation. I will take a look into it.

@malli31
Copy link
Author

malli31 commented Jan 16, 2023

@laxmikantbpandhare any update on this, please we are not able to delete cr

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 17, 2023
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 17, 2023
@openshift-bot
Copy link

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci
Copy link

openshift-ci bot commented Jun 17, 2023

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/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.

@openshift-ci openshift-ci bot closed this as completed Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

4 participants