Project

General

Profile

Actions

Bug #22928

closed

Foreman-maintain showed "Check still failing after attempt to fix. Skipping" though check passed after fixing.

Added by Nikhil Kathole about 6 years ago. Updated 3 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

https://github.com/theforeman/foreman_maintain/blob/531e504360858b0df97bf49c24087bb4d43c94d9/lib/foreman_maintain/runner.rb#L127

# ./bin/foreman-maintain health check --label hammer-ping -y
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check whether all services are running using hammer ping:             [FAIL]
Error: Connection refused - connect(2)
--------------------------------------------------------------------------------
katello-service restart:
| All services are running.                                           [OK]
--------------------------------------------------------------------------------
Rerunning the check after fix procedure
Check whether all services are running using hammer ping:             [OK]
--------------------------------------------------------------------------------
Check still failing after attempt to fix. Skipping

Steps:
1. Stop katello-services
2. ./bin/foreman-maintain health check --label hammer-ping -y

Expected result: If check passed after fixing, it should not show "Check still failing after attempt to fix. Skipping"

Additional Info :

Running health check without "-y" worked fine.

# ./bin/foreman-maintain health check --label hammer-ping
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check whether all services are running using hammer ping:             [FAIL]
Error: Connection refused - connect(2)
--------------------------------------------------------------------------------
Continue with step [katello-service restart]?, [y(yes), n(no), q(quit)] y
katello-service restart:
- All services are running.                                           [OK]
--------------------------------------------------------------------------------
Rerunning the check after fix procedure
Check whether all services are running using hammer ping:             [OK]
--------------------------------------------------------------------------------
Actions #1

Updated by Eric Helms 3 months ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF