I've noticed this issue thru this whole chapter during cloning. Usually I did a finish/start the lab again
but it's not working on the final lab. I cloned the VM golden-rhel and it's stuck, looking at the datavolume, I see the error no PVC found. Seems to be a environment issue or a bug in the lab setup.
[student@workstation ~]$ oc get vm,dv,pvc
NAME AGE STATUS READY
virtualmachine.kubevirt.io/golden-rhel 9m10s Stopped False
virtualmachine.kubevirt.io/www1 5m42s Provisioning False
NAME PHASE PROGRESS RESTARTS AGE
datavolume.cdi.kubevirt.io/golden-rhel Succeeded 100.0% 1 9m10s
datavolume.cdi.kubevirt.io/golden-rhel-v3nnf Pending 5m42s
datavolume.cdi.kubevirt.io/tempdata Succeeded 100.0% 9m10s
datavolume.cdi.kubevirt.io/tempdata-v3nnf Pending 5m42s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/golden-rhel Bound pvc-7b37d02f-35ad-4d2c-88e5-3ec1b08a4a68 10Gi RWX ocs-external-storagecluster-ceph-rbd-virtualization 9m10s
persistentvolumeclaim/tempdata Bound pvc-1c694a88-ccf9-482c-93a1-b4b94a0645e1 1Gi RWO ocs-external-storagecluster-ceph-rbd-virtualization 9m10s
[student@workstation ~]$ oc describe datavolume.cdi.kubevirt.io/golden-rhel-v3nnf
Name: golden-rhel-v3nnf
Namespace: advanced-review
Labels: kubevirt.io/created-by=f898d64e-96b7-40af-9b45-bfe9f22fa6e8
Annotations: cdi.kubevirt.io/storage.clone.token:
eyJhbGciOiJQUzI1NiJ9.eyJleHAiOjE3MjUwNDI1NzUsImlhdCI6MTcyNTA0MjI3NSwiaXNzIjoiY2RpLWFwaXNlcnZlciIsIm5hbWUiOiJnb2xkZW4tcmhlbCIsIm5hbWVzcGFjZ...
cdi.kubevirt.io/storage.usePopulator: false
API Version: cdi.kubevirt.io/v1beta1
Kind: DataVolume
Metadata:
Creation Timestamp: 2024-08-30T18:24:35Z
Generation: 1
Owner References:
API Version: kubevirt.io/v1
Block Owner Deletion: true
Controller: true
Kind: VirtualMachine
Name: www1
UID: f898d64e-96b7-40af-9b45-bfe9f22fa6e8
Resource Version: 1825473
UID: 0f2a002a-aa2a-4df0-932a-f32893e1b067
Spec:
Source:
Pvc:
Name: golden-rhel
Namespace: advanced-review
Storage:
Resources:
Requests:
Storage: 10Gi
Status:
Conditions:
Last Heartbeat Time: 2024-08-30T18:24:35Z
Last Transition Time: 2024-08-30T18:24:35Z
Message: No PVC found
Reason: NotFound
Status: Unknown
Type: Bound
Last Heartbeat Time: 2024-08-30T18:24:35Z
Last Transition Time: 2024-08-30T18:24:35Z
Status: False
Type: Ready
Last Heartbeat Time: 2024-08-30T18:24:35Z
Last Transition Time: 2024-08-30T18:24:35Z
Status: False
Type: Running
Phase: Pending
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal NotFound 6m1s datavolume-pvc-clone-controller No PVC found
@SylvainMartin The lab is working fine without issues :
Please retry this lab again or raise a support case if you need help on the same.
Hey @SylvainMartin , glad to know it is resolved for you!
The PVC configuration in dataVolume is using the storageClass NFS (default), you can configure the storageClass "ocs-external-storagecluster-ceph-rbd-virtualization" in dataVolumeTemplate in VM and then it works.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.