Bug 2169955 - VMExport manifests were created for PVC source, but shouldn't have
Summary: VMExport manifests were created for PVC source, but shouldn't have
Keywords:
Status: ASSIGNED
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.14.0
Assignee: Alexander Wels
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-15 08:35 UTC by Jenia Peimer
Modified: 2023-08-09 18:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-25557 0 None None None 2023-02-15 08:35:55 UTC

Description Jenia Peimer 2023-02-15 08:35:32 UTC
Description of problem:
VMExport manifests were created for PVC source, but shouldn't have

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

How reproducible:
Always

Steps to Reproduce:
1. Create a DV
2. Create a VMExport for PVC
3. See the VMExport object has manifests
   $ oc get vmexport export-pvc -o jsonpath={.status.links.external.manifests}
   [{"type":"all","url":"https://virt-exportproxy-openshift-cnv.apps.sno02-cnvqe2-rdu2.cnvqe2.lab.eng.rdu2.redhat.com/api/export.kubevirt.io/v1alpha1/namespaces/default/virtualmachineexports/export-pvc/external/manifests/all"},{"type":"auth-header-secret","url":"https://virt-exportproxy-openshift-cnv.apps.sno02-cnvqe2-rdu2.cnvqe2.lab.eng.rdu2.redhat.com/api/export.kubevirt.io/v1alpha1/namespaces/default/virtualmachineexports/export-pvc/external/manifests/secret"}]

Actual results:
VMExport object has manifests

Expected results:
VMExport from PVC source should not contain manifests

Additional info:

$ cat dv-lvm.yaml
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
  name: dv-source
  annotations:
    cdi.kubevirt.io/storage.bind.immediate.requested: 'true'
spec:
  source:
      http:
         url: "<cirros_url>"
  storage:
    resources:
      requests:
        storage: 1Gi
    storageClassName: lvms-vg1
    volumeMode: Block

$ cat vmexport-pvc.yaml
apiVersion: export.kubevirt.io/v1alpha1
kind: VirtualMachineExport
metadata:
  name: export-pvc
spec:
  source:
    apiGroup: ""
    kind: PersistentVolumeClaim
    name: dv-source


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