I would like to introduce an escape hatch for stopping a VM. This is particularly important for window vms which have a `terminationGracePeriodSeconds` set to 3600 seconds to accommodate updates on shutdown. This new command would allow the user to skip over the defined grace period and instead of waiting for the shutdown would immediately run `KillVirtualMachine` which runs `virsh destroy --graceful` on the vim.
Some options discussed for this command:
virtctl destroy <vm>
aligns with `virsh destr0y` which is what the command essentially does
virtctl kill <vm>
virtctl stop <vm> --force --graceperiod 0
aligns with `virtctl restart --force --graceperiod 0`
Adding this flag would have the addition “feature” add of allowing the user to easily update the terminationGracePeriodSeconds for the vmi on stop to whatever they desire
I would like to introduce an escape hatch for stopping a VM. This is particularly important for window vms which have a `terminationGracePeriodSeconds` set to 3600 seconds to accommodate updates on shutdown. This new command would allow the user to skip over the defined grace period and instead of waiting for the shutdown would immediately run `KillVirtualMachine` which runs `virsh destroy --graceful` on the vim.
Some options discussed for this command:
virtctl destroy <vm>
aligns with `virsh destr0y` which is what the command essentially does
virtctl kill <vm>
virtctl stop <vm> --force --graceperiod 0
aligns with `virtctl restart --force --graceperiod 0`
Adding this flag would have the addition “feature” add of allowing the user to easily update the terminationGracePeriodSeconds for the vmi on stop to whatever they desire
The workflow would be the same as the `virtctl stop` workflow with the addition of updating the VMIs spec `terminationGracePeriodSeconds` to 0. This would then skip the “graceful” shutdown part (https://github.com/kubevirt/kubevirt/blob/master/pkg/virt-handler/vm.go#L1973) and instead kill the VMI.
--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/CAEg990RkSeAafNei28WRDH%3D539JnVSKw7ZqXeEP7TYa5a6WdBQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/CAHOEP5510trxxFgm1%3DD9i%3DHEpjL0vqOqkct2_zrW_j%3DRPNKDxA%40mail.gmail.com.