Project

General

Profile

Actions

Bug #32292

closed

Foreman 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"

Added by Evgeni Golov about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1945916

Description of problem:

/ All services displayed [FAIL]
Some services are not running (, )
--------------------------------------------------------------------------------
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"

  1. echo $?
    1

Here while checking the status of sidekiq instance services we are referring "orchestrator.yml.rpmsave" and "worker.yml.rpmsave" files

/ displaying
\xe2\x97\x8f - 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
\xe2\x97\x8f - 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"

Actions

Also available in: Atom PDF