Bug 1874480
Summary: | [Common templates] Deletion of running VM - VMI may be deleted long after the VM; foregroundDeletion should be added to the templates | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Ruth Netser <rnetser> |
Component: | SSP | Assignee: | Karel Šimon <ksimon> |
Status: | CLOSED CANTFIX | QA Contact: | Israel Pinto <ipinto> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.4.1 | CC: | cnv-qe-bugs, fdeutsch, oyahud, rmohr |
Target Milestone: | --- | ||
Target Release: | 2.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-09-14 15:04:58 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ruth Netser
2020-09-01 13:12:17 UTC
foregroundDeletion is a nice idea on the VM in the template - from a user perspective we should just ensure that on the VM's phase goes into an "end game" state (Deletion, Termination, or so) in order to signal that the deleation is in progress. The VM should not stay in the running phase while we do foreground deletion. The reason is that they system should signal the user that his request got noticed and that it's processing this request (delete VM). Omer, if we use foregroundDeletion on a VM, what phase will the VM be in once you delete it? In order to support this, we'd need KubeVirt to set ownerReference.blockOwnerDeletion=true. Is this correct, Roman? (In reply to Fabian Deutsch from comment #2) > In order to support this, we'd need KubeVirt to set > ownerReference.blockOwnerDeletion=true. > > Is this correct, Roman? Yes. This is already the case. But this has only an effect if you choose the foreground delete strategy when you do the DELETE call. (In reply to Fabian Deutsch from comment #1) > foregroundDeletion is a nice idea on the VM in the template - from a user > perspective we should just ensure that on the VM's phase goes into an "end > game" state (Deletion, Termination, or so) in order to signal that the > deleation is in progress. > The VM should not stay in the running phase while we do foreground deletion. > > The reason is that they system should signal the user that his request got > noticed and that it's processing this request (delete VM). > > Omer, if we use foregroundDeletion on a VM, what phase will the VM be in > once you delete it? Note that the phase will not reflect that. The UI has to look at the deletion timestamp. The deletion of a resource can very well be in progress, while the VM is definitely still running. Ok, thanks. Then this is nothing we can do in the templates, but which can only be done by the caller, the UI in this case, and bug 1873402 is taking care of this already. Thus nothing we can do with this bug. Oh wait, manually putting the foregroundDeletion finalizer on the VM template may still work. I am just not sure if we are then in uncharted territory. Like the DELETE call could actually remove the finalizer since it is normally also the one which adds it. |