I am always getting Failed Mount and POD doesn't get created when Persistent Volume (PV) is added
I have one project with single deployment and persistent storage. Whenever I add PVC to the deployment I do not get POD created and I am keep getting following error,
Unable to mount volumes for pod "badminton-3-pqm98_maddydeva(71a2d367-148a-11e8-a26f-06e7d92b1aa4)": timeout expired waiting for volumes to attach/mount for pod "maddydeva"/"badminton-3-pqm98". list of unattached/unmounted volumes=[storage default-token-fwxtr]
Version
openshift v3.7.23 kubernetes v1.7.6+a08f5eeb62
Steps To Reproduce
- Create a project in a free tier
- Create a pvc
- Attach storage to the deployment
Current Result
POD doesn't get created
Expected Result
POD should be create successfully and pvc is attached.
Additional Information
This is my deployment config:
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: '2018-02-18T08:43:00Z'
generation: 4
labels:
app: badminton
name: badminton
namespace: maddydeva
resourceVersion: '676188054'
selfLink: /apis/apps.openshift.io/v1/namespaces/maddydeva/deploymentconfigs/badminton
uid: b9d2d7fc-1487-11e8-a26f-06e7d92b1aa4
spec:
replicas: 1
selector:
deploymentconfig: badminton
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
creationTimestamp: null
labels:
app: badminton
deploymentconfig: badminton
spec:
containers:
- env:
- name: SEND_GRID_API_KEY
value: >-
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
image: >-
172.30.148.65:5000/maddydeva/badminton@sha256:64a400c8bb7a77eda25e3b0980382c9307231472826b60eb6793a9f1195ce9ab
imagePullPolicy: Always
name: badminton
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: storage
subPath: db
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: storage
persistentVolumeClaim:
claimName: badminton-storage
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- badminton
from:
kind: ImageStreamTag
name: 'badminton:latest'
namespace: maddydeva
lastTriggeredImage: >-
172.30.148.65:5000/maddydeva/badminton@sha256:64a400c8bb7a77eda25e3b0980382c9307231472826b60eb6793a9f1195ce9ab
type: ImageChange
- type: ConfigChange
status:
availableReplicas: 1
conditions:
- lastTransitionTime: '2018-02-18T08:43:16Z'
lastUpdateTime: '2018-02-18T08:43:16Z'
message: Deployment config has minimum availability.
status: 'True'
type: Available
- lastTransitionTime: '2018-02-18T09:12:34Z'
lastUpdateTime: '2018-02-18T09:12:34Z'
message: replication controller "badminton-3" has failed progressing
reason: ProgressDeadlineExceeded
status: 'False'
type: Progressing
details:
causes:
- type: ConfigChange
message: config change
latestVersion: 3
observedGeneration: 4
readyReplicas: 1
replicas: 1
unavailableReplicas: 0
updatedReplicas: 0
@sydneybadminton can you please format your deployment config ?
@openshift/sig-storage
Do you have the quota to create another PVC?
edited yaml formatting
I checked starter-us-west-1 cluster and one of the cluster masters experienced some hiccups around Feb 14 13:42 UTC:
Multi-Attach error for volume "pvc-ff86b22f-a8bd-11e7-9a32-06579ed29230" (UniqueName: "kubernetes.io/aws-ebs/aws://us-west-1c/vol-0bbbcd6924bcb1f0f") from node "ip-172-31-21-9.us-west-1.compute.inter
nal" Volume is already exclusively attached to one node and can't be attached to another
But it healed pretty quickly and I don't see any issues with your volume right now. Can you try again?
And please note, this github repository tracks OpenShift Origin release, which is a community project. Use Red Hat Bugzilla to get support for OpenShift Online, which is a different product (running OpenShift Origin under the hood).
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
/reopen
@devil47sid: You can't reopen an issue/PR unless you authored it or you are a collaborator.
In response to this:
/reopen
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.