-
Notifications
You must be signed in to change notification settings - Fork 225
Closed
Labels
lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.
Description
- Create a pvc
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: p1
spec:
volumeMode: Block
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: csi-hostpath-sc
- clone from pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: p1-clone
spec:
storageClassName: csi-hostpath-sc
dataSource:
name: p1
kind: PersistentVolumeClaim
apiGroup: ""
accessModes:
- ReadWriteOnce
volumeMode: Block
resources:
requests:
storage: 1Gi
The cloned PVC remains in the Pending state:
# kubectl get pvc -o wide
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE VOLUMEMODE
p1 Bound pvc-97b8c8dc-596b-4c32-b94d-84fe859ffa42 1Gi RWO csi-hostpath-sc 4m4s Block
p1-clone Pending csi-hostpath-sc 3m8s Block
# kubectl describe pvc p1-clone
Name: p1-clone
Namespace: default
StorageClass: csi-hostpath-sc
Status: Pending
Volume:
Labels: <none>
Annotations: volume.beta.kubernetes.io/storage-provisioner: hostpath.csi.k8s.io
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Block
DataSource:
APIGroup:
Kind: PersistentVolumeClaim
Name: p1
Mounted By: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 4m16s hostpath.csi.k8s.io_csi-hostpath-provisioner-0_b54909de-7793-4038-a581-f7206c6ff104 failed to provision volume with StorageClass "csi-hostpath-sc": rpc error: code = DeadlineExceeded desc = context deadline exceeded
Normal ExternalProvisioning 4s (x19 over 4m26s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "hostpath.csi.k8s.io" or manually created by system administrator
Normal Provisioning 3s (x9 over 4m26s) hostpath.csi.k8s.io_csi-hostpath-provisioner-0_b54909de-7793-4038-a581-f7206c6ff104 External provisioner is provisioning volume for claim "default/p1-clone"
Warning ProvisioningFailed 3s (x8 over 4m16s) hostpath.csi.k8s.io_csi-hostpath-provisioner-0_b54909de-7793-4038-a581-f7206c6ff104 failed to provision volume with StorageClass "csi-hostpath-sc": rpc error: code = AlreadyExists desc = existing volume source volume id not matching
Metadata
Metadata
Assignees
Labels
lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.