Bug 755070 - ping returns 0 - tomcat6 is switched off
Summary: ping returns 0 - tomcat6 is switched off
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Katello
Classification: Retired
Component: Webservice API
Version: 1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-drop3-bugs
TreeView+ depends on / blocked
 
Reported: 2011-11-18 17:57 UTC by Garik Khachikyan
Modified: 2015-01-04 21:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-11-18 18:15:30 UTC
Embargoed:


Attachments (Terms of Use)

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".


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