Bug 1019723

Summary: [origin_ui_82]Could not deploy successfully for scaled-up gear via rhc deploy
Product: OpenShift Online Reporter: Wei Sun <wsun>
Component: ContainersAssignee: Andy Goldstein <agoldste>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, dmcphers, ffranz, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:24:23 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 Wei Sun 2013-10-16 09:42:13 UTC
Description of problem:
Create a scaling  application ,and scale up the app.Then try to  disable auto-deploy,and change something.After deploy the change via `rhc deploy`,check  all gears' url,but only web gear is changed,scaled-up gear is not changed.

Version-Release number of selected component (if applicable):
devenv_3901
fork_ami_origin_ui_82_910
rhc-1.16.0 (build from fork_ami_origin_ui_82_910)


How reproducible:
Always

Steps to Reproduce:
1.Create a scalable app
2.Scale up the app via RHC
3.Disable auto-deploy via rhc
4.Change something in local repo,and commit
5.Deploy the change via rhc
6.Check app's gears' url
7.Access all gears' url

Actual results:
5.[wsun@dhcp-8-229 perls]$ rhc deploy 0d66700 -a perls
Deployment of git ref '0d66700' in progress for application perls ...
Stopping Perl cartridge
[Wed Oct 16 03:55:29 2013] [warn] PassEnv variable SHELL was undefined
[Wed Oct 16 03:55:29 2013] [warn] PassEnv variable USER was undefined
[Wed Oct 16 03:55:29 2013] [warn] PassEnv variable LOGNAME was undefined
Waiting for stop to finish
Syncing git content to other proxy gears
Building git ref '0d66700', commit 0d66700
Building Perl cartridge
Preparing build for deployment
Prepared deployment artifacts in /var/lib/openshift/525e441770466935900001c6/app-deployments/2013-10-16_03-55-30.097
Deployment id is 7d1d8be5
Distributing deployment to child gears
Activating deployment
Starting Perl cartridge
Success

6.[wsun@dhcp-8-229 test]$ rhc app-show perls --gears
ID                       State   Cartridges            Size  SSH URL
------------------------ ------- --------------------- ----- -----------------------------------------------------------------------------
525e441770466935900001c6 started perl-5.10 haproxy-1.4 small 525e441770466935900001c6.rhcloud.com
525e44a4704669075e000005 started perl-5.10 haproxy-1.4 small 525e44a4704669075e000005.rhcloud.com

7.For scale-up gear,change is not deployed.

Expected results:
Change should be deployed for all gears.

Additional info:

Comment 1 Meng Bo 2013-10-22 10:27:09 UTC
Checked on devenv_3927,

After gear deploy on the head gear, do a remotedeploy with deployments datetime, the deployment on the 2nd web gear can be activated.

Comment 2 Andy Goldstein 2013-10-23 12:18:38 UTC
https://github.com/openshift/origin-server/pull/3955

Comment 3 Wei Sun 2013-10-24 00:28:16 UTC
Verified on devenv_3937

After deploying for a scalable app via rhc deploy,changes are deployed for all gears.