Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trstringer/e8d87eb667ef1d23fe5ec19bf0df7b4c to your computer and use it in GitHub Desktop.
Save trstringer/e8d87eb667ef1d23fe5ec19bf0df7b4c to your computer and use it in GitHub Desktop.
++ date
++ hostname
+ echo Fri Jun 8 02:26:06 UTC 2018,k8s-agentpool1-44048448-vmss000000, startscript
+ source /opt/azure/containers/provision_source.sh
+ ERR_SYSTEMCTL_ENABLE_FAIL=3
+ ERR_SYSTEMCTL_START_FAIL=4
+ ERR_CLOUD_INIT_TIMEOUT=5
+ ERR_FILE_WATCH_TIMEOUT=6
+ ERR_HOLD_WALINUXAGENT=7
+ ERR_RELEASE_HOLD_WALINUXAGENT=8
+ ERR_APT_INSTALL_TIMEOUT=9
+ ERR_ETCD_DATA_DIR_NOT_FOUND=10
+ ERR_ETCD_RUNNING_TIMEOUT=11
+ ERR_ETCD_DOWNLOAD_TIMEOUT=12
+ ERR_ETCD_VOL_MOUNT_FAIL=13
+ ERR_ETCD_START_TIMEOUT=14
+ ERR_ETCD_CONFIG_FAIL=15
+ ERR_DOCKER_INSTALL_TIMEOUT=20
+ ERR_DOCKER_DOWNLOAD_TIMEOUT=21
+ ERR_DOCKER_KEY_DOWNLOAD_TIMEOUT=22
+ ERR_DOCKER_APT_KEY_TIMEOUT=23
+ ERR_K8S_RUNNING_TIMEOUT=30
+ ERR_K8S_DOWNLOAD_TIMEOUT=31
+ ERR_KUBECTL_NOT_FOUND=32
+ ERR_CNI_DOWNLOAD_TIMEOUT=41
+ ERR_OUTBOUND_CONN_FAIL=50
+ ERR_CUSTOM_SEARCH_DOMAINS_FAIL=80
+ ERR_APT_DAILY_TIMEOUT=98
+ ERR_APT_UPDATE_TIMEOUT=99
++ cat /etc/lsb-release /etc/os-release
++ awk '{print toupper($0)}'
++ tr -d 'ID="'
++ grep '^ID='
+ OS=UBUNTU
+ UBUNTU_OS_NAME=UBUNTU
+ RHEL_OS_NAME=RHEL
+ COREOS_OS_NAME=COREOS
+ KUBECTL=/usr/local/bin/kubectl
+ DOCKER=/usr/bin/docker
+ CNI_BIN_DIR=/opt/cni/bin
+ CUSTOM_SEARCH_DOMAIN_SCRIPT=/opt/azure/containers/setup-custom-search-domains.sh
+ set +x
+ [[ UBUNTU == COREOS ]]
+ '[' -f /var/run/reboot-required ']'
+ REBOOTREQUIRED=false
+ testOutboundConnection
+ retrycmd_if_failure 120 1 20 nc -v 8.8.8.8 53
+ retries=120
+ wait_sleep=1
+ timeout=20
+ shift
+ shift
+ shift
++ seq 1 120
+ for i in '$(seq 1 $retries)'
+ timeout 20 nc -v 8.8.8.8 53
Connection to 8.8.8.8 53 port [tcp/domain] succeeded!
+ '[' 0 -eq 0 ']'
+ break
+ echo Executed '"nc' -v 8.8.8.8 '53"' 1 times
Executed "nc -v 8.8.8.8 53" 1 times
+ [[ UBUNTU == UBUNTU ]]
++ date
++ hostname
+ echo Fri Jun 8 02:26:06 UTC 2018,k8s-agentpool1-44048448-vmss000000, apt-get_update_begin
+ apt_get_update
+ retries=10
+ apt_update_output=/tmp/apt-get-update.out
++ seq 1 10
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get update
+ tee /tmp/apt-get-update.out
+ grep -E '^([WE]:.*)|([eE]rr.*)$'
+ '[' 1 -ne 0 ']'
+ cat /tmp/apt-get-update.out
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [502 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [785 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [216 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [325 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7204 B]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2152 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7560 B]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [352 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2272 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [633 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [132 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3460 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [254 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.4 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7400 B]
Fetched 3568 kB in 1s (2050 kB/s)
Reading package lists...
+ break
+ echo Executed apt-get update 1 times
Executed apt-get update 1 times
++ date
++ hostname
+ echo Fri Jun 8 02:26:09 UTC 2018,k8s-agentpool1-44048448-vmss000000, apt-get_update_end
+ retrycmd_if_failure 20 5 30 apt-mark hold walinuxagent
+ retries=20
+ wait_sleep=5
+ timeout=30
+ shift
+ shift
+ shift
++ seq 1 20
+ for i in '$(seq 1 $retries)'
+ timeout 30 apt-mark hold walinuxagent
walinuxagent was already set on hold.
+ '[' 0 -eq 0 ']'
+ break
+ echo Executed '"apt-mark' hold 'walinuxagent"' 1 times
Executed "apt-mark hold walinuxagent" 1 times
+ waitForCloudInit
+ wait_for_file 900 1 /var/log/azure/cloud-init.complete
+ retries=900
+ wait_sleep=1
+ filepath=/var/log/azure/cloud-init.complete
++ seq 1 900
+ for i in '$(seq 1 $retries)'
+ '[' -f /var/log/azure/cloud-init.complete ']'
+ '[' 1 -eq 900 ']'
+ sleep 1
+ for i in '$(seq 1 $retries)'
+ '[' -f /var/log/azure/cloud-init.complete ']'
+ break
+ [[ ! -z '' ]]
+ echo 'skipping master node provision operations, this is an agent node'
skipping master node provision operations, this is an agent node
+ '[' -f /opt/azure/containers/setup-custom-search-domains.sh ']'
+ installDocker
+ apt_get_install 20 30 120 apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
+ retries=20
+ wait_sleep=30
+ timeout=120
+ shift
+ shift
+ shift
++ seq 1 20
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 1 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 2 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 3 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 4 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 5 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 6 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 7 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 8 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 9 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 10 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 11 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 12 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 13 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 14 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 15 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 16 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 17 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 18 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 19 -eq 20 ']'
+ sleep 30
+ for i in '$(seq 1 $retries)'
+ timeout 30 dpkg --configure -a
+ timeout 120 apt-get install --no-install-recommends -y apt-transport-https ca-certificates iptables iproute2 socat util-linux mount ebtables ethtool init-system-helpers
Reading package lists...
Building dependency tree...
Reading state information...
Package ebtables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package socat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socat' has no installation candidate
E: Package 'ebtables' has no installation candidate
+ '[' 100 -eq 0 ']'
+ '[' 20 -eq 20 ']'
+ return 1
+ exit 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment