Bug #24797
closedNo services found matching your parameters foreman_tasks resource(s) are failing
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1624699
Description of problem:
Foreman-maintain failed to start foreman-tasks service.
- rpm -qa | grep maintain
rubygem-foreman_maintain-0.2.7-1.el7sat.noarch
How reproducible: always
Steps to Reproduce:
1. foreman-maintain service stop --only dynflowd
2. foreman-maintain health check
Actual results:
- foreman-maintain health check
Running ForemanMaintain::Scenario::FilteredScenario ================================================================================
Check for verifying syntax for ISP DHCP configurations: [OK]
--------------------------------------------------------------------------------
Check for paused tasks: [OK]
--------------------------------------------------------------------------------
Check whether all services are running using hammer ping: [FAIL]
foreman_tasks resource(s) are failing.
--------------------------------------------------------------------------------
Continue with step [Restart applicable services]?, [y(yes), n(no), q(quit)] y
Restart applicable services:
Stopping the following service(s):
[FAIL]
No services found matching your parameters
--------------------------------------------------------------------------------
Rerunning the check after fix procedure
Check whether all services are running using hammer ping: [FAIL]
foreman_tasks resource(s) are failing.
--------------------------------------------------------------------------------
Continue with step [Restart applicable services]?, [y(yes), n(no), q(quit)] y
Restart applicable services:
Stopping the following service(s):
[FAIL]
No services found matching your parameters
and foreman-maintain.log showed
E, [2018-09-03 02:13:18-0400 #14784] ERROR -- : No services found matching your parameters (RuntimeError)
/usr/share/gems/gems/foreman_maintain-0.2.7/definitions/features/service.rb:49:in `filtered_services'
/usr/share/gems/gems/foreman_maintain-0.2.7/definitions/procedures/service/base.rb:18:in `run_service_action'
/usr/share/gems/gems/foreman_maintain-0.2.7/definitions/procedures/service/restart.rb:17:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/executable.rb:139:in `__run__'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner/execution.rb:83:in `block (2 levels) in run'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner/execution.rb:107:in `capture_errors'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner/execution.rb:82:in `block in run'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner/execution.rb:101:in `with_metadata_calculation'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner/execution.rb:81:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner.rb:116:in `run_step'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner.rb:105:in `run_steps'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner.rb:98:in `execute_scenario_steps'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner.rb:51:in `run_scenario'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner.rb:32:in `block in run'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner.rb:31:in `each'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/runner.rb:31:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/cli/base.rb:47:in `run_scenario'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/cli/health_command.rb:31:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.7/lib/foreman_maintain/cli.rb:27:in `run'
/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.7/bin/foreman-maintain:12:in `<top (required)>'
/usr/bin/foreman-maintain:23:in `load'
/usr/bin/foreman-maintain:23:in `<main>'
Expected results: Restart applicable services should work.
Additional info:
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/209 added
Updated by Martin Bacovsky over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|4021e22510c4fb4113ec05aae93515c68c95fa1a.
Updated by Ivan Necas over 5 years ago
- Fixed in Releases foreman_maintain-0.2.9 added