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

Verify cleanup of odh-deployer resources. #587

Closed
Tracked by #461
VaishnaviHire opened this issue Oct 2, 2023 · 15 comments
Closed
Tracked by #461

Verify cleanup of odh-deployer resources. #587

VaishnaviHire opened this issue Oct 2, 2023 · 15 comments
Labels
rhods-1.35 rhods-2.4 Tracker Non-completable ticket; used for tracking work at a high level

Comments

@VaishnaviHire
Copy link
Member

VaishnaviHire commented Oct 2, 2023

This is a tracker issue to ensure there are no additional resources like duplicate secrets/configmaps as part of upgrade

odh-deployer repo: https://github.com/red-hat-data-services/rhods-operator

@VaishnaviHire
Copy link
Member Author

This is a subtask of #461. Not adding qe-verification label, since it will be tested as part of upgrade.

@lugi0
Copy link

lugi0 commented Nov 9, 2023

I see a problem with this, there are duplicate configmaps for DSPO-config and DSPO-parameters
image

@diegolovison
Copy link

cc @HumairAK

@HumairAK
Copy link

HumairAK commented Nov 9, 2023

Some context: These configmaps are created using the configmap generator via kustomize, they are treated as immutable (though without explicitly setting them so), each new kustomize build will generate a new configmap which gets mounted on DSPO to trigger a new deployment (just updating the existing configmap does not trigger new deployments).

Not sure what the proper process to help with clean up here ought to be. How is ODH V2 Operator cleaning up resources? Would adding labels here help?

@lugi0
Copy link

lugi0 commented Nov 9, 2023

AFAIK the controller of the component is responsible for creating / cleaning up its own resources, but let me ping @zdtsw @VaishnaviHire for a proper answer

@VaishnaviHire
Copy link
Member Author

Hi @lugi0 @HumairAK Wouldn't this be an issue with v1.x upgrades as well?

This is correct, operator would not be able to add owner references to the resources it doesn't create. So component controller needs to manage the generated resources.

AFAIK the controller of the component is responsible for creating / cleaning up its own resources, but let me ping @zdtsw @VaishnaviHire for a proper answer

@VaishnaviHire
Copy link
Member Author

@HumairAK Alternatively, manifests can be moved to kustomize v5 where params configmap is not generated

@zdtsw
Copy link
Member

zdtsw commented Nov 9, 2023

i was thinking about this, wont other component which uses configmap generator have the same problem?

@VaishnaviHire
Copy link
Member Author

Yeah, however this is not introduced by the upgrade path and would be fixed when #714 is completed

@HumairAK
Copy link

HumairAK commented Nov 9, 2023

AFAIK the controller of the component is responsible for creating / cleaning up its own resources
operator would not be able to add owner references to the resources it doesn't create

These resources are created when the dspo is deployed, it is my understanding the ODH operator does a kustomize build behind the scene, and applies the manifests, so it's ODH that creates these manifests.

@HumairAK Wouldn't this be an issue with v1.x upgrades as well?

Yes

@HumairAK Alternatively, manifests can be moved to kustomize v5 where params configmap is not generated

Not sure I follow, do you have a reference link? I haven't looked into v5 much.

We can just make these configmap names not generated with a hash suffix, but any changes to the configmap would require a manual restart of the deployment, it's not ideal, but if this is the formula the rest of the components are following, we can follow suite.

@lugi0
Copy link

lugi0 commented Nov 13, 2023

@VaishnaviHire @zdtsw @HumairAK is this planned to be fixed inside RC2? or are we moving it to a future release?

@zdtsw
Copy link
Member

zdtsw commented Nov 13, 2023

@VaishnaviHire @zdtsw @HumairAK is this planned to be fixed inside RC2? or are we moving it to a future release?

dont think we had logic updated from operator side for getting this in RC2

@VaishnaviHire
Copy link
Member Author

@lugi0 This is not included in RC2. It will be fixed as part of #714 . As Humair confirmed, this issue is not introduced in v1-->v2 upgrade

@HumairAK Kustomize v5 does not support param.env kubeflow/manifests#538

@hbelmiro
Copy link

@AjayJagan AjayJagan added the Tracker Non-completable ticket; used for tracking work at a high level label Dec 7, 2023
@VaishnaviHire
Copy link
Member Author

Moving discussion to jira as part of epic for #714

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rhods-1.35 rhods-2.4 Tracker Non-completable ticket; used for tracking work at a high level
Projects
Status: Done
Status: No status
Status: Done
Development

No branches or pull requests

8 participants