Bug 1093776

Summary: Idler doesn't unidle secondary gears in a scaled application
Product: OpenShift Online Reporter: Dan Mace <dmace>
Component: ContainersAssignee: Dan Mace <dmace>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jhonce, xtian, yadu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1096789 (view as bug list) Environment:
Last Closed: 2014-07-15 10:28:36 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:
Bug Depends On:    
Bug Blocks: 1096789, 1099772    

Description Dan Mace 2014-05-02 15:45:43 UTC
Description of problem:

When unidling scaled apps, secondary gears are left idle.

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


How reproducible:

Idle all gears in a scaled application using `oo-admin-ctl-gears idle`. Unidle the primary gear via HTTP request or via `oo-admin-ctl-gears unidle`.

Steps to Reproduce:
1. Create a scaled php-5.5 application
2. Add the mysql-5.4 cartridge to the application
3. Idle all gears in the application
4. Unidle the primary gear

Actual results:

The mysql cartridge in its own gear remains idle.

Expected results:

The mysql cartridge (and any other secondary cartridges) should also be started during unidle.

Additional info:

This occurs because the unidle logic is implemented a gear-local ApplicationContainer#start_gear in openshift-origin-node. The code could be changed to invoke a broker start event which would start up the entire application rather than just the primary gear.

Comment 2 Yan Du 2014-05-06 08:17:42 UTC
Test on devenv_4760, issue have been fixed

After unidle the primary gear via HTTP request or via `oo-admin-ctl-gears unidle`, the db gear's state is started.

move bug to verified.