Bug 1330325

Summary: Error creating pod due to service account not found.
Product: OpenShift Online Reporter: Steve Speicher <sspeiche>
Component: DocumentationAssignee: Vikram Goyal <vigoyal>
Status: CLOSED DUPLICATE QA Contact: Vikram Goyal <vigoyal>
Severity: high Docs Contact: Vikram Goyal <vigoyal>
Priority: unspecified    
Version: 3.xCC: aos-bugs, haowang, jokerman, kconner, mmccomas, pweil
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-26 14:50:34 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:

Description Steve Speicher 2016-04-25 21:56:36 UTC
Description of problem: 

Deployment consistently fails for only a given template (eap64-mysql-persistent-s2i)

Version-Release number of selected component (if applicable):
OpenShift Master:
v3.2.0.16
Kubernetes Master:
v1.2.0-36-g4a3f9c5

How reproducible:

Deploy the eap64-mysql-persistent-s2i template as-is and wait for the build to finish, then the deploy will attempt to happen and fail.

This occurred at https://console.dev-preview-int.openshift.com/console/project/sspeiche-microservices


Interesting event log

5:48:48 PM	
Replication Controller
eap-app-3	
Failed create  
Error creating: pods "eap-app-3-" is forbidden: service account sspeiche-microservices/eap-service-account was not found, retry after the service account is created
4 times in the last minute

Comment 1 Wang Haoran 2016-04-26 08:38:09 UTC
I thinks you should create the eap-service-account first , the xpass templates have some special sa defined , for this template , you can use this[1] to create the sa.

[1]https://github.com/jboss-openshift/application-templates/blob/master/secrets/eap-app-secret.json

Comment 2 Paul Weil 2016-04-26 12:15:47 UTC
Hi Steve,

Looks like the json that is mentioned above is required based on the readme:

https://github.com/jboss-openshift/application-templates/blob/master/docs/eap/eap64-mysql-persistent-s2i.adoc#secrets

Comment 3 Steve Speicher 2016-04-26 13:09:38 UTC
This is a definite usability bug, could be fixed somewhat with docs. In this case (dev-preview) the user will start at the catalog and have no way to know how to get this information from the catalog.

A few different alternatives:
- add secret to the templates
- remove https from the templates
- somehow, inject the link or info for the readme
- add the secret template to the catalog

Comment 4 Paul Weil 2016-04-26 14:45:30 UTC
+1 to updating docs or templates.  Changing the component.

Comment 5 kconner 2016-04-26 14:46:09 UTC
A few comments to the above

- There should be no secrets in templates
- There is already a template that doesn't include https (basic)
- We're already working on docs for this topic, moving some of the upstream work into product docs.
- The secret is *not* a template

Comment 6 kconner 2016-04-26 14:47:29 UTC
Duplicate of 1327313?

Comment 7 Paul Weil 2016-04-26 14:50:34 UTC
Marking as dupe since 1327313 is already planning on addressing the SA creation.  Steve, please let us know if you disagree.  Thanks!

*** This bug has been marked as a duplicate of bug 1327313 ***