Bug 863930 - Spring framework, and rubyonrails app stayed on "DEPLOYING" status for too long time on dev.
Summary: Spring framework, and rubyonrails app stayed on "DEPLOYING" status for too lo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-08 05:40 UTC by Yujie Zhang
Modified: 2015-05-14 23:00 UTC (History)
4 users (show)

Fixed In Version: devenv_2379+
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:49:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 863036 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 863036

Description Yujie Zhang 2012-10-08 05:40:04 UTC
Description of problem:

When I created the spring framework app, I found that it was still "DEPLOYING" status after more than 3 hours. Then I used rhc command to restart the app,it became "STARTED" status after that.

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

devenv_2295

How reproducible:always


Steps to Reproduce:
1.Go to openshift website and login
2.Create a spring framework app
3.Check the status of the app after 3 hours
  
Actual results:

It stays too long on "DEPLOYING" status .

Expected results:

The status of application should be "Started" after a few minutes.

Additional info:

Comment 1 Mengjiao Gao 2012-10-09 08:08:39 UTC
Teseted this issue on devenv_2301, this issue exists not only on spring framework, but also on Wordpress and Kitchensink application.

Comment 2 Dan Mace 2012-10-11 14:19:33 UTC
Was this tested with the "dev/typeless" branch of the quickstarts? Please verify the branch used and comment with details on the issue before we start digging into things.

Comment 3 Mengjiao Gao 2012-10-12 10:13:21 UTC
I tested these quickstarts with the "dev/typeless" branch and found no problem. But I have tried these ones with master branch used CLI with steps below, they have no problem as well. So I can just reproduce this issue when I create template apps on website. 

I think the reason why  this CLI way to create quickstarts can not reproduce the bug is that when execute "git push" , the apps will be restarted. As described in the "Description of problem:" part, restart operation will make apps become "STARTED".
So , I still cannot verify if the bug only exists on the master branch.

Tested steps with the "dev/typeless" branch used CLI:
1. rhc-create-app -a wordpress -t php-5.3 
2. rhc-ctl-app -a wordpress -e add-mysql-5.1 
3. cd wordpress
   git remote add upstream -m dev/typeless git://github.com/openshift/wordpress-example.git
   git pull -s recursive -X theirs upstream dev/typeless 
4. git push
5. Check the app's url
http://wordpress-$yournamespace.rhcloud.com 

Tested steps with the "master" branch used CLI:
1. rhc-create-app -a wordpress -t php-5.3 
2. rhc-ctl-app -a wordpress -e add-mysql-5.1 
3. cd wordpress
   git remote add upstream -m master git://github.com/openshift/wordpress-example.git
   git pull -s recursive -X theirs upstream master
4. git push
5. Check the app's url
http://wordpress-$yournamespace.rhcloud.com

Comment 4 John Poelstra 2012-10-19 19:03:50 UTC
hoping to get to QA to today

Comment 5 Yujie Zhang 2012-10-22 05:57:06 UTC
Tested this issue on devenv_2360, the templates are still using master branch now according to the following log of mcollective:

I, [2012-10-22T01:51:16.823994 #1028]  INFO -- : openshift.rb:316:in `cartridge_do_action' cartridge_do_action validation = jbossas-7 configure 'kitsdf22' 'dev23601' '50697ba83a23465993b952e3a890622a' 'git://github.com/openshift/kitchensink-example.git'
I, [2012-10-22T01:51:16.824714 #1028]  INFO -- : openshift.rb:348:in `cartridge_do_action' cartridge_do_action executing /usr/bin/runcon -l s0-s0:c0.c1023 /usr/libexec/openshift/cartridges/jbossas-7/info/hooks/configure 'kitsdf22' 'dev23601' '50697ba83a23465993b952e3a890622a' 'git://github.com/openshift/kitchensink-example.git' 2>&1

Will test it again when the templates are ready for testing.

Comment 6 Dan Mace 2012-10-22 21:11:54 UTC
The templates are now testable in devenv_2362+. You should notice duplicate template options from the web console which have a special in their description indicating they are for "development". These development templates are configured to point to forks of the templates compatible with the new typeless gears code.

Please take special care to test using the development templates. You can ensure they are being used by monitoring the mcollective logs during application creation. The template Git source should be cloned from the "ironcladlou" user's repositories rather than "openshift".

Comment 7 Mengjiao Gao 2012-10-23 07:47:01 UTC
Tested this issue on devenv_2363, found that the rubyonrails and spring apps still stayed on DEPLOYING status for more than an hour.And got 503 error when visit their app urls.

Steps to test:
1. Go to website and login
2. Create the spring app used the development templates.Check the  /var/log/mcollective.log at the same time.
   The log file shown as follows:
************************************************************************* 
I, [2012-10-23T03:38:52.765893 #1401]  INFO -- : openshift.rb:316:in `cartridge_do_action' cartridge_do_action validation = jbosseap-6.0 configure 'springtemp2' '1212121212121212' 'c3e6a59c253a4dd396b4bc3c7694d712' 'git://github.com/ironcladlou/spring-eap6-quickstart.git'
I, [2012-10-23T03:38:52.782394 #1401]  INFO -- : openshift.rb:348:in `cartridge_do_action' cartridge_do_action executing /usr/bin/runcon -l s0-s0:c0.c1023 /usr/libexec/openshift/cartridges/jbosseap-6.0/info/hooks/configure 'springtemp2' '1212121212121212' 'c3e6a59c253a4dd396b4bc3c7694d712' 'git://github.com/ironcladlou/spring-eap6-quickstart.git' 2>&1
************************************************************************* 
3.Check the status of the app. 
  Visit the app url.
4.Wait for a while , and check the status and app url again.

Tested all development templates types , and found that the wordpress, kitchensink,django,drupal,and cakephp can turn to STARTED status after a while, and their urls can be accessed successfully. But the rubyonrails and spring apps stayed on DEPLOYING status for too long time.

Comment 8 Dan Mace 2012-10-24 19:39:06 UTC
All template related issues should be resolved by:

https://github.com/openshift/li/pull/526
https://github.com/openshift/origin-server/pull/754

Comment 9 Mengjiao Gao 2012-10-26 06:15:33 UTC
Tested this issue on devenv_2384, and all the development template types' apps (including Spring and rubyonrails)can turn to STARTED status after a while,and their urls can be accessed successfully.

The step to verify is same with the comments in bug 863936.

-------------------------------------------------------------------
Steps:
1. Co to website and create spring app using development template
2. tailf /var/log/mcollective.log

Result:
tailf /var/log/mcollective.log: 
@action="cartridge_do",
 @agent="openshift",
 @caller="uid=494",
 @data=
  {:cartridge=>"jbosseap-6.0",
   :process_results=>true,
   :args=>
    "'spring' '2384t1' '53fbe9f5b7ef4e289e7d7859be32bb3f' 'git://github.com/ironcladlou/spring-eap6-quickstart.git'",
   :action=>"configure"},
 @sender="ip-10-114-38-241",
 @time=1351220211,
 @uniqid="2d71e1def22ec72373375b2c8a2419ca">

Access app via browsers, app is temporarily unavailable after creation, but they will become available after a short while.
So is the case with ruby on rails template.
So move this bug to verified now.


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