Bug 1592544 - [online-int][free-int] timeout expired waiting for volumes to attach/mount for pod tomcat8-https-s2i
Summary: [online-int][free-int] timeout expired waiting for volumes to attach/mount fo...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Templates
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Vu Dinh
QA Contact: XiuJuan Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-18 19:14 UTC by Stefanie Forrester
Modified: 2018-06-19 16:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-19 16:44:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Stefanie Forrester 2018-06-18 19:14:58 UTC
Description of problem:

When creating an app using the template jws31-tomcat8-https-s2i, pods fail to start. The event log shows the following error:

19m         19m          1         jws-app-1-fcqvv.153955a97e7c2665    Pod                                                              Warning   FailedMount                   kubelet, ip-172-31-49-226.ec2.internal   Unable to mount volumes for pod "jws-app-1-fcqvv_dakinitest-jws31-tomcat8-https-s2i-20180618(b44ed788-7326-11e8-9546-0aa08eeabc12)": timeout expired waiting for volumes to attach/mount for pod "dakinitest-jws31-tomcat8-https-s2i-20180618"/"jws-app-1-fcqvv". list of unattached/unmounted volumes=[jws-certificate-volume default-token-tzfhc]


Version-Release number of selected component (if applicable):

oc v3.10.0-0.66.0 and oc v3.9.14

How reproducible:

Always.

Steps to Reproduce:
1. oc new-app jws31-tomcat8-https-s2i
2. oc get pods
3. oc get events

Actual results:

Pods never deploy.

[root@online-int-master-05114 ~]# oc get pods -n dakinitest-jws31-tomcat8-https-s2i-20180618
NAME               READY     STATUS      RESTARTS   AGE
jws-app-1-build    0/1       Completed   0          36m
jws-app-1-deploy   0/1       Error       0          35m

[root@online-int-master-05114 ~]# oc get events -n dakinitest-jws31-tomcat8-https-s2i-20180618
<snip>
26m         33m          4         jws-app-1-fcqvv.1539552b75aa5cf0    Pod                                                              Warning   FailedMount                   kubelet, ip-172-31-49-226.ec2.internal   Unable to mount volumes for pod "jws-app-1-fcqvv_dakinitest-jws31-tomcat8-https-s2i-20180618(b44ed788-7326-11e8-9546-0aa08eeabc12)": timeout expired waiting for volumes to attach/mount for pod "dakinitest-jws31-tomcat8-https-s2i-20180618"/"jws-app-1-fcqvv". list of unattached/unmounted volumes=[jws-certificate-volume]
24m         24m          1         jws-app-1-fcqvv.153955a97e7c2665    Pod                                                              Warning   FailedMount                   kubelet, ip-172-31-49-226.ec2.internal   Unable to mount volumes for pod "jws-app-1-fcqvv_dakinitest-jws31-tomcat8-https-s2i-20180618(b44ed788-7326-11e8-9546-0aa08eeabc12)": timeout expired waiting for volumes to attach/mount for pod "dakinitest-jws31-tomcat8-https-s2i-20180618"/"jws-app-1-fcqvv". list of unattached/unmounted volumes=[jws-certificate-volume default-token-tzfhc]


Expected results:

Pod should enter 'Running' state.

Additional info:

Comment 1 Tomas Remes 2018-06-19 09:29:13 UTC
The above mentioned commands work for me on online-int. One important thing is that the template requires "jws-app-secret". It can be created with:

oc create -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/secrets/jws-app-secret.json


Note You need to log in before you can comment on or make changes to this bug.