Bug 1592544

Summary: [online-int][free-int] timeout expired waiting for volumes to attach/mount for pod tomcat8-https-s2i
Product: OpenShift Online Reporter: Stefanie Forrester <dakini>
Component: TemplatesAssignee: Vu Dinh <vdinh>
Status: CLOSED NOTABUG QA Contact: XiuJuan Wang <xiuwang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abhgupta, aos-bugs, jokerman, mmccomas, tremes
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: 2018-06-19 16:44:31 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 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