Project

General

Profile

Bug #27229

ping api call doesn't return messages

Added by Amir Fefer 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

`ping` API call doesn't return messages, so

Katello::Ping.ping[:services]
returns:
{:pulp=>{:status=>"FAIL", :message=>"Not all necessary pulp workers running at https://centos7-devel.tlv-fedora25.example.com/pulp/api/v2/."},
 :pulp_auth=>{:status=>"FAIL", :message=>"Skipped pulp_auth check after failed pulp check"}, 
:candlepin=>{:status=>"ok", :duration_ms=>"56"},
 :candlepin_auth=>{:status=>"ok", :duration_ms=>"26"}, 
:foreman_tasks=>{:status=>"ok", :duration_ms=>"18373"}}

while the api (`/api/ping`) returns:

{"status":"FAIL","services":{"pulp":{"status":"FAIL"},"pulp_auth":{"status":"FAIL"},
"candlepin":{"status":"ok","duration_ms":"19"},
"candlepin_auth":{"status":"ok","duration_ms":"14"},
"foreman_tasks":{"status":"FAIL"}}}

Associated revisions

Revision 37c52033 (diff)
Added by Amir Fefer 3 months ago

Fixes #27229 - add message attribute to ping api

History

#1 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8196 added

#2 Updated by Amir Fefer 3 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Jonathon Turel 3 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.13.0

Also available in: Atom PDF