Description of problem: terminationGracePeriodSeconds value is set to 0 (force stop) in common templates. This value should be updated to a more relaxed value (K8S default is 30). Version-Release number of selected component (if applicable): cNV-2.4 How reproducible: 100% Steps to Reproduce: 1. Get common templates terminationGracePeriodSeconds value 2. 3. Actual results: $ oc get template -n openshift rhel8-server-medium-v0.10.0 -oyaml|grep -i grace terminationGracePeriodSeconds: 0 Expected results: terminationGracePeriodSeconds should be more relaxed Additional info:
I see this as a severe mistake on our templates. We basically tell all customers to create VMs in a configuration where we almost never shut them down properly. They have about one or two seconds until they are just killed. This puts from my perspective customer workloads at risk and I would not want to mark CNV as GA with this.
Yes, this is quite bad; it spells trouble to anyone creating a VM based on our templates and should be fixed ASAP. However, it is not new to 2.4.0, and can be fixed in a 2.4.1.
Created doc bug for 2.4.0 - bug 1861322
Upstream PR: https://github.com/kubevirt/common-templates/pull/164
With CNV 2.4.1, SSP 2.4.1-3: RHEL and Fedora templates have terminationGracePeriodSeconds: 180 Windows templates have terminationGracePeriodSeconds: 3600 Waiting for automation run output to pass the bug to verify.
Moving this bug to verified. Opened bug 1873402 - [RFE] Deletion of running VM - VMI may be deleted long after the VM; the VM should be present in the UI until the VMI is deleted With the updated terminationGracePeriod, VMI may still be running after the VM was deleted (up to terminationGracePeriod timeout).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Virtualization 2.4.1 images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:3629