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

[2221461] virtctl image-upload fails for WFFC storage with Populators

XMLWordPrintable

    • Important
    • No

      Description of problem:

      virtctl image-upload fails for WFFC storage:
      with --force-bind - should upload successfully
      without --force-bind - should report a proper error

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

      How reproducible:
      Always

      Steps to Reproduce:

      1. With --force-bind flag:

      $ virtctl image-upload dv cirros-dv-force-bind --image-path=./cirros-0.4.0-x86_64-disk.qcow2 --size=1Gi --storage-class=hostpath-csi-basic --insecure --force-bind
      PVC default/cirros-dv-force-bind not found
      DataVolume default/cirros-dv-force-bind created
      Waiting for PVC cirros-dv-force-bind upload pod to be ready...
      <GETS STUCK HERE FOR SOME TIME>
      timed out waiting for the condition

      $ oc get dv
      NAME PHASE PROGRESS RESTARTS AGE
      cirros-dv-force-bind PendingPopulation N/A 12m

      $ oc get dv cirros-dv-force-bind -oyaml
      apiVersion: cdi.kubevirt.io/v1beta1
      kind: DataVolume
      metadata:
      annotations:
      cdi.kubevirt.io/storage.bind.immediate.requested: ""
      cdi.kubevirt.io/storage.usePopulator: "true"

      2. Without --force-bind flag:

      $ virtctl image-upload dv cirros-dv --image-path=./cirros-0.4.0-x86_64-disk.qcow2 --size=1Gi --storage-class=hostpath-csi-basic --insecure
      PVC default/cirros-dv not found
      DataVolume default/cirros-dv
      created Waiting for PVC cirros-dv upload pod to be ready...
      <GETS STUCK HERE FOR SOME TIME>
      timed out waiting for the condition

      $ oc get dv
      NAME PHASE PROGRESS RESTARTS AGE
      cirros-dv PendingPopulation N/A 13m

      $ oc get dv cirros-dv -oyaml
      apiVersion: cdi.kubevirt.io/v1beta1
      kind: DataVolume
      metadata:
      annotations:
      cdi.kubevirt.io/storage.usePopulator: "true"

      Expected results:

      virtctl image-upload with --force-bind flag - uploaded successfully
      virtctl image-upload without --force-bind flag - reported a proper error

              skagan@redhat.com Shelly Kagan
              jpeimer@redhat.com Jenia Peimer
              Jenia Peimer Jenia Peimer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: