Bug 1093776 - Idler doesn't unidle secondary gears in a scaled application
Summary: Idler doesn't unidle secondary gears in a scaled application
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: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1096789 1099772
TreeView+ depends on / blocked
 
Reported: 2014-05-02 15:45 UTC by Dan Mace
Modified: 2015-05-14 23:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1096789 (view as bug list)
Environment:
Last Closed: 2014-07-15 10:28:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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