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

[2223411] Unable to create snapshot for VM with mounted second disk (PVC)

XMLWordPrintable

    • High
    • No

      Description of problem:
      Can't create a snapshot for VM with containerDisk and mounted PVC disk

      > $ oc get vmsnapshot --watch
      > NAME SOURCEKIND SOURCENAME PHASE READYTOUSE CREATIONTIME ERROR
      > snapshot-uninterested-cheetah VirtualMachine vm-fedora-with-pvc InProgress false
      > snapshot-uninterested-cheetah VirtualMachine vm-fedora-with-pvc Failed false

      > $ oc get vmsnapshot snapshot-uninterested-cheetah -o json | jq .status.conditions
      >[
      >.
      >

      { > "lastProbeTime": null, > "lastTransitionTime": "2023-07-17T17:32:10Z", > "reason": "snapshot deadline exceeded", > "status": "True", > "type": "Failure" > }

      >]

      With unmounted second disk the snapshot succesfully completed:

      > $ oc get vmsnapshot
      > NAME SOURCEKIND SOURCENAME PHASE READYTOUSE CREATIONTIME ERROR
      > snapshot-recent-flyingfish VirtualMachine vm-fedora-with-pvc Succeeded true 8s

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

      How reproducible:

      Steps to Reproduce:
      1. create VM with containerDisk (root) and PVC (second)
      2. go to the VM console
      3. create ext4 filesystem on the second disk -
      mkfs.ext4 /dev/vdb

      4. mount second disk -
      mkdir /mnt/test
      mount /dev/vdb /mnt/test

      5. create new file inside that folder with some text - e.g. vi /mnt/test/TEST_FILE
      6. try to make a snapshot

      Actual results:
      failed to create snapshot

      Expected results:
      snapshot created succesfully

      Additional info:

            alitke@redhat.com Adam Litke
            dshchedr@redhat.com Denys Shchedrivyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: