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

[2122990] VMExport should check APIGroup

XMLWordPrintable

    • Storage Core Sprint 226, Storage Core Sprint 227
    • Medium

      Description of problem:
      To create VMExport object we need to specify the APIGroup of exported object

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

      How reproducible:
      Always

      Steps to Reproduce:
      1. Create a VM
      2. Create a VMSnapshot
      3. Create a VMExport for VMSnapshot without specifying the APIGroup

      $ cat vmexport-snapshot.yaml
      apiVersion: export.kubevirt.io/v1alpha1
      kind: VirtualMachineExport
      metadata:
      name: export-vmsnapshot
      spec:
      source:
      kind: VirtualMachineSnapshot
      name: my-vmsnapshot
      tokenSecretRef: virt-export-token

      Actual results:
      The VMExport was created, but it is not Ready and doesn't show any error

      $ oc get virtualmachineexport
      NAME SOURCEKIND SOURCENAME PHASE
      export-vmsnapshot VirtualMachineSnapshot my-vmsnapshot

      Expected results:
      VMExport will fail to create saying APIGroup needs to be specified

            rhn-support-awels Alexander Wels
            jpeimer@redhat.com Jenia Peimer
            Jenia Peimer Jenia Peimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: