Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ for target in "${TARGET_RELEASES[@]}"; do
upgrade
check_upgrade_status

if [[ $(oc get nodes -l node.openshift.io/os_id=rhel) != "" ]]; then
if [[ "${TARGET_MINOR_VERSION}" -lt "19" ]] && [[ $(oc get nodes -l node.openshift.io/os_id=rhel) != "" ]]; then
echo "Found rhel worker..."
run_command "oc get node -owide"
if [[ $(oc get machineconfigpools worker -ojson | jq -r '.spec.paused') == "true" ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,17 @@ for mcp in "${normal_mcp_arr[@]}"
do
check_mcp ${mcp} "True"
done
current_minor_ver="$(oc get clusterversion --no-headers | awk '{print $2}' | cut -f2 -d.)"
echo -e "current minor version: ${current_minor_ver} \n"

IFS=" " read -r -a arr <<<"$PAUSED_MCP_NAME"
for mcp in "${arr[@]}";
do
check_mcp $mcp "False"
printf "\n"
unpause ${mcp}
printf "\n"
if [[ $(oc get nodes -l node.openshift.io/os_id=rhel) != "" ]]; then
if [[ "${current_minor_ver}" -lt "19" ]] && [[ $(oc get nodes -l node.openshift.io/os_id=rhel) != "" ]]; then
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..."
run_command "oc get machineconfigpools"
run_command "oc get node -owide"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ EOF

# Upgrade RHEL node
function rhel_upgrade(){
local testcase="rhel"
echo "Upgrading RHEL nodes"
echo "Validating parsed Ansible inventory"
ansible-inventory -i "${SHARED_DIR}/ansible-hosts" --list --yaml
echo -e "\nRunning RHEL worker upgrade"
sed -i 's|^remote_tmp.*|remote_tmp = /tmp/.ansible|g' /usr/share/ansible/openshift-ansible/ansible.cfg
ansible-playbook -i "${SHARED_DIR}/ansible-hosts" /usr/share/ansible/openshift-ansible/playbooks/upgrade.yml -vvv || { export UPGRADE_FAILURE_TYPE="${testcase}"; return 1; }

check_upgrade_status
}

Expand Down