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

[CNV] Warn / reject disk delete if the disk is shared or attached to another VM.

XMLWordPrintable

    • Incidents & Support
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • CNV Storage Sprint 284
    • None

      Description of problem:

      If the disk from one VM is attached to another VM using use existing PVC and when the source VM is deleted, the disk from other VM will also be deleted. 
      
      
      

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

      OCP 4.16

      How reproducible:

      Always

      Steps to Reproduce:

      1. I create a Linux VM using a template that takes the boot source disk from Registry.
      2. I create a new disk (PVC is created) to the VM (make it persistent).
      3. Mount to it in the VM and read and write to it.
      4. Create a new  Linux VM from the same template
      5. Attach the new disk from the old VM to the new one VM and make it persistent.
      6. Mount to it in the new VM and read and write to it.
      7. Delete the old VM .
      8. The disk from new VM is also delete and rebooting vm will lose the disk. 

      Actual results:

      Disk deleted when attached to two vms

      Expected results:

      Disk should not be deleted or give warning that it is attached to another VM or something like that. 

      Additional info:

       

        1. shared-pvc.yaml
          0.2 kB
          Howard Gao
        2. vm1.yaml
          1 kB
          Howard Gao
        3. vm2.yaml
          1 kB
          Howard Gao
        4. screenshot-1.png
          91 kB
          Yan Du

              gaohoward Howard Gao
              rhn-support-usurse Ulhas Surse
              Yan Du Yan Du
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: