Bug 1102557

Summary: Failed to repair the HA app with the head gear located on the unresponsive node
Product: OpenShift Online Reporter: Meng Bo <bmeng>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: ederevea, jokerman, mmccomas, nicholas_schuetz, pep
Target Milestone: ---Keywords: UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1218049 (view as bug list) Environment:
Last Closed: 2015-09-08 20:14:16 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: 1218049    

Description Meng Bo 2014-05-29 08:18:33 UTC
Description of problem:
Will meet the following error when trying to repair the app with HA enabled and the head gear located on the down node.
Failed to recover application with id: 53871de77a95a8e11d0000e4, error: undefined method `_id' for #<Array:0x00000007654ad0>

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

How reproducible:
always

Steps to Reproduce:
1. Setup multi-node env and district
2. Create scalable app and make the app HA enabled
3. Move the head gear of the HA app to the node which will be shutdown
4. Stop the mcollective service on the specified node
5. Try to repair the app with oo-admin-repair

Actual results:
bash-4.1# oo-admin-repair --removed-node
Started at: 2014-05-29 12:04:58 UTC
Total gears found in mongo: 4
Servers that are unresponsive:
        Server: ip-10-150-42-138 (district: dist1), Confirm [yes/no]: y

Some servers are unresponsive: ip-10-150-42-138

Found 1 unresponsive scalable apps that are recoverable.
haapp (id: 53871de77a95a8e11d0000e4)


Do you want to delete unresponsive servers from their respective districts [yes/no]: yes

Finished at: 2014-05-29 12:06:03 UTC
Total time: 65.397s
Failed to recover application with id: 53871de77a95a8e11d0000e4, error: undefined method `_id' for #<Array:0x00000007654ad0>
FAILED


Expected results:
Should fix the HA app with head gear down.

Additional info:

Comment 3 Evgheni Dereveanchin 2015-05-04 06:33:07 UTC
Cloned to bz#1218049 against Enterprise product to give proper attention to this.

Comment 4 Meng Bo 2015-05-20 05:44:06 UTC
This issue should be fixed by https://github.com/openshift/origin-server/pull/6139

Comment 5 Meng Bo 2015-08-05 02:27:18 UTC
Close the bug according to comment#4.