Bug #19262

hammer ping returns exit code 0 when service is failing

Added by John Mitsch 3 months ago. Updated 3 months ago.

Status:Closed
Priority:Normal
Assigned To:Andrew Kofink
Category:Hammer
Target version:Team Brad - Iteration 13
Difficulty: Pull request:https://github.com/Katello/hammer-cli-katello/pull/498
Bugzilla link:
Story points-
Velocity based estimate-
ReleaseKatello 3.4.0Release relationshipAuto

Description

[root@john ~]# hammer ping
candlepin:
Status: ok
Server Response: Duration: 56ms
candlepin_auth:
Status: ok
Server Response: Duration: 60ms
pulp:
Status: FAIL
Server Response:
foreman_tasks:
Status: ok
Server Response: Duration: 522ms

[root@john ~]# echo $?
0

Expected Results:
the exit code is something other than zero

Associated revisions

Revision 7a886226
Added by Andrew Kofink 3 months ago

Fixes #19262 - Return 1 if any service fails ping (#498)

History

#1 Updated by John Mitsch 3 months ago

  • Category set to Hammer

#2 Updated by Andrew Kofink 3 months ago

  • Status changed from New to Assigned
  • Assigned To set to Andrew Kofink

#3 Updated by The Foreman Bot 3 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/498 added

#4 Updated by Andrew Kofink 3 months ago

  • Target version set to Team Brad - Iteration 13

#5 Updated by John Mitsch 3 months ago

  • Release set to Katello 3.4.0

#6 Updated by Anonymous 3 months ago

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

Also available in: Atom PDF