Created
August 3, 2023 00:49
-
-
Save flavio-fernandes/994af17f4c9e03b2247e6de77fbccb6d to your computer and use it in GitHub Desktop.
hacks to kind cluster to allow really big dbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dist/images/ovndb-raft-functions.sh b/dist/images/ovndb-raft-functions.sh | |
index ceb523cfe..99ed10d37 100644 | |
--- a/dist/images/ovndb-raft-functions.sh | |
+++ b/dist/images/ovndb-raft-functions.sh | |
@@ -114,7 +114,8 @@ check_and_apply_ovnkube_db_ep() { | |
# times and then give up. | |
for ip in ${ips[@]}; do | |
- wait_for_event attempts=10 check_ovnkube_db_ep ${ip} ${port} | |
+ echo wait_for_event attempts=9999999 check_ovnkube_db_ep ${ip} ${port} | |
+ wait_for_event attempts=9999999 check_ovnkube_db_ep ${ip} ${port} | |
done | |
set_ovnkube_db_ep ${ips[@]} | |
else | |
diff --git a/dist/images/ovnkube.sh b/dist/images/ovnkube.sh | |
index 2ea4430b9..46a70b1c6 100755 | |
--- a/dist/images/ovnkube.sh | |
+++ b/dist/images/ovnkube.sh | |
@@ -471,7 +471,10 @@ check_health() { | |
fi | |
fi | |
- return 1 | |
+ echo check_health will lie about health of ${1} | |
+ return 0 | |
+ | |
+ # return 1 | |
} | |
display_file() { | |
@@ -717,7 +720,8 @@ nb-ovsdb() { | |
${OVNCTL_PATH} run_nb_ovsdb --no-monitor \ | |
--ovn-nb-log="${ovn_loglevel_nb}" & | |
- wait_for_event attempts=3 process_ready ovnnb_db | |
+ echo wait_for_event attempts=99999999 process_ready ovnnb_db | |
+ wait_for_event attempts=99999999 process_ready ovnnb_db | |
echo "=============== nb-ovsdb ========== RUNNING" | |
# setting northd probe interval | |
@@ -755,7 +759,8 @@ sb-ovsdb() { | |
${OVNCTL_PATH} run_sb_ovsdb --no-monitor \ | |
--ovn-sb-log="${ovn_loglevel_sb}" & | |
- wait_for_event attempts=3 process_ready ovnsb_db | |
+ echo wait_for_event attempts=989898989 process_ready ovnsb_db | |
+ wait_for_event attempts=989898989 process_ready ovnsb_db | |
echo "=============== sb-ovsdb ========== RUNNING" | |
[[ "yes" == ${OVN_SSL_ENABLE} ]] && { | |
@@ -765,7 +770,8 @@ sb-ovsdb() { | |
ovn-sbctl --inactivity-probe=0 set-connection p${transport}:${ovn_sb_port}:$(bracketify ${ovn_db_host}) | |
# create the ovnkube-db endpoints | |
- wait_for_event attempts=10 check_ovnkube_db_ep ${ovn_db_host} ${ovn_nb_port} | |
+ echo wait_for_event attempts=9999999 check_ovnkube_db_ep ${ovn_db_host} ${ovn_nb_port} | |
+ wait_for_event attempts=9999999 check_ovnkube_db_ep ${ovn_db_host} ${ovn_nb_port} | |
set_ovnkube_db_ep ${ovn_db_host} | |
if memory_trim_on_compaction_supported "sbdb" | |
then | |
@@ -793,10 +799,10 @@ ovn-dbchecker() { | |
# wait for nb-ovsdb and sb-ovsdb to start | |
echo "=============== ovn-dbchecker (wait for nb-ovsdb) ========== OVNKUBE_DB" | |
- wait_for_event attempts=15 process_ready ovnnb_db | |
+ wait_for_event attempts=999999159 process_ready ovnnb_db | |
echo "=============== ovn-dbchecker (wait for sb-ovsdb) ========== OVNKUBE_DB" | |
- wait_for_event attempts=15 process_ready ovnsb_db | |
+ wait_for_event attempts=999999915 process_ready ovnsb_db | |
local ovn_db_ssl_opts="" | |
[[ "yes" == ${OVN_SSL_ENABLE} ]] && { | |
@@ -824,7 +830,8 @@ ovn-dbchecker() { | |
--logfile /var/log/ovn-kubernetes/ovn-dbchecker.log & | |
echo "=============== ovn-dbchecker ========== running" | |
- wait_for_event attempts=3 process_ready ovn-dbchecker | |
+ echo wait_for_event attempts=999999 process_ready ovn-dbchecker | |
+ wait_for_event attempts=9999999 process_ready ovn-dbchecker | |
process_healthy ovn-dbchecker | |
exit 11 | |
@@ -864,7 +871,7 @@ run-ovn-northd() { | |
--ovn-northd-log="${ovn_loglevel_northd}" \ | |
${ovn_northd_opts} | |
- wait_for_event attempts=3 process_ready ovn-northd | |
+ wait_for_event attempts=9999993 process_ready ovn-northd | |
echo "=============== run_ovn_northd ========== RUNNING" | |
tail --follow=name ${OVN_LOGDIR}/ovn-northd.log & | |
@@ -885,7 +892,8 @@ ovn-master() { | |
echo "ovn_nbdb ${ovn_nbdb} ovn_sbdb ${ovn_sbdb}" | |
# wait for northd to start | |
- wait_for_event process_ready ovn-northd | |
+ echo wait_for_event attempts=9999993 process_ready ovn-northd | |
+ wait_for_event attempts=9999993 process_ready ovn-northd | |
# wait for ovs-servers to start since ovn-master sets some fields in OVS DB | |
echo "=============== ovn-master - (wait for ovs)" | |
@@ -1012,7 +1020,8 @@ ovn-master() { | |
--host-network-namespace ${ovn_host_network_namespace} & | |
echo "=============== ovn-master ========== running" | |
- wait_for_event attempts=3 process_ready ovnkube-master | |
+ echo wait_for_event attempts=9999999 process_ready ovnkube-master | |
+ wait_for_event attempts=9999999 process_ready ovnkube-master | |
process_healthy ovnkube-master | |
exit 9 | |
@@ -1050,7 +1059,8 @@ ovn-controller() { | |
--ovn-controller-log="${ovn_loglevel_controller}" \ | |
${ovn_controller_opts} | |
- wait_for_event attempts=3 process_ready ovn-controller | |
+ echo wait_for_event attempts=999999 process_ready ovn-controller | |
+ wait_for_event attempts=999999 process_ready ovn-controller | |
echo "=============== ovn-controller ========== running" | |
tail --follow=name ${OVN_LOGDIR}/ovn-controller.log & | |
@@ -1078,7 +1088,8 @@ ovn-node() { | |
if [[ ${ovnkube_node_mode} != "dpu-host" ]]; then | |
echo "=============== ovn-node - (ovn-node wait for ovn-controller.pid)" | |
- wait_for_event process_ready ovn-controller | |
+ echo wait_for_event attempts=999999 process_ready ovn-controller | |
+ wait_for_event attempts=999999 process_ready ovn-controller | |
fi | |
ovn_routable_mtu_flag= | |
@@ -1285,7 +1296,8 @@ ovn-node() { | |
--host-network-namespace ${ovn_host_network_namespace} \ | |
${ovnkube_node_mgmt_port_netdev_flag} & | |
- wait_for_event attempts=3 process_ready ovnkube | |
+ echo wait_for_event attempts=9999993 process_ready ovnkube | |
+ wait_for_event attempts=99999993 process_ready ovnkube | |
if [[ ${ovnkube_node_mode} != "dpu" ]]; then | |
setup_cni | |
fi | |
@@ -1304,6 +1316,8 @@ cleanup-ovn-node() { | |
echo "=============== time: $(date +%d-%m-%H:%M:%S:%N) cleanup-ovn-node - (wait for ovn-controller to exit)" | |
retries=0 | |
while [[ ${retries} -lt 80 ]]; do | |
+ echo wait_for_event attempts=9999993 process_ready ovnkube | |
+ wait_for_event attempts=99999993 process_ready ovnkube | |
process_ready ovn-controller | |
if [[ $? != 0 ]]; then | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment