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:
Cloned to bz#1218049 against Enterprise product to give proper attention to this.
This issue should be fixed by https://github.com/openshift/origin-server/pull/6139
Close the bug according to comment#4.