Description of problem: Scale up an app and idle the scale-up gear, then unidle it, its state is still idle but reported as unidled successfully. Version-Release number of selected component (if applicable): devenv_4800 How reproducible: Always Steps to Reproduce: 1. Create a scalable app # rhc app create pls perl-5.10 -s 2. Scale up the app # rhc cartridge scale perl-5.10 -a pls --min 2 3. Check the gear state # rhc app show pls -g 4. idle the scale-up gear # oo-admin-ctl-gears idlegear 3894337ae0ce11e39a3c9a3492b7916e 5. unidle the scale-up gear # oo-admin-ctl-gears unidlegear 3894337ae0ce11e39a3c9a3492b7916e 6. List the idle gear # oo-admin-ctl-gears listidle 7. Check the gear state # rhc app show pls -g Actual results: 5. [root@ip-10-187-40-86 ~]# oo-admin-ctl-gears unidlegear 3894337ae0ce11e39a3c9a3492b7916e Unidling gear 3894337ae0ce11e39a3c9a3492b7916e ... [ OK ] 6. [root@ip-10-187-40-86 ~]# oo-admin-ctl-gears listidle 3894337ae0ce11e39a3c9a3492b7916e is idled 7. [root@qwang us]# rhc app show pls -g ID State Cartridges Size SSH URL -------------------------------- ------- --------------------- ----- ----------------------------------------------------------------------------------- 537c4ab598ef5cb49800001e started haproxy-1.4 perl-5.10 small 537c4ab598ef5cb49800001e.rhcloud.com 3894337ae0ce11e39a3c9a3492b7916e idle haproxy-1.4 perl-5.10 small 3894337ae0ce11e39a3c9a3492b7916e.rhcloud.com Expected results: After unidling, step 6 shouldn't list this gear and the gear state is started. Additional info: [3894337ae0ce11e39a3c9a3492b7916e-d.dev.rhcloud.com runtime]\> cat .state idle
As of https://bugzilla.redhat.com/show_bug.cgi?id=1093776, only applications can be unidled not individual gears. A message has been added to inform Operator when attempting to unidle a secondary gear without Broker authorization.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/1c2e1f18585de44aea2260bfa138ba7b7bd1a767 Bug 1099772 - Add message for unidle on secondary gear
Created attachment 898141 [details] Failed test.
Tested on devenv_4805 [root@qwang 20140522]# rhc app show pls -g ID State Cartridges Size SSH URL -------------------------------- ------- --------------------- ----- ----------------------------------------------------------------------------------- 537d9c34d4ad565688000001 started haproxy-1.4 perl-5.10 small 537d9c34d4ad565688000001.rhcloud.com 73efacf2e17c11e3b3ef7a9e5bc958f0 idle haproxy-1.4 perl-5.10 small 73efacf2e17c11e3b3ef7a9e5bc958f0.rhcloud.com [root@ip-10-95-169-227 openshift]# oo-admin-ctl-gears unidlegear 73efacf2e17c11e3b3ef7a9e5bc958f0 Unidling gear 73efacf2e17c11e3b3ef7a9e5bc958f0 ... [ FAILED ] Cannot unidle application using gear 73efacf2e17c11e3b3ef7a9e5bc958f0. Head gear must be used to unidle applications. So we can get the message. As comment 2, if we unidle the head gear, all gears are started. [root@ip-10-95-169-227 openshift]# oo-admin-ctl-gears unidlegear 537d9c34d4ad565688000001 Unidling gear 537d9c34d4ad565688000001 ... [ OK ] [root@ip-10-95-169-227 openshift]# oo-admin-ctl-gears listidle [root@ip-10-95-169-227 openshift]# [root@qwang 20140522]# rhc app show pls -g ID State Cartridges Size SSH URL -------------------------------- ------- --------------------- ----- ----------------------------------------------------------------------------------- 537d9c34d4ad565688000001 started haproxy-1.4 perl-5.10 small 537d9c34d4ad565688000001.rhcloud.com 73efacf2e17c11e3b3ef7a9e5bc958f0 started haproxy-1.4 perl-5.10 small 73efacf2e17c11e3b3ef7a9e5bc958f0.rhcloud.com Need to update case 285003.