Project

General

Profile

Actions

Bug #6450

closed

Hammer ping command returns wrong return code

Added by Adam Price over 10 years ago. Updated over 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1094826
Description of problem:
When running hammer ping command it is returning a non zero return code even if all services is ok

Version-Release number of selected component (if applicable):
  1. hammer --version
    hammer (0.1.0) * hammer_cli_foreman (0.1.0) * hammer_cli_katello (0.0.3)

How reproducible:
Aways

Steps to Reproduce:
1. Run hammer ping
2. Check if all services have the ok status
3. Run echo $? to read the return code

Actual results:
  1. hammer ping
    candlepin:
    Status: ok
    Server Response: Duration: 24ms
    candlepin_auth:
    Status: ok
    Server Response: Duration: 26ms
    pulp:
    Status: ok
    Server Response: Duration: 16ms
    pulp_auth:
    Status: ok
    Server Response: Duration: 26ms
    elasticsearch:
    Status: ok
    Server Response: Duration: 28ms
    katello_jobs:
    Status: ok
    Server Response: Duration: 39ms
  1. echo $?
    1
Expected results:
  1. hammer ping
    candlepin:
    Status: ok
    Server Response: Duration: 24ms
    candlepin_auth:
    Status: ok
    Server Response: Duration: 26ms
    pulp:
    Status: ok
    Server Response: Duration: 16ms
    pulp_auth:
    Status: ok
    Server Response: Duration: 26ms
    elasticsearch:
    Status: ok
    Server Response: Duration: 28ms
    katello_jobs:
    Status: ok
    Server Response: Duration: 39ms
  1. echo $?
    0

Additional info:

Actions #1

Updated by Anonymous over 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #2

Updated by Eric Helms over 10 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms over 10 years ago

  • Target version set to 48
Actions #4

Updated by Eric Helms over 10 years ago

  • Translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF