Bug 824521 - Applications do not work after creating from template
Summary: Applications do not work after creating from template
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Krishna Raman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-23 16:29 UTC by Fotios Lindiakos
Modified: 2015-05-15 01:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-08 17:59:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Broker log (7.20 KB, application/octet-stream)
2012-05-23 16:29 UTC, Fotios Lindiakos
no flags Details
Application log (2.81 KB, text/plain)
2012-05-23 16:29 UTC, Fotios Lindiakos
no flags Details
Broker log (7.20 KB, text/plain)
2012-05-23 16:30 UTC, Fotios Lindiakos
no flags Details

Description Fotios Lindiakos 2012-05-23 16:29:14 UTC
Created attachment 586405 [details]
Broker log

Description of problem:
After creating an application based on an application template, the new applications do not work. For example in a Rails application, it complains about not being able to find the rake gem. This is probably caused by the .openshift/action_hooks not being executed.


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


How reproducible:
Always


Steps to Reproduce:
1. Deploy application based on template
2. Navigate to application URL
3.
  
Actual results:
Passenger error about not being able to find rake
(Similar errors for other templates)

Expected results:
Application should work


Additional info:
Attached are logs from the broker (for when the application is created) and from the application itself.

Comment 1 Fotios Lindiakos 2012-05-23 16:29:54 UTC
Created attachment 586406 [details]
Application log

Comment 2 Fotios Lindiakos 2012-05-23 16:30:49 UTC
Created attachment 586407 [details]
Broker log

Comment 3 Fotios Lindiakos 2012-05-23 18:45:59 UTC
Confirmed that by pushing to the repo, the action_hooks are triggered and the application will function properly. This was testing on a Rails app.

Comment 4 Krishna Raman 2012-05-30 16:18:22 UTC
https://github.com/openshift/crankcase/pull/70

Comment 5 Rony Gong 🔥 2012-05-31 10:21:15 UTC
verified on devenv_1809
Steps:
1.create template by yaml file:
Vendor: unknown
Requires:
- php-5.3
Architecture: noarch
Description:
License: unknown
Subscribes:
  doc-root:
    Required: false
    Type: FILESYSTEM:doc-root
Version: 0.0
2.then create app by this template
3.access app, show content "Error establishing a database connection"


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