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

[4.17] virtctl vmexport download deletes the vmexport if --vm flag is used

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • CNV v4.17.0
    • CNV v4.17.0
    • Storage Platform
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.17.0.rhel9-524
    • ---
    • ---
    • Storage Core Sprint 258
    • Low
    • None

      Description of problem:

      virtctl vmexport, that was created earlier, 
      with --vm in the command gets deleted after download
      but without the --vm  flag it stays as expected

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

      4.17

      How reproducible:

      Always

      Steps to Reproduce:

      1. $ virtctl vmexport create vmexportname --vm=vm-cirros-source-ocs
      VirtualMachineExport 'default/vmexportname' created succesfully
      
      2. $ virtctl vmexport download vmexportname --vm=vm-cirros-source-ocs --output=disk.img
      Downloading file: 17.61 MiB [====>______________] 2.83 MiB p/s                                                                                                                                                                      
      Download finished succesfully
      VirtualMachineExport 'default/vmexportname' deleted succesfully 

      Actual results:

      vmexport, that was created earlier, gets deleted

      Expected results:

      vmexport, that was created earlier, does not get deleted

      Additional info:

      Without the --vm flag, the vmexport stays as expected

            [CNV-46255] [4.17] virtctl vmexport download deletes the vmexport if --vm flag is used

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (OpenShift Virtualization 4.17.0 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/RHEA-2024:8140

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (OpenShift Virtualization 4.17.0 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/RHEA-2024:8140

            Verified on CNV-v4.17.0.rhel9-579

            $ virtctl vmexport create vmexportname --vm=vm-cirros-source-ocs
            VirtualMachineExport 'default/vmexportname' created succesfully
            
            $ oc get vmexport
            NAME           SOURCEKIND       SOURCENAME             PHASE
            vmexportname   VirtualMachine   vm-cirros-source-ocs   Pending
            
            $ virtctl vmexport download vmexportname --vm=vm-cirros-source-ocs --output=disk.img
            Downloading file: 17.60 MiB [==>________________] 2.92 MiB p/s
            Download finished succesfully
             
            $ ll
            ...
            -rw-r--r--. 1 cloud-user cloud-user 18456729 Aug 28 05:33 disk.img
            
            $ oc get vmexport
            NAME           SOURCEKIND       SOURCENAME             PHASE
            vmexportname   VirtualMachine   vm-cirros-source-ocs   Ready

            Then I deleted the VMExport to see what happens when we just use download - vmexport gets created and deleted as expected:

            $ oc delete vmexport vmexportname
            virtualmachineexport.export.kubevirt.io "vmexportname" deleted
            
            $ virtctl vmexport download vmexportname --vm=vm-cirros-source-ocs --output=disk.img
            VirtualMachineExport 'default/vmexportname' created succesfully
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            waiting for VM Export vmexportname status to be ready...
            Downloading file: 17.60 MiB [==>________________] 2.91 MiB p/s                                                                                                                                                                                
            Download finished succesfully
            VirtualMachineExport 'default/vmexportname' deleted succesfully
            
            $ oc get vmexport
            No resources found in default namespace.

            Jenia Peimer added a comment - Verified on CNV-v4.17.0.rhel9-579 $ virtctl vmexport create vmexportname --vm=vm-cirros-source-ocs VirtualMachineExport ' default /vmexportname' created succesfully $ oc get vmexport NAME           SOURCEKIND       SOURCENAME             PHASE vmexportname   VirtualMachine   vm-cirros-source-ocs   Pending $ virtctl vmexport download vmexportname --vm=vm-cirros-source-ocs --output=disk.img Downloading file: 17.60 MiB [==>________________] 2.92 MiB p/s Download finished succesfully $ ll ... -rw-r--r--. 1 cloud-user cloud-user 18456729 Aug 28 05:33 disk.img $ oc get vmexport NAME           SOURCEKIND       SOURCENAME             PHASE vmexportname   VirtualMachine   vm-cirros-source-ocs   Ready Then I deleted the VMExport to see what happens when we just use download - vmexport gets created and deleted as expected: $ oc delete vmexport vmexportname virtualmachineexport.export.kubevirt.io "vmexportname" deleted $ virtctl vmexport download vmexportname --vm=vm-cirros-source-ocs --output=disk.img VirtualMachineExport ' default /vmexportname' created succesfully waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... waiting for VM Export vmexportname status to be ready... Downloading file: 17.60 MiB [==>________________] 2.91 MiB p/s                                                                                                                                                                                 Download finished succesfully VirtualMachineExport ' default /vmexportname' deleted succesfully $ oc get vmexport No resources found in default namespace.

            cnv-qe jira added a comment -

            A build that contains the fix PR(s) for this bug is available, moving status from MODIFIED to ON_QA.
            The first build that contains https://github.com/kubevirt/kubevirt/pull/12576 is CNV v4.17.0.rhel9-524.

            cnv-qe jira added a comment - A build that contains the fix PR(s) for this bug is available, moving status from MODIFIED to ON_QA. The first build that contains https://github.com/kubevirt/kubevirt/pull/12576 is CNV v4.17.0.rhel9-524 .

            All linked PR(s) of this bug have been merged, moving status from POST to MODIFIED.
            https://github.com/kubevirt/kubevirt/pull/12576 merged at 2024-08-20 10:00:26

            cnv-qe jira added a comment - All linked PR(s) of this bug have been merged, moving status from POST to MODIFIED. https://github.com/kubevirt/kubevirt/pull/12576 merged at 2024-08-20 10:00:26

              rh-ee-alromero Alvaro Romero
              jpeimer@redhat.com Jenia Peimer
              Jenia Peimer Jenia Peimer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: