Bug 1580273
| Summary: | Dynamic provisioning PVC using csi volume driver is stuck in Pending status | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qin Ping <piqin> |
| Component: | Storage | Assignee: | Jan Safranek <jsafrane> |
| Status: | CLOSED NOTABUG | QA Contact: | Jianwei Hou <jhou> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.10.0 | CC: | aos-bugs, aos-storage-staff, jsafrane, piqin |
| Target Milestone: | --- | ||
| Target Release: | 3.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-05-23 11:38:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Qin Ping
2018-05-21 06:47:20 UTC
This is the interesting part: > Failed to provision volume for claim "mytest/pvc1" with StorageClass "cinder": rpc error: code = DeadlineExceeded desc = context deadline exceeded The provisioner called cinder driver to provision a volume but it did not get a response in 10 seconds. There is PR that re-tries the call couple of times with exponential backoff: https://github.com/kubernetes-csi/external-provisioner/pull/66. It gives the driver approx. 4 minutes to provision a volume. On the other hand, it would be great to find out why the call did not succeed. 10 seconds sounds enough to me. Can you please attach full logs of csi-provisioner and cinder-driver containers? Hi Jan, It had a configuration error when I deployed csi. I forgot to modify the secret.data.cloud.conf value. cinder-driver report: E0521 09:37:28.445215 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:39:00.931896 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:40:36.133618 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:42:52.346540 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:45:24.007954 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:47:37.353565 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:50:16.584325 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:52:37.374416 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout E0521 09:55:09.408493 1 utils.go:100] GRPC error: Post https://example.com:13000/v2.0/tokens: dial tcp 93.184.216.34:13000: i/o timeout Qin, with enough permissions to post events, did the provisioner show reasonable error in oc describe PVC? It should at least show some timeout there. If so, I think there is no bug to fix. PVC events: Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Provisioning 46s (x4 over 1m) csi-cinderplugin 9ce7f585-5e2c-11e8-a5c0-0a580a80003f External provisioner is provisioning volume for claim "mytest/pvc1" Warning ProvisioningFailed 36s (x4 over 1m) csi-cinderplugin 9ce7f585-5e2c-11e8-a5c0-0a580a80003f Failed to provision volume with StorageClass "cinder": rpc error: code = DeadlineExceeded desc = context deadline exceeded Normal ExternalProvisioning 34s (x25 over 1m) persistentvolume-controller waiting for a volume to be created, either by external provisioner "csi-cinderplugin" or manually created by system administrator Warning ProvisioningFailed 6s (x2 over 28s) csi-cinderplugin 9cb75da1-5e2c-11e8-9a51-0a580a810024 Failed to provision volume with StorageClass "cinder": rpc error: code = DeadlineExceeded desc = context deadline exceeded Normal Provisioning 1s (x3 over 38s) csi-cinderplugin 9cb75da1-5e2c-11e8-9a51-0a580a810024 External provisioner is provisioning volume for claim "mytest/pvc1" I am closing this bug, it was caused by misconfiguration and with the policy fix it shows at least something in PVC events. Double PVCs is most probably dup of #1581113 |