Closed arahamad-zz closed 4 years ago
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl create -f validPVC.yaml
persistentvolumeclaim/csi-block-pvc-good created
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
csi-block-pvc-good Pending ibmc-vpc-block-5iops-tier 8s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
csi-block-pvc-good Pending ibmc-vpc-block-5iops-tier 21s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes#
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes#
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes#
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
csi-block-pvc-good Bound pvc-8c85f5fa-8840-4171-98dc-09667c82a137 10Gi RWO ibmc-vpc-block-5iops-tier 29s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl describe pvc pvc-8c85f5fa-8840-4171-98dc-09667c82a137
Error from server (NotFound): persistentvolumeclaims "pvc-8c85f5fa-8840-4171-98dc-09667c82a137" not found
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl describe pv pvc-8c85f5fa-8840-4171-98dc-09667c82a137
Name: pvc-8c85f5fa-8840-4171-98dc-09667c82a137
Labels: <none>
Annotations: pv.kubernetes.io/provisioned-by: vpc.block.csi.ibm.io
Finalizers: [kubernetes.io/pv-protection]
StorageClass: ibmc-vpc-block-5iops-tier
Status: Bound
Claim: default/csi-block-pvc-good
Reclaim Policy: Delete
Access Modes: RWO
VolumeMode: Filesystem
Capacity: 10Gi
Node Affinity:
Required Terms:
Term 0: failure-domain.beta.kubernetes.io/region in [us-south]
failure-domain.beta.kubernetes.io/zone in [us-south-1]
Message:
Source:
Type: CSI (a Container Storage Interface (CSI) volume source)
Driver: vpc.block.csi.ibm.io
VolumeHandle: 667fe231-b869-4a82-a56b-9489d88108a9
ReadOnly: false
VolumeAttributes: failure-domain.beta.kubernetes.io/region=us-south
failure-domain.beta.kubernetes.io/zone=us-south-1
iops=3000
storage.kubernetes.io/csiProvisionerIdentity=1578856145238-8081-vpc.block.csi.ibm.io
volumeId=667fe231-b869-4a82-a56b-9489d88108a9
Events: <none>
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# ibmcloud is vol 667fe231-b869-4a82-a56b-9489d88108a9
Getting volume 667fe231-b869-4a82-a56b-9489d88108a9 under account IBM as user contsto2@in.ibm.com...
ID 667fe231-b869-4a82-a56b-9489d88108a9
Name pvc-8c85f5fa-8840-4171-98dc-09667c82a137
Status available
Capacity 10
IOPS 3000
Profile 5iops-tier
Encryption key -
Encryption provider_managed
Resource group efd16c8eac35496e801cf46c19dd03d5
Created 2020-01-12T19:11:29+00:00
Zone us-south-1
Volume Attachment Instance Reference -
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# ls
invalidPVC.yaml restartlogs validPOD.yaml validPVC.yaml
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl create -f validPOD.yaml
deployment.extensions/testpodrwo created
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
NAME READY STATUS RESTARTS AGE
testpodrwo-64f7b8498b-vfjdw 0/1 ContainerCreating 0 5s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
NAME READY STATUS RESTARTS AGE
testpodrwo-64f7b8498b-vfjdw 0/1 ContainerCreating 0 84s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# ibmcloud is vol 667fe231-b869-4a82-a56b-9489d88108a9
Getting volume 667fe231-b869-4a82-a56b-9489d88108a9 under account IBM as user contsto2@in.ibm.com...
ID 667fe231-b869-4a82-a56b-9489d88108a9
Name pvc-8c85f5fa-8840-4171-98dc-09667c82a137
Status available
Capacity 10
IOPS 3000
Profile 5iops-tier
Encryption key -
Encryption provider_managed
Resource group efd16c8eac35496e801cf46c19dd03d5
Created 2020-01-12T19:11:29+00:00
Zone us-south-1
Volume Attachment Instance Reference Attachment type Instance ID Instance name Auto delete Device Attachment ID Attachment name
data c3f46315-9f58-46c0-bedc-9d3d0dd1d102 kube-bn0mu6dd0m6en5c32910-arvpccluste-default-00000293 no xvdc bd3a860f-5975-4f05-9f8a-9c3a16c8256c synthetic-outer-stopped-handoff-proofing
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
NAME READY STATUS RESTARTS AGE
testpodrwo-64f7b8498b-vfjdw 0/1 ContainerCreating 0 97s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
NAME READY STATUS RESTARTS AGE
testpodrwo-64f7b8498b-vfjdw 0/1 ContainerCreating 0 2m13s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
NAME READY STATUS RESTARTS AGE
testpodrwo-64f7b8498b-vfjdw 0/1 ContainerCreating 0 2m23s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
NAME READY STATUS RESTARTS AGE
testpodrwo-64f7b8498b-vfjdw 1/1 Running 0 2m36s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl delete -f validPOD.yaml
deployment.extensions "testpodrwo" deleted
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
NAME READY STATUS RESTARTS AGE
testpodrwo-64f7b8498b-vfjdw 0/1 Terminating 0 3m19s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pods
No resources found.
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# ibmcloud is vol 667fe231-b869-4a82-a56b-9489d88108a9
Getting volume 667fe231-b869-4a82-a56b-9489d88108a9 under account IBM as user contsto2@in.ibm.com...
ID 667fe231-b869-4a82-a56b-9489d88108a9
Name pvc-8c85f5fa-8840-4171-98dc-09667c82a137
Status available
Capacity 10
IOPS 3000
Profile 5iops-tier
Encryption key -
Encryption provider_managed
Resource group efd16c8eac35496e801cf46c19dd03d5
Created 2020-01-12T19:11:29+00:00
Zone us-south-1
Volume Attachment Instance Reference -
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
csi-block-pvc-good Bound pvc-8c85f5fa-8840-4171-98dc-09667c82a137 10Gi RWO ibmc-vpc-block-5iops-tier 6m28s
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl delete pvc csi-block-pvc-good
persistentvolumeclaim "csi-block-pvc-good" deleted
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# kubectl get pvc
No resources found.
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# ibmcloud is vol 667fe231-b869-4a82-a56b-9489d88108a9
Getting volume 667fe231-b869-4a82-a56b-9489d88108a9 under account IBM as user contsto2@in.ibm.com...
ID 667fe231-b869-4a82-a56b-9489d88108a9
Name pvc-8c85f5fa-8840-4171-98dc-09667c82a137
Status pending_deletion
Capacity 10
IOPS 3000
Profile 5iops-tier
Encryption key -
Encryption provider_managed
Resource group efd16c8eac35496e801cf46c19dd03d5
Created 2020-01-12T19:11:29+00:00
Zone us-south-1
Volume Attachment Instance Reference -
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes# ibmcloud is vol 667fe231-b869-4a82-a56b-9489d88108a9
Getting volume 667fe231-b869-4a82-a56b-9489d88108a9 under account IBM as user contsto2@in.ibm.com...
FAILED
Failed to show volume.
FAILED
Error code: volume_id_not_found
Error message: A volume with the specified ID is not found.
Error target name: , type:
For more details, refer to: https://cloud.ibm.com/docs/vpc-on-classic?topic=vpc-on-classic-rias-error-messages#volume_id_not_found
Trace ID: 9834cd6c76051a5e5fcf31ff09ba79a6
root@virtualserver01:~/common_lib/src/github.ibm.com/alchemy-containers/ibm-vpc-block-csi-driver/examples/kubernetes#
create, delete, attach and detach of volume worked on
private cluster
Logs for create volume
Volume attachment:
Volume delete: