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

registry-[planname] will not be removed on the source #681

Open
rbaumgar opened this issue Feb 19, 2020 · 4 comments
Open

registry-[planname] will not be removed on the source #681

rbaumgar opened this issue Feb 19, 2020 · 4 comments
Labels
icebox General backlog kind/bug Categorizes issue or PR as related to a bug.

Comments

@rbaumgar
Copy link

rbaumgar commented Feb 19, 2020

when you do a stage or migrate on the source cluster a pod with the name registry-[planname]-... will be created.
This pod will often not be removed, even when the plan will be deleted on mig-ui.
This leads to many unused pod on the source cluster when you create and use many plan.
Seen in OCP 4.2 and 4.3. CAM version 1.1.1

@eriknelson
Copy link
Contributor

@rbaumgar Is your expectation that the source registry pod is closed at the conclusion of a stage or a migrate, in both an error or success scenario?

@sseago Unsure if this belongs in the controller repo or in the UI repo, I'm thinking this somewhat straddles both. We should define what the expected behavior here is under specific scenarios and can file implementation issues once that's clearly expressed.

@eriknelson eriknelson added kind/bug Categorizes issue or PR as related to a bug. icebox General backlog labels Feb 28, 2020
@sseago
Copy link

sseago commented Feb 28, 2020

The pod gets removed when the plan is closed. We had a lot of back-and-forth discussion around how to make sure plans get closed before removal. I'm not quite sure where the current functionality is here, but I thought the UI closed the plan before deleting it, while the API does not force closure before removal.

@sseago
Copy link

sseago commented Feb 28, 2020

We no longer automatically close plans before deletion at the API level because that led to our finalizer hung namespace problem. I think at this point, the easiest thing would be to enforce closure before removal in the UI and document that any API-level plan deletion actions must be done after closing the plan. This becomes a bigger issue once we actually implement the cleanup actions on plan closure discussed in #679

@sseago
Copy link

sseago commented Feb 28, 2020

"Is your expectation that the source registry pod is closed at the conclusion of a stage or a migrate, in both an error or success scenario" -- we should not delete this upon stage or migrate. With incremental migrations, the same migration registry would be used for each migration on a migplan. The current controller code creates the registry on plan open and deletes it on plan closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
icebox General backlog kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants