Bug #32292
closedForeman maintain service status command returns non "0" exit code due to some invalid services like "dynflow-sidekiq@orchestrator.yml.rpmsave, dynflow-sidekiq@worker.yml.rpmsave"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1945916
Description of problem:
/ All services displayed [FAIL]
Some services are not running (dynflow-sidekiq@orchestrator.yml.rpmsave, dynflow-sidekiq@worker.yml.rpmsave)
--------------------------------------------------------------------------------
Scenario [Status Services] failed.
The following steps ended up in failing state:
[service-status]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="service-status"
- echo $?
1
Here while checking the status of sidekiq instance services we are referring "orchestrator.yml.rpmsave" and "worker.yml.rpmsave" files
/ displaying dynflow-sidekiq@orchestrator.yml.rpmsave
\xe2\x97\x8f dynflow-sidekiq@orchestrator.yml.rpmsave.service - Foreman jobs daemon - orchestrator.yml.rpmsave on sidekiq
Loaded: loaded (/usr/lib/systemd/system/dynflow-sidekiq@.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2021-04-02 22:18:55 IST; 2min 49s ago
Docs: https://theforeman.org
Process: 15206 ExecStart=/usr/libexec/foreman/sidekiq-selinux -e ${RAILS_ENV} -r ${DYNFLOW_SIDEKIQ_SCRIPT} -C /etc/foreman/dynflow/%i.yml (code=exited, status=1/FAILURE)
Main PID: 15206 (code=exited, status=1/FAILURE)
/ displaying dynflow-sidekiq@worker.yml.rpmsave
\xe2\x97\x8f dynflow-sidekiq@worker.yml.rpmsave.service - Foreman jobs daemon - worker.yml.rpmsave on sidekiq
Loaded: loaded (/usr/lib/systemd/system/dynflow-sidekiq@.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Fri 2021-04-02 22:18:55 IST; 2min 49s ago
Docs: https://theforeman.org
Process: 15205 ExecStart=/usr/libexec/foreman/sidekiq-selinux -e ${RAILS_ENV} -r ${DYNFLOW_SIDEKIQ_SCRIPT} -C /etc/foreman/dynflow/%i.yml (code=exited, status=1/FAILURE)
Main PID: 15205 (code=exited, status=1/FAILURE)
So the exit code is returned as "1"
Updated by The Foreman Bot about 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/467 added
Updated by Evgeni Golov about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|1bfb85b133810c76b9e244a86a1c8f7538ab39bf.