Bug 2203727 - [4.13.z] Missing virtctl vmexport download manifests command
Summary: [4.13.z] Missing virtctl vmexport download manifests command
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.13.1
Assignee: Alexander Wels
QA Contact: Jenia Peimer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-15 06:55 UTC by Jenia Peimer
Modified: 2023-08-28 08:07 UTC (History)
5 users (show)

Fixed In Version: v4.13.1.rhel9-91
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-16 14:10:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 9743 0 None Merged [release-0.59] Add virtctl vmexport manifest option 2023-05-31 11:23:18 UTC
Red Hat Issue Tracker CNV-28804 0 None None None 2023-05-15 06:57:03 UTC
Red Hat Product Errata RHSA-2023:4664 0 None None None 2023-08-16 14:10:10 UTC

Description Jenia Peimer 2023-05-15 06:55:05 UTC
Description of problem:
In 4.13 we can download manifests from VMExport, virtctl makes the process much easier

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

How reproducible:
Always

Steps to Reproduce:
1. Create a VMExport, try to download a manifest:
   virtctl vmexport download export --manifest --vm=example

Actual results:
Command not supported

Expected results:
Command supported, manifest downloaded

Comment 1 Jenia Peimer 2023-06-11 10:51:54 UTC
Verified on v4.13.1.rhel9-152

1. Created VM, stopped the VM
   $ oc get vm -A
     NAMESPACE       NAME                   AGE   STATUS    READY
     default         vm-cirros-source-ocs   22m   Stopped   False

2. $ virtctl vmexport download export --manifest --vm=vm-cirros-source-ocs --include-secret --output=manifest.yaml
     VirtualMachineExport 'default/export' created succesfully
     waiting for VM Export export status to be ready...

   $ oc get vmexport -A
     NAMESPACE   NAME        SOURCEKIND       SOURCENAME             PHASE
     default     export      VirtualMachine   vm-cirros-source-ocs   Ready

3. Copied the manifest.yaml to the target cluster, edited a namespace

4. In the target cluster:
   $ oc create -f manifest.yaml
     configmap/export-ca-cm-export created
     virtualmachine.kubevirt.io/vm-cirros-source-ocs created
     secret/header-secret-export created

   $ virtctl start vm-cirros-source-ocs -n target-export

   $ oc get vm -A
     NAMESPACE       NAME                   AGE   STATUS    READY
     target-export   vm-cirros-source-ocs   29m   Running   True

Comment 3 Adam Litke 2023-08-09 12:24:01 UTC
Jenia, can this bug be closed now?

Comment 4 Jenia Peimer 2023-08-09 12:57:21 UTC
Yes, this bug was Verified a long time ago, it should have been moved to RELEASE_PENDING by errata automation, and then CLOSED when the target version was released. 
There was probably an issue somewhere in this process. 

Dominik dholler, could you please check if there's anything we should do with this? Or can we just close the bug?

Comment 11 errata-xmlrpc 2023-08-16 14:10:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Virtualization 4.13.3 Images security and bug fix update), 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/RHSA-2023:4664


Note You need to log in before you can comment on or make changes to this bug.