-
Bug
-
Resolution: Not a Bug
-
Minor
-
CNV v4.15.0
-
None
-
0.42
-
False
-
-
False
-
---
-
---
-
-
Storage Core Sprint 249
-
No
cloning datavolume is stuck in CloneInProgress phase when trying to clone datavolume.
how reproducable:
1 of 1 attempt
steps to reproduce:
1) create following datavolume (oc create -f dv-from-test.yaml ):
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
labels:
created-by-dynamic-class-creator: 'Yes'
name: test-dv
namespace: default
spec:
contentType: kubevirt
source:
http:
url: http://cnv-qe-server.rhos-psi.cnv-qe.rhood.us/files/cnv-tests/rhel-images/rhel-93.qcow2
storage:
resources:
requests:
storage: 20Gi
storageClassName: ocs-storagecluster-ceph-rbd-virtualization
volumeMode: Block
2) wait untill dv is in "Succeeded" phase
oc get dv
NAME PHASE PROGRESS RESTARTS AGE
test-dv Succeeded 100.0% 1 75s
3) create cloning data-volume (oc create -f clone-dv-from-test.yaml)
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
labels:
created-by-dynamic-class-creator: 'Yes'
name: cloned-test-dv
namespace: default
spec:
contentType: kubevirt
source:
pvc:
name: test-dv
namespace: default
storage:
resources:
requests:
storage: 20Gi
storageClassName: ocs-storagecluster-ceph-rbd-virtualization
volumeMode: Filesystem
4) delete the cdi-upload-tmp-pvc pod while cloning dv is in CloneInProgress and wait for clone data-volume PROGRESS get restarte[cloud-user@ocp-psi-executor ahmad]$ oc get dv
NAME PHASE PROGRESS RESTARTS AGE
cloned-test-dv CloneInProgress 13.53% 1 62s
test-dv Succeeded 100.0% 1 4m41soc get pod
NAME READY STATUS RESTARTS AGE
b357e598-f77b-4a9d-83bf-8108d250bd31-source-pod 1/1 Running 3 (63s ago) 5m5s
cdi-upload-tmp-pvc-00310518-169a-4862-9730-af15abbe19d4 1/1 Running 0 4m28s
[cloud-user@ocp-psi-executor ahmad]$delete the cdi-upload-tmp-pvc pod
oc delete pod cdi-upload-tmp-pvc-00310518-169a-4862-9730-af15abbe19d4
wait untill clone data-volume PROGRESS get restarted
[cloud-user@ocp-psi-executor ahmad]$ oc get dv
NAME PHASE PROGRESS RESTARTS AGE
cloned-test-dv CloneInProgress 2.30% 2 69s
test-dv Succeeded 100.0% 1 4m48s
the cloned-test-dv will keep restarted forever, and never reached to Succeeded phase
----------------
[cloud-user@ocp-psi-executor ahmad]$ oc get dv
NAME PHASE PROGRESS RESTARTS AGE
cloned-test-dv CloneInProgress 64.78% 8 30m
test-dv Succeeded 100.0% 1 35m
expected results:
clone datavolume should be Succeeded
actual results:
clone datavolume keeps restarted and never get Succeeded pahse (it will keep stuck in CloneInProgress phase)[cloud-user@ocp-psi-executor ahmad]$ oc get dv
NAME PHASE PROGRESS RESTARTS AGE
cloned-test-dv CloneInProgress 64.78% 8 30m
test-dv Succeeded 100.0% 1 35m