Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
retry modprobe, and specific error (#3491)
Browse files Browse the repository at this point in the history
# Conflicts:
#	parts/k8s/kubernetescustomscript.sh
  • Loading branch information
jackfrancis committed Jul 17, 2018
1 parent 8f53c34 commit 9cdc09b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parts/k8s/kubernetescustomscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ERR_K8S_RUNNING_TIMEOUT=30 # Timeout waiting for k8s cluster to be healthy
ERR_K8S_DOWNLOAD_TIMEOUT=31 # Timeout waiting for Kubernetes download(s)
ERR_KUBECTL_NOT_FOUND=32 # kubectl client binary not found on local disk
ERR_CNI_DOWNLOAD_TIMEOUT=41 # Timeout waiting for CNI download(s)
ERR_MODPROBE_FAIL=49 # Unable to load a kernel module using modprobe
ERR_OUTBOUND_CONN_FAIL=50 # Unable to establish outbound connection
ERR_CUSTOM_SEARCH_DOMAINS_FAIL=80 # Unable to configure custom search domains
ERR_APT_DAILY_TIMEOUT=98 # Timeout waiting for apt daily updates
Expand Down Expand Up @@ -252,7 +253,7 @@ function installCNI() {
chmod -R 755 $CNI_BIN_DIR
# Turn on br_netfilter (needed for the iptables rules to work on bridges)
# and permanently enable it
modprobe br_netfilter
retrycmd_if_failure 30 6 10 modprobe br_netfilter || exit $ERR_MODPROBE_FAIL
# /etc/modules-load.d is the location used by systemd to load modules
echo -n "br_netfilter" > /etc/modules-load.d/br_netfilter.conf
}
Expand Down

0 comments on commit 9cdc09b

Please sign in to comment.