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

[2092271] CephFS-based VM status changes to "paused" after migration

XMLWordPrintable

    • 8
    • False
    • Hide

      None

      Show
      None
    • False
    • CLOSED
    • Release Notes
    • When you use two pods with different SELinux contexts, VMs with the ocs-storagecluster-cephfs storage class no longer fail to migrate. (BZ#2092271)
    • Bug Fix
    • Done
    • ---
    • ---
    • CNV Virtualization Sprint 225, CNV Virtualization Sprint 226, CNV Virtualization Sprint 227, CNV Virtualization Sprint 228, CNV Virtualization Sprint 229, CNV Virtualization Sprint 230, CNV Virtualization Sprint 238
    • Medium
    • No

      Description of problem:
      Failed to migrate VM with ocs-storagecluster-cephfs and the VM's status is changed to Paused after migration

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

      How reproducible:
      100%

      Steps to Reproduce:
      1. Start a VM form DV with storage class: ocs-storagecluster-cephfs

      1. oc create -f asb-vm-dv-ocs-cephfs.yaml
        2. Login to VM, touch file: migration
        3. Try to migrate the VM in web console by clicking "Migrate Node to Node",
        the VM is not migrated and the status is changed to Paused.
      1. oc get pod -o wide|grep virt-launcher| grep cephfs
        virt-launcher-asb-vm-dv-ocs-cephfs-dg747 1/1 Running 0 46s 10.129.1.92 dell-per730-64.lab.eng.pek2.redhat.com <none> 0/1
        virt-launcher-asb-vm-dv-ocs-cephfs-wfft5 1/1 Running 0 2m1s 10.128.1.61 dell-per730-63.lab.eng.pek2.redhat.com <none>
      1. oc get pod -o wide|grep virt-launcher| grep cephfs
        virt-launcher-asb-vm-dv-ocs-cephfs-dg747 0/1 Completed 0 71s 10.129.1.92 dell-per730-64.lab.eng.pek2.redhat.com <none> 0/1
        virt-launcher-asb-vm-dv-ocs-cephfs-wfft5 1/1 Running 0 2m26s 10.128.1.61 dell-per730-63.lab.eng.pek2.redhat.com <none>
      1. oc rsh virt-launcher-asb-vm-dv-ocs-cephfs-wfft5
        sh-4.4# virsh list --all
        Id Name State
        ---------------------------------------------------
        1 openshift-cnv_asb-vm-dv-ocs-cephfs paused
      1. mount|grep cephfs
        172.30.225.152:6789,172.30.162.143:6789,172.30.149.241:6789:/volumes/csi/csi-vol-a604ad71-e17e-11ec-93c3-0a580a82017d/484a041a-0d62-43da-bcfe-218c2985be1f on /run/kubevirt-private/vmi-disks/rootdisk type ceph (rw,relatime,seclabel,name=csi-cephfs-node,secret=<hidden>,acl,mds_namespace=ocs-storagecluster-cephfilesystem)

      4. Get the error messages:
      "server error. command Migrate failed: "migration job 60df6743-158c-4afd-b07f-01e1f7c6b33d already executed, finished at 2022-06-01 07:46:51.413073411 +0000 UTC, completed: true, failed: true, abortStatus: "

      Actual results:
      In step3: Failed to migrate the VM and the VM status is changed to paused

      Expected results:
      In step3: Migrate VM successfully, or forbid this operation if it's not supported

      Additional info:

      • asb-vm-dv-ocs-cephfs.yaml
      • /var/log/libvirt/qemu/openshift-cnv_asb-vm-dv-ocs-cephfs.log

            jelejosne Jed Lejosne
            chhu@redhat.com Chenli Hu
            Kedar Bidarkar Kedar Bidarkar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: