Skip to content

Commit

Permalink
MULTIARCH-4859 Adding an etcd optimization for slower disks (#55783)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvardema authored Aug 28, 2024
1 parent 60df629 commit 114007d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ tests:
env:
ARCH: s390x
BRANCH: "4.18"
ETCD_DISK_SPEED: slow
NODE_TUNING: "true"
TEST_TYPE: conformance-parallel
workflow: openshift-e2e-libvirt-upi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,24 @@ for i in {1..30}; do
sleep 15
done

# Patch etcd for allowing slower disks
if [[ "${ETCD_DISK_SPEED}" == "slow" ]]; then
echo "Patching etcd cluster operator..."
oc patch etcd cluster --type=merge --patch '{"spec":{"controlPlaneHardwareSpeed":"Slower"}}'
for i in {1..30}; do
ETCD_CO_AVAILABLE=$(oc get co etcd | grep etcd | awk '{print $3}')
if [[ "${ETCD_CO_AVAILABLE}" == "True" ]]; then
echo "Patched successfully!"
break
fi
sleep 15
done
if [[ "${ETCD_CO_AVAILABLE}" != "True" ]]; then
echo "Etcd patch failed..."
exit 1
fi
fi

date "+%F %X" > "${SHARED_DIR}/CLUSTER_INSTALL_END_TIME"

touch /tmp/install-complete
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ ref:
default: '40G'
- name: FIPS_ENABLED
default: 'false'
- name: ETCD_DISK_SPEED
default: 'standard'
resources:
requests:
cpu: 10m
Expand Down

0 comments on commit 114007d

Please sign in to comment.