Bug 1023207

Summary: oo-admin-chk does not detect scaled gears missing the app_dns mongo entry
Product: OpenShift Online Reporter: Wesley Hearn <whearn>
Component: PodAssignee: Rajat Chopra <rchopra>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: abhgupta, rchopra, xtian, zzhao
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:26:39 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:

Description Wesley Hearn 2013-10-24 21:27:07 UTC
Description of problem:
oo-admin-chk does not detect scaled gears missing the app_dns mongo entry

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

How reproducible:
Always

Steps to Reproduce:
1. Create scalable application
2. Somehow remove the mongo app_end entry for the gear
3. Run oo-admin-chk

Actual results:
# oo-admin-chk 
Started at: 2013-10-24 17:20:34 -0400
Time to fetch mongo data: 0.075s
Total gears found in mongo: 203
Time to get all gears from nodes: 20.695s
Total gears found on the nodes: 201
Total nodes that responded : 5
Success
Total time: 20.771s
Finished at: 2013-10-24 17:20:55 -0400


Expected results:
oo-admin-chk should fail.

Additional info:

Comment 1 Rajat Chopra 2013-10-25 19:36:41 UTC
Fixed with https://github.com/openshift/origin-server/pull/4001

Comment 2 Abhishek Gupta 2013-10-25 19:44:55 UTC
The check has been added to oo-admin-chk at level 0.

Comment 4 zhaozhanqi 2013-10-28 06:36:07 UTC
Tested this on devenv_3593,it has been fixed.

 oo-admin-chk -l 0
Started at: 2013-10-28 02:05:44 -0400                                                                                                                                                                                                        
Time to fetch mongo data: 0.014s                                                                                                                                                                                                             
Total gears found in mongo: 19                                                                                                                                                                                                               
Time to get all gears from nodes: 20.915s                                                                                                                                                                                                    
Total gears found on the nodes: 19                                                                                                                                                                                                           
Total nodes that responded : 2                                                                                                                                                                                                               
Check failed.                                                                                                                                                                                                                                
Application 'zqpy33' with Id '526de1d160aeea26d80001db' has DNS gear missing.                                                                                                                                                                
Please refer to the oo-admin-repair tool to resolve some of these inconsistencies.                                                                                                                                                           
Total time: 20.93s                                                                                                                                                                                                                           
Finished at: 2013-10-28 02:06:05 -0400