Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-27510

[2182333] Cannot delete a VM immediately which is not actually boot inside

XMLWordPrintable

    • CNV Virtualization Sprint 238, CNV Virtualization Sprint 239, CNV Virtualization Sprint 240, CNV Virtualization Sprint 241, CNV Virtualization Sprint 243, CNV Virtualization Sprint 244
    • Important
    • No

      Description of problem:
      Create a VM which is not actually started normally inside, such as it stays on "No bootable device" page, delete this VM will hang until terminationGracePeriodSeconds is there.

      It does not make sense to waste so long time to delete a VM which is actually on boot loader page. Below command does not work, maybe it should have a power-off option.
      $ oc delete vm windows-aonsms --force --grace-period=0

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:
      1. create vm from the attached yaml
      2. delete the vm when it's running
      3.

      Actual results:
      it wait for 1 hour to get the VM deleted

      Expected results:
      The VM is deleted immediately since it's just on boot loader page

      Additional info:

              prnaraya@redhat.com Prita Narayan (Inactive)
              gouyang1@redhat.com Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: