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

[2237470] virtctl image-upload fails with "uploadproxy URL not found"

XMLWordPrintable

    • High
    • Yes

      Description of problem:
      virtctl image-upload dv fails

      Version-Release number of selected component (if applicable):
      CNV v4.14.0.rhel9-1869 (in v4.14.0.rhel9-1867 it worked fine)

      How reproducible:
      Always, on one deployed cluster with v4.14.0.rhel9-1869

      Steps to Reproduce:
      1. $ virtctl image-upload dv dv-ocs --image-path=./cirros-0.4.0-x86_64-disk.qcow2 --size=1Gi --storage-class=ocs-storagecluster-ceph-rbd --access-mode=ReadWriteMany --insecure --block-volume

      PVC default/dv-ocs not found
      DataVolume default/dv-ocs created
      Waiting for PVC dv-ocs upload pod to be ready...
      Pod now ready
      uploadproxy URL not found

      Actual results:
      error: uploadproxy URL not found

      Expected results:
      Uploading completed successfully

      Additional info:

      [cloud-user@ocp-psi-executor ~]$ oc get pods
      NAME READY STATUS RESTARTS AGE
      cdi-upload-prime-f88af4ef-9064-4762-a8c9-5f6138b868d1 1/1 Running 0 88s
      [cloud-user@ocp-psi-executor ~]$
      [cloud-user@ocp-psi-executor ~]$ oc logs cdi-upload-prime-f88af4ef-9064-4762-a8c9-5f6138b868d1
      I0905 14:57:32.246000 1 uploadserver.go:74] Running server on 0.0.0.0:8443
      [cloud-user@ocp-psi-executor ~]$
      [cloud-user@ocp-psi-executor ~]$ oc get dv
      NAME PHASE PROGRESS RESTARTS AGE
      dv-ocs UploadReady N/A 9m29s
      [cloud-user@ocp-psi-executor ~]$
      [cloud-user@ocp-psi-executor ~]$
      [cloud-user@ocp-psi-executor ~]$ oc get dv dv-ocs -oyaml
      apiVersion: cdi.kubevirt.io/v1beta1
      kind: DataVolume
      metadata:
      annotations:
      cdi.kubevirt.io/storage.usePopulator: "true"
      creationTimestamp: "2023-09-05T14:57:20Z"
      generation: 1
      name: dv-ocs
      namespace: default
      resourceVersion: "2232200"
      uid: 77a93e07-79ba-4b13-ac1b-348595681d3b
      spec:
      contentType: kubevirt
      source:
      upload: {}
      storage:
      accessModes:

      • ReadWriteMany
        resources:
        requests:
        storage: 1Gi
        storageClassName: ocs-storagecluster-ceph-rbd
        volumeMode: Block
        status:
        claimName: dv-ocs
        conditions:
      • lastHeartbeatTime: "2023-09-05T14:57:20Z"
        lastTransitionTime: "2023-09-05T14:57:20Z"
        message: PVC dv-ocs Pending
        reason: Pending
        status: "False"
        type: Bound
      • lastHeartbeatTime: "2023-09-05T14:57:33Z"
        lastTransitionTime: "2023-09-05T14:57:20Z"
        reason: TransferRunning
        status: "False"
        type: Ready
      • lastHeartbeatTime: "2023-09-05T14:57:32Z"
        lastTransitionTime: "2023-09-05T14:57:32Z"
        reason: Pod is running
        status: "True"
        type: Running
        phase: UploadReady
        progress: N/A

      [cloud-user@ocp-psi-executor ~]$ oc get pvc
      NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
      dv-ocs Pending ocs-storagecluster-ceph-rbd 10m
      prime-f88af4ef-9064-4762-a8c9-5f6138b868d1 Bound pvc-825ee54d-a879-44fe-9df1-e93acea238ea 1Gi RWX ocs-storagecluster-ceph-rbd 10m
      prime-f88af4ef-9064-4762-a8c9-5f6138b868d1-scratch Bound pvc-c306db5c-ef80-470a-b7ed-a63277d74727 129Gi RWO hostpath-csi-basic 10m
      [cloud-user@ocp-psi-executor ~]$
      [cloud-user@ocp-psi-executor ~]$
      [cloud-user@ocp-psi-executor ~]$ oc get pvc dv-ocs -oyaml
      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
      annotations:
      cdi.kubevirt.io/storage.condition.running: "true"
      cdi.kubevirt.io/storage.condition.running.message: ""
      cdi.kubevirt.io/storage.condition.running.reason: Pod is running
      cdi.kubevirt.io/storage.contentType: kubevirt
      cdi.kubevirt.io/storage.pod.phase: Running
      cdi.kubevirt.io/storage.pod.ready: "true"
      cdi.kubevirt.io/storage.pod.restarts: "0"
      cdi.kubevirt.io/storage.populator.pvcPrime: prime-f88af4ef-9064-4762-a8c9-5f6138b868d1
      cdi.kubevirt.io/storage.preallocation.requested: "false"
      cdi.kubevirt.io/storage.usePopulator: "true"
      volume.beta.kubernetes.io/storage-provisioner: openshift-storage.rbd.csi.ceph.com
      volume.kubernetes.io/storage-provisioner: openshift-storage.rbd.csi.ceph.com
      creationTimestamp: "2023-09-05T14:57:20Z"
      finalizers:

      • kubernetes.io/pvc-protection
        labels:
        app: containerized-data-importer
        app.kubernetes.io/component: storage
        app.kubernetes.io/managed-by: cdi-controller
        app.kubernetes.io/part-of: hyperconverged-cluster
        app.kubernetes.io/version: 4.14.0
        name: dv-ocs
        namespace: default
        ownerReferences:
      • apiVersion: cdi.kubevirt.io/v1beta1
        blockOwnerDeletion: true
        controller: true
        kind: DataVolume
        name: dv-ocs
        uid: 77a93e07-79ba-4b13-ac1b-348595681d3b
        resourceVersion: "2232199"
        uid: f88af4ef-9064-4762-a8c9-5f6138b868d1
        spec:
        accessModes:
      • ReadWriteMany
        dataSource:
        apiGroup: cdi.kubevirt.io
        kind: VolumeUploadSource
        name: volume-upload-source-77a93e07-79ba-4b13-ac1b-348595681d3b
        dataSourceRef:
        apiGroup: cdi.kubevirt.io
        kind: VolumeUploadSource
        name: volume-upload-source-77a93e07-79ba-4b13-ac1b-348595681d3b
        resources:
        requests:
        storage: "1073741824"
        storageClassName: ocs-storagecluster-ceph-rbd
        volumeMode: Block
        status:
        phase: Pending

      [cloud-user@ocp-psi-executor ~]$ oc get pvc prime-f88af4ef-9064-4762-a8c9-5f6138b868d1 -oyaml
      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
      annotations:
      cdi.kubevirt.io/storage.bind.immediate.requested: ""
      cdi.kubevirt.io/storage.condition.bound: "true"
      cdi.kubevirt.io/storage.condition.bound.message: ""
      cdi.kubevirt.io/storage.condition.bound.reason: ""
      cdi.kubevirt.io/storage.condition.running: "true"
      cdi.kubevirt.io/storage.condition.running.message: ""
      cdi.kubevirt.io/storage.condition.running.reason: Pod is running
      cdi.kubevirt.io/storage.contentType: kubevirt
      cdi.kubevirt.io/storage.pod.phase: Running
      cdi.kubevirt.io/storage.pod.ready: "true"
      cdi.kubevirt.io/storage.pod.restarts: "0"
      cdi.kubevirt.io/storage.populator.kind: VolumeUploadSource
      cdi.kubevirt.io/storage.preallocation.requested: "false"
      cdi.kubevirt.io/storage.upload.target: ""
      cdi.kubevirt.io/storage.uploadPodName: cdi-upload-prime-f88af4ef-9064-4762-a8c9-5f6138b868d1
      pv.kubernetes.io/bind-completed: "yes"
      pv.kubernetes.io/bound-by-controller: "yes"
      sidecar.istio.io/inject: "false"
      volume.beta.kubernetes.io/storage-provisioner: openshift-storage.rbd.csi.ceph.com
      volume.kubernetes.io/storage-provisioner: openshift-storage.rbd.csi.ceph.com
      creationTimestamp: "2023-09-05T14:57:20Z"
      finalizers:

      • kubernetes.io/pvc-protection
        labels:
        app: containerized-data-importer
        app.kubernetes.io/component: storage
        app.kubernetes.io/managed-by: cdi-controller
        app.kubernetes.io/part-of: hyperconverged-cluster
        app.kubernetes.io/version: 4.14.0
        name: prime-f88af4ef-9064-4762-a8c9-5f6138b868d1
        namespace: default
        ownerReferences:
      • apiVersion: v1
        blockOwnerDeletion: true
        controller: true
        kind: PersistentVolumeClaim
        name: dv-ocs
        uid: f88af4ef-9064-4762-a8c9-5f6138b868d1
        resourceVersion: "2232198"
        uid: 825ee54d-a879-44fe-9df1-e93acea238ea
        spec:
        accessModes:
      • ReadWriteMany
        resources:
        requests:
        storage: "1073741824"
        storageClassName: ocs-storagecluster-ceph-rbd
        volumeMode: Block
        volumeName: pvc-825ee54d-a879-44fe-9df1-e93acea238ea
        status:
        accessModes:
      • ReadWriteMany
        capacity:
        storage: 1Gi
        phase: Bound

      [cloud-user@ocp-psi-executor ~]$ oc get pvc prime-f88af4ef-9064-4762-a8c9-5f6138b868d1-scratch -oyaml
      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
      annotations:
      pv.kubernetes.io/bind-completed: "yes"
      pv.kubernetes.io/bound-by-controller: "yes"
      volume.beta.kubernetes.io/storage-provisioner: kubevirt.io.hostpath-provisioner
      volume.kubernetes.io/selected-node: infd-vrf-414t0-w7msb-master-1
      volume.kubernetes.io/storage-provisioner: kubevirt.io.hostpath-provisioner
      creationTimestamp: "2023-09-05T14:57:21Z"
      finalizers:

      • kubernetes.io/pvc-protection
        labels:
        app: containerized-data-importer
        app.kubernetes.io/component: storage
        app.kubernetes.io/managed-by: cdi-controller
        name: prime-f88af4ef-9064-4762-a8c9-5f6138b868d1-scratch
        namespace: default
        ownerReferences:
      • apiVersion: v1
        blockOwnerDeletion: true
        controller: true
        kind: Pod
        name: cdi-upload-prime-f88af4ef-9064-4762-a8c9-5f6138b868d1
        uid: 5b7bfab5-f7ba-4629-b102-8aa058477f9d
        resourceVersion: "2232006"
        uid: c306db5c-ef80-470a-b7ed-a63277d74727
        spec:
        accessModes:
      • ReadWriteOnce
        resources:
        requests:
        storage: "1073741824"
        storageClassName: hostpath-csi-basic
        volumeMode: Filesystem
        volumeName: pvc-c306db5c-ef80-470a-b7ed-a63277d74727
        status:
        accessModes:
      • ReadWriteOnce
        capacity:
        storage: 129Gi
        phase: Bound
        [cloud-user@ocp-psi-executor ~]$

            akalenyu Alex Kalenyuk
            jpeimer@redhat.com Jenia Peimer
            Natalie Gavrielov Natalie Gavrielov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: