Skip to content

Commit dfd4c08

Browse files
Merge pull request #8899 from openshift-cherrypick-robot/cherry-pick-8858-to-release-4.17
[release-4.17] OCPBUGS-38933: install-status reflects day 2 services
2 parents dcf8320 + 76d1bec commit dfd4c08

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

data/data/agent/files/usr/local/bin/install-status.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
source "issue_status.sh"
55

66
inactive_services() {
7-
local services="assisted-service.service agent-register-cluster.service agent-register-infraenv.service apply-host-config.service start-cluster-installation.service"
7+
local services="assisted-service.service agent-register-infraenv.service apply-host-config.service"
8+
if [ ! -e "/etc/assisted/add-nodes.env" ]; then
9+
# install workflow
10+
services+=" agent-register-cluster.service start-cluster-installation.service"
11+
else
12+
# add nodes workflow
13+
services+=" agent-import-cluster.service agent-add-node.service"
14+
fi
815
for s in ${services}; do
916
if ! systemctl is-active "${s}" >/dev/null; then
1017
printf "%s " "${s}"

0 commit comments

Comments
 (0)