Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27779

`foreman-maintain health check` should check all the services running first

XMLWordPrintable

    • Moderate
    • None

      Description of problem:

      Currently, `foreman-maintain health check` runs the following checks:

       

      Running ForemanMaintain::Scenario::FilteredScenario
      ================================================================================
      Check number of fact names in database:                               [OK]
      --------------------------------------------------------------------------------
      Check whether all services are running:                               [OK]
      --------------------------------------------------------------------------------
      Check whether all services are running using the ping call:           [OK]
      --------------------------------------------------------------------------------
      Check for paused tasks:                                               [OK]
      --------------------------------------------------------------------------------
      Check whether system is self-registered or not:                       [OK]
      --------------------------------------------------------------------------------
      

      however, when the db is down, it shows:

       

      Setup hammer:
      Configuring Hammer CLI... 

      This is kind of misleading and people have no clue what went wrong. Same thing when doing the upgrade check.

       

      How reproducible:

      Easy

      Is this issue a regression from an earlier version:

      no

      Steps to Reproduce:

      1. stop the PostgreSQL service

      2. run `foreman-maintain health check`  or `satellite-maintain upgrade check --target-version 6.x.z`

      Actual behavior:

      The command stops at configuring hammer. An error message appears, such as:

      Setup hammer: [SKIPPED] Satellite server is not running. Hammer can't be setup now.

      Expected behavior:

      'Check whether all services are running:  ' should be checked first.

      "Business Impact / Additional info:

       

              ehelms@redhat.com Eric Helms
              rhn-support-mattj Matt JIA
              Lukas Pramuk Lukas Pramuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: