cancel
Showing results for 
Search instead for 
Did you mean: 
SylvainMartin
Mission Specialist
Mission Specialist
  • 971 Views

DO316 ch7,lab advanced-review no PVC found error

Jump to solution

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

 

 

 

 

 

 
 
 
 
 
Labels (1)
1 Solution

Accepted Solutions
SylvainMartin
Mission Specialist
Mission Specialist
  • 942 Views

After I destroyed the cluster and recreated it, it worked fine

 

View solution in original post

Tags (1)
5 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 944 Views

@SylvainMartin The lab is working fine without issues  :

Chetan_Tiwary__0-1725048825850.png

Please retry this lab again or raise a support case if you need help on the same.

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 944 Views

Lab grading too went smooth as expected :

Chetan_Tiwary__1-1725049024091.png

 

0 Kudos
SylvainMartin
Mission Specialist
Mission Specialist
  • 943 Views

After I destroyed the cluster and recreated it, it worked fine

 
Tags (1)
Chetan_Tiwary_
Community Manager
Community Manager
  • 939 Views

Hey @SylvainMartin , glad to know it is resolved for you!

0 Kudos
MartaMG
Flight Engineer Flight Engineer
Flight Engineer
  • 554 Views

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. 

Join the discussion
You must log in to join this conversation.