Bug 1099772 - Failed to unidle a scale-up gear
Summary: Failed to unidle a scale-up gear
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.x
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1093776
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-21 07:34 UTC by Qixuan Wang
Modified: 2015-05-14 23:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-15 10:29:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qixuan Wang 2014-05-21 07:34:57 UTC
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

Comment 1 Jhon Honce 2014-05-21 17:36:59 UTC
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.

Comment 2 openshift-github-bot 2014-05-21 21:40:43 UTC
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

Comment 3 Jhon Honce 2014-05-21 21:54:35 UTC
Created attachment 898141 [details]
Failed test.

Comment 5 Qixuan Wang 2014-05-22 02:59:34 UTC
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.


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