Bug 876890 - [US3046]App can not work well when creating a scalable app from a quickstart with initial git url added
Summary: [US3046]App can not work well when creating a scalable app from a quickstart ...
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: Ram Ranganathan
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-15 08:55 UTC by joycezhang
Modified: 2015-05-15 02:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-19 19:26:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Gears are down in Browser (104.73 KB, image/png)
2012-11-15 08:55 UTC, joycezhang
no flags Details

Description joycezhang 2012-11-15 08:55:53 UTC
Created attachment 645504 [details]
Gears are down in Browser

Description of problem:
If try to create a scalable app from a created quickstart in community with initial git url added, the app can't shown correctly in browser and all gears are down.

Version-Release number of selected component (if applicable):
devenv_2476
rhc-1.1.7.gem

How reproducible:
always


Steps to Reproduce:
1.Enable quickstarts on instance.
2.Create a quickstart as Admin
And add git repo url:https://github.com/openshift/wordpress-example.git
3.Add this quickstart to search index in drupal by hitting /community/cron.php.
4.Go to web console and create an scalable app with this quickstarts.
5.Check the app can work well.

Actual results:
App can not work correctly in Browser as attached sceenshot.


Expected results:
It works correctly.If quickstart can't support scalable app, a notice should be shown to tell user that quickstart with git url can't support scalable app.

Additional info:
1.It can work well with non-scalable app.
2.It can work well for scalable app for the quickstart without initial git url added.

Comment 1 Dan McPherson 2012-11-15 21:56:53 UTC
This was never done with the old templates right?  Do we support this scenario yet?

Comment 2 joycezhang 2012-11-16 03:21:32 UTC
If it's not supported, if it's possible to disable the scaling item when creating app with initial git url added, or a friendly notice to tell user that it currently not supported yet? Thanks!

Comment 3 Yujie Zhang 2012-11-16 08:13:23 UTC
(In reply to comment #1)
Tested this on INT(devenv_2484) today, the issue still exists, please disable the scale function when creating template app in case to confuse users.

Comment 4 Clayton Coleman 2012-11-16 14:15:55 UTC
Why can't an application be created with haproxy and another cart?

Comment 5 Ram Ranganathan 2012-11-16 20:03:30 UTC
The issue here is with the wordpress quickstart -- its using the MYSQL socket file to connect to mysql. 

That works on non-scaled apps as mysql runs in the same gear as php. 

But on a scaled app, the mysql gear is different than the php or haproxy+php gear and so wordpress is unable to connect to mysql as its using the socket file. 

Would suggest trying another quickstart -- maybe one that just does web serving first and see if that works and then maybe try one w/ a db (mongo's probably a better bet as it always uses an IP based connection mechanism) and then check w/ mysql. 

Checking w/ a different quickstart ...

Comment 6 Ram Ranganathan 2012-11-16 20:10:49 UTC
Works fine w/ the flask-example  instead of wordpress and php cartridges, try
using flask-example.git and python.
https://$verifier_ip/app/console/application_types/custom?cartridges[]=python-2.6&initial_git_url=https://github.com/openshift/flask-example.git


Will look at the wordpress example seperately to make it work w/ scaled applications -- can you file a separate bug on that please. 
Thanks.

For the purposes of this bug -- it works for me w/ flask.

Comment 7 joycezhang 2012-11-19 02:53:39 UTC
It works with flask-exambple.git for python afer testing on devenv_2497. I will open a bug seperately to track the issue for wordpress example. Thanks.

Comment 8 joycezhang 2012-11-19 03:01:06 UTC
Bug 877849 is opened for tracking wordpress example. Thanks.


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