Hide Forgot
Description of problem: Change the MIN setting for a cartridge to 2 in the manifest file, and Max to 4; Create a scalable app,but the gear's number is still 1. Version-Release number of selected component (if applicable): devenv_3684 How reproducible: always Steps to Reproduce: 1. Change the Min setting for perl cartridge to 2,and Max to 4; #vim /usr/libexec/openshift/cartridges/perl/metadata/manifest.yml 2.clear the cache on broker, then reboot the broker server and node server #oo-admin-broker-cache -c --console 3.create a scalable app with perl cartridge. #rhc app create perlapp perl -s 4.check the status of app #rhc app show --gears perlapp Actual results: only one gear is started ID State Cartridges Size SSH URL -------------------------------- ------- --------------------- ----- -------------------------------------------------------------- 0245861a0af611e3bc2c22000ab3150e started perl-5.10 haproxy-1.4 small 0245861a0af611e3bc2c22000ab3150e.rhcloud.com Expected results: The gear's number should be 2 Additional info: the Max setiing is working The Minnum is 2;but the num of gear is 1 # rhc app show perlapp perlapp @ http://perlapp-xiaom.dev.rhcloud.com/ (uuid: 0245861a0af611e3bc2c22000ab3150e) ---------------------------------------------------------------------------------------- Domain: xiaom Created: 2:42 PM Gears: 2 (defaults to small) Git URL: ssh://0245861a0af611e3bc2c22000ab3150e.rhcloud.com/~/git/perlapp.git/ SSH: 0245861a0af611e3bc2c22000ab3150e.rhcloud.com perl-5.10 (Perl 5.10) --------------------- Scaling: x2 (minimum: 2, maximum: 4) on small gears haproxy-1.4 (OpenShift Web Balancer) ------------------------------------
Looks like this is working in devenv_3966, seen from mcollective log, Min value takes effect, and it is creating 2 gears. But due to BZ#1024698, app is failed to created.
According to comment 1, move this bug to ON_QA.
Verified this bug with devenv_devenv_3973, and PASS. Set Min to 2, Max to 10 in maifest file, then create scalable app, app could be created successfully. $ rhc domain show -p redhat Domain jialiu ------------- Created: 1:26 PM Allowed Gear Sizes: small scaphp53app @ http://scaphp53app-jialiu.dev.rhcloud.com/ (uuid: 5271ea0cdefea7db1e000006) ----------------------------------------------------------------------------------------- Domain: jialiu Created: 1:26 PM Gears: 2 (defaults to small) Git URL: ssh://5271ea0cdefea7db1e000006.rhcloud.com/~/git/scaphp53app.git/ SSH: 5271ea0cdefea7db1e000006.rhcloud.com php-5.3 (PHP 5.3) ----------------- Scaling: x2 (minimum: 2, maximum: 10) on small gears haproxy-1.4 (Web Load Balancer) ------------------------------- Gears: Located with php-5.3 You have 1 application in your domain. $ rhc app show -a scaphp53app --gears -predhat ID State Cartridges Size SSH URL ------------------------ ------- ------------------- ----- ------------------------------------------------------------------------ 5271ea0cdefea7db1e000006 started php-5.3 haproxy-1.4 small 5271ea0cdefea7db1e000006.rhcloud.com 851962571337641431662592 started php-5.3 haproxy-1.4 small 851962571337641431662592.rhcloud.com
Forget to confirm with developers, so I move this back to it original status. From QE side, this bug is fixed, if devel also think it is already fixed, pls move it to ON_QA status.
If this is already fixed and verified. please go ahead and mark it verified/closed.
check on puddle [2.0-2013-11-05.1] # rhc app create test1 https://raw.github.com/xiama/pythoncartri/master/metadata/manifest.yml -s # rhc app show test1 --gears ID State Cartridges Size SSH URL ------------------------ ------- ---------------------------- ----- ----------------------------------------------------------------------- 527ae5ffab6546400a000001 started xiama-python-2.6 haproxy-1.4 small 527ae5ffab6546400a000001.com.cn 527ae5ffab6546400a000006 started xiama-python-2.6 haproxy-1.4 small 527ae5ffab6546400a000006.com.cn # rhc app show test1 test1 @ http://test1-xiaom.ose-1105.com.cn/ (uuid: 527ae5ffab6546400a000001) ---------------------------------------------------------------------------- Domain: xiaom Created: 5:59 PM Gears: 2 (defaults to small) Git URL: ssh://527ae5ffab6546400a000001.com.cn/~/git/test1.git/ SSH: 527ae5ffab6546400a000001.com.cn Deployment: auto (on git push) xiama-python-2.6 (Python 2.6) ----------------------------- From: https://raw.github.com/xiama/pythoncartri/master/metadata/manifest.yml Scaling: x2 (minimum: 2, maximum: 4) on small gears
(In reply to Ma xiaoqiang from comment #6) > check on puddle [2.0-2013-11-05.1] > # rhc app create test1 > https://raw.github.com/xiama/pythoncartri/master/metadata/manifest.yml -s > # rhc app show test1 --gears > ID State Cartridges Size SSH URL > ------------------------ ------- ---------------------------- ----- > ----------------------------------------------------------------------- > 527ae5ffab6546400a000001 started xiama-python-2.6 haproxy-1.4 small > 527ae5ffab6546400a000001.com.cn > 527ae5ffab6546400a000006 started xiama-python-2.6 haproxy-1.4 small > 527ae5ffab6546400a000006.com.cn > # rhc app show test1 > test1 @ http://test1-xiaom.ose-1105.com.cn/ (uuid: 527ae5ffab6546400a000001) > ---------------------------------------------------------------------------- > Domain: xiaom > Created: 5:59 PM > Gears: 2 (defaults to small) > Git URL: > ssh://527ae5ffab6546400a000001.com.cn/~/git/test1.git/ > SSH: 527ae5ffab6546400a000001.com.cn > Deployment: auto (on git push) > > xiama-python-2.6 (Python 2.6) > ----------------------------- > From: > https://raw.github.com/xiama/pythoncartri/master/metadata/manifest.yml > Scaling: x2 (minimum: 2, maximum: 4) on small gears check it on devenv_3998 # rhc app create phps php-5.3 -s # rhc app show phps --gears ID State Cartridges Size SSH URL ------------------------ ------- ------------------- ----- ----------------------------------------------------------------------- 527aef549d108cc579000005 started php-5.3 haproxy-1.4 small 527aef549d108cc579000005.rhcloud.com 187863129393282555052032 started php-5.3 haproxy-1.4 small 187863129393282555052032.rhcloud.com # rhc app show phps php-5.3 (PHP 5.3) ----------------- Scaling: x2 (minimum: 2, maximum: 3) on small gears