Bug 1408398
| Summary: | Azure disk: timeout expired waiting for volumes to attach/mount for pod on containerized OCP | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Wenqi He <wehe> |
| Component: | Storage | Assignee: | hchen |
| Status: | CLOSED UPSTREAM | QA Contact: | Wenqi He <wehe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.4.0 | CC: | aos-bugs, bchilds, eparis, wehe |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| 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: | 2017-02-01 16:21:21 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: | |||
*** Bug 1395605 has been marked as a duplicate of this bug. *** |
Description of problem: Fail to mount azure disk on containerized OCP Version-Release number of selected component (if applicable): oc v3.4.0.37+3b76456-1 kubernetes v1.4.0+776c994 features: Basic-Auth GSSAPI Kerberos SPNEGO How reproducible: Always Steps to Reproduce: 1.Setup a containerized OCP 2.Create a project and pod that use azure disk as volume $ cat azcaro-pod.yaml apiVersion: v1 kind: Pod metadata: name: azcaro spec: containers: - image: aosqe/hello-openshift name: azure volumeMounts: - name: azure mountPath: /mnt/azure securityContext: runAsUser: 1000060001 fsGroup: 123456 seLinuxOptions: level: "s0:c8,c2" volumes: - name: azure azureDisk: diskName: test3.vhd diskURI: https://someaccount.blob.core.windows.net/vhds/test3.vhd cachingMode: ReadOnly 3.Check pod status Actual results: Pod keeps "containercreating" status and failed to mount azure disk $ oc get pods NAME READY STATUS RESTARTS AGE azcaro 0/1 ContainerCreating 0 57m $ oc describe pod azcaro Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 31m 31m 1 {default-scheduler } Normal Scheduled Successfully assigned azcaro to wehe-node1-1.eastus.cloudapp.azure.com 29m 32s 14 {kubelet wehe-node1-1.eastus.cloudapp.azure.com} Warning FailedMount Unable to mount volumes for pod "azcaro_azuretest(359e6d7d-c8e8-11e6-8918-000d3a183a56)": timeout expired waiting for volumes to attach/mount for pod "azcaro"/"azuretest". list of unattached/unmounted volumes=[azure default-token-pj0dh] 29m 32s 14 {kubelet wehe-node1-1.eastus.cloudapp.azure.com} Warning FailedSync Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "azcaro"/"azuretest". list of unattached/unmounted volumes= Expected results: Azure disk could be mounted and pod could be running Additional info: Will attach master and node log