Bug 755070

Summary: ping returns 0 - tomcat6 is switched off
Product: [Retired] Katello Reporter: Garik Khachikyan <gkhachik>
Component: Webservice APIAssignee: Bryan Kearney <bkearney>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: cperry, mkoci
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: 2011-11-18 18:15:30 UTC Type: ---
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: 755097    

Description Garik Khachikyan 2011-11-18 17:57:50 UTC
Description of problem:
Recently katello/ping returns 0 for a case when candlepin service is off.

Version-Release number of selected component (if applicable):
recent katello: katello-0.1.110-2.el6.x86_64

How reproducible:
always on stopped tomcat6

Steps to Reproduce:
1. service tomcat6 stop;
2. curl -sk -uadmin:admin https://<fqdn>/katello/api/ping/ 
3. echo $?
  
Actual results:
0

Expected results:
non zero value.

Additional info:
Output from katello ping command:
---
{"result":"fail","status":{"pulp":{"result":"ok","duration_ms":"61"},"candlepin_auth":{"result":"fail","message":"Connection refused - connect(2)"},"pulp_auth":{"result":"ok","duration_ms":"64"},"candlepin":{"result":"fail","message":"Connection refused - connect(2)"}}}

Comment 1 Garik Khachikyan 2011-11-18 18:06:03 UTC
sorry - doing through curl...

will try with `katello ping` CLI command.

Comment 2 Garik Khachikyan 2011-11-18 18:15:30 UTC
so with cli command it's ok. I guess makes sense to close this "bug".