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

Updating the monitoring namespace in the DSCI CR leaves resources running #455

Closed
lugi0 opened this issue Aug 21, 2023 · 11 comments
Closed
Assignees
Labels
bug Something isn't working rhods-2.6

Comments

@lugi0
Copy link

lugi0 commented Aug 21, 2023

Describe the bug
Updating the monitoring namespace in the DSCI CR will trigger the creation of new monitoring pods in the new namespace, but the old namespace will not be delete and the pods will be left running there

To Reproduce
Steps to reproduce the behavior:

  1. Go to DSCI CR
  2. Enable monitoring in a namespace
  3. Wait for monitoring pods/resources to be deployed in that namespace
  4. Update DSCI CR to point to new monitoring namespace
  5. Wait for monitoring pods/resources to be created in new namespace
  6. See old pods still running in the old monitoring namespace

Expected behavior
old pods are stopped, resources are removed, optionally namespace is deleted (not sure, might point to a namespace the user wants to keep)

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@lugi0 lugi0 added the bug Something isn't working label Aug 21, 2023
@VaishnaviHire
Copy link
Member

Note: This is same for applicationsNamespace as well.

An expected solution here is to ensure, application pods are cleaned up from the old namespace. We should not be deleting the previous namespace.

@zdtsw zdtsw self-assigned this Sep 19, 2023
@zdtsw
Copy link
Member

zdtsw commented Sep 19, 2023

so the scope for this ticket is:
if we change applicationnamespace or monitoringnamespace, operator should keep the old namespace, but delete all resource in it.
correct?

@VaishnaviHire
Copy link
Member

Correct, delete the components that were enabled.

@zdtsw
Copy link
Member

zdtsw commented Nov 3, 2023

why add rhods-2.4 to this ticket? @dchourasia

@zdtsw
Copy link
Member

zdtsw commented Nov 6, 2023

i think part of this issue has been done in #637 for application namespace.
but not for the monitoring namespace.

@lugi0
Copy link
Author

lugi0 commented Nov 6, 2023

@zdtsw Can you confirm this should not be tracked as "Ready for QA" in 2.4?

@zdtsw
Copy link
Member

zdtsw commented Nov 6, 2023

@zdtsw Can you confirm this should be tracked as "Ready for QA" in 2.4?

i dont think the scope of this issue is completely covered , also the "application" part did not included in downstream 2.4. so the "rhods-2.4" label should be removed.

@zdtsw
Copy link
Member

zdtsw commented Dec 4, 2023

did a test based on the current logic which already have "cleanup missing resourced in DSC" part.
changing namespace does not get resourced in the old namespace get cleaned up.

in our component logic, it is purely if enabled.
so a change namespace is not == to set to disable then enable again, so the cleanup wont be triggered by the reconcile.

@zdtsw zdtsw added the rhods-2.6 label Dec 4, 2023
@zdtsw
Copy link
Member

zdtsw commented Dec 5, 2023

2 cents from me:

do we really need to support this configable namespace?
e.g the integration feature we have with servicemesh and serving, namespace is fixed even users can modify it from API or OCM but this is only gonna break the feature.
unless this is a requirement that user can config monitoring and application namespace from the default one,
why should we add support for this.
rather than use documenation to mention this , a validation on the operator logic, say this value cannot be changed will be much simple.

@AjayJagan
Copy link
Contributor

moved this issue to JIRA ref: https://issues.redhat.com/browse/RHOAIENG-403

@AjayJagan
Copy link
Contributor

closing this as it is migrated to the JIRA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rhods-2.6
Projects
Status: Done
Status: No status
Status: Done
Development

No branches or pull requests

5 participants