Skip to content

Commit 834374f

Browse files
committed
check MCP status in unpause worker
1 parent 3f68cbf commit 834374f

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

ci-operator/step-registry/cucushift/upgrade/cpou/unpause-worker-mcp/cucushift-upgrade-cpou-unpause-worker-mcp-commands.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,5 @@ do
100100
printf "\n"
101101
unpause ${mcp}
102102
printf "\n"
103-
if [[ "${current_minor_ver}" -lt "19" ]] && [[ $(oc get nodes -l node.openshift.io/os_id=rhel) != "" ]]; then
104-
echo "Found rhel worker, this step is supposed to be used in eus upgrade, skipping mcp checking here, need to check it after rhel worker upgraded..."
105-
run_command "oc get machineconfigpools"
106-
run_command "oc get node -owide"
107-
else
108-
check_mcp ${mcp} "True"
109-
fi
110-
done
103+
check_mcp ${mcp} "True"
104+
done

ci-operator/step-registry/cucushift/upgrade/rhel-worker/cucushift-upgrade-rhel-worker-commands.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ function rhel_upgrade(){
213213
ansible-inventory -i "${SHARED_DIR}/ansible-hosts" --list --yaml
214214
echo -e "\nRunning RHEL worker upgrade"
215215
sed -i 's|^remote_tmp.*|remote_tmp = /tmp/.ansible|g' /usr/share/ansible/openshift-ansible/ansible.cfg
216-
ansible-playbook -i "${SHARED_DIR}/ansible-hosts" /usr/share/ansible/openshift-ansible/playbooks/upgrade.yml -vvv || true
217-
sleep 4h
218-
216+
ansible-playbook -i "${SHARED_DIR}/ansible-hosts" /usr/share/ansible/openshift-ansible/playbooks/upgrade.yml -vvv || { export UPGRADE_FAILURE_TYPE="${testcase}"; return 1; }
219217
check_upgrade_status
220218
}
221219

0 commit comments

Comments
 (0)