Project

General

Profile

Bug #16870

server_status to call CandlepinPing.ping just once

Added by Pavel Moravec over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Subscriptions
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Getting katello status fetches data from Candlepin redundantly many times. See https://github.com/Katello/katello/blob/master/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb#L238.

Let call the Katello::Resources::Candlepin::CandlepinPing.ping just once and store it in a variable referred later on.

Associated revisions

Revision 6343a0a2 (diff)
Added by Pavel Moravec over 4 years ago

fixes #16870 - server_status to call CandlepinPing.ping just once

Call the Katello::Resources::Candlepin::CandlepinPing.ping just once
and store it in a variable referred later on.

Signed-off-by: Pavel Moravec <>

History

#1 Updated by The Foreman Bot over 4 years ago

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

#2 Updated by Pavel Moravec over 4 years ago

(I am little bit unsure if this API isnt deprecated - calling:

curl --stderr /dev/null --insecure --request GET https://satellite.example.com:443/katello/api/status

the method from api/v2/ping_controller.rb is executed)

#3 Updated by Pavel Moravec over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 188

Also available in: Atom PDF