Skip to content

Instantly share code, notes, and snippets.

@ianb-mp
Created April 29, 2024 23:15
Show Gist options
  • Save ianb-mp/c428fb7651b7371167448d71fd7e7223 to your computer and use it in GitHub Desktop.
Save ianb-mp/c428fb7651b7371167448d71fd7e7223 to your computer and use it in GitHub Desktop.
k0sctl output log
$ k0sctl apply -d -c k0sctl.yaml
DEBU[0000] Loaded configuration:
apiVersion: k0sctl.k0sproject.io/v1beta1
kind: Cluster
metadata:
name: bne-lab-vr-3
spec:
hosts:
- ssh:
address: 10.2.5.20
user: admin
port: 22
keyPath: null
role: single
# installFlags:
# - --debug
files:
- name: Install post-install script
src: k0s_post_install.sh
dstDir: /tmp
perm: 0755
# hooks:
# apply:
# after:
# - sudo -s -- /tmp/k0s_post_install.sh
k0s:
version: "v1.29.4+k0s.0"
versionChannel: stable
dynamicConfig: true
config:
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
metadata:
name: bne-lab-vr-3
spec:
network:
provider: calico
# # Comments are some examples of what can be set here
# # More Info: https://docs.k0sproject.io/v1.29.3+k0s.0/configuration/#specnetwork
# podCIDR:
# serviceCIDR:
calico:
envVars:
# CALICO_IPV4POOL_CIDR: "{{ spec.network.podCIDR }}" # Pulling in templated values to pass as ENV's
# CALICO_DISABLE_FILE_LOGGING: "true"
# FELIX_DEFAULTENDPOINTTOHOSTACTION: "ACCEPT"
# FELIX_LOGSEVERITYSCREEN: "info"
# FELIX_HEALTHENABLED: "true"
# FELIX_PROMETHEUSMETRICSENABLED: "false"
# FELIX_FEATUREDETECTOVERRIDE: "ChecksumOffloadBroken=true"
# FELIX_IPV6SUPPORT: "false"
FELIX_IPTABLESBACKEND: "Legacy"
extensions:
helm:
repositories:
- name: openebs
url: https://openebs.github.io/openebs
- name: metallb
url: https://metallb.github.io/metallb
- name: rancher
url: https://charts.rancher.io/
charts:
- name: openebs
chartname: openebs/openebs
version: "4.0.0"
namespace: openebs
order: 1
values: |
# https://github.com/openebs/openebs/blob/0ed93f11a1593c595777cd5e40cbd9fdb6603e8a/charts/values.yaml#L5C1-L5C21
engines:
replicated:
mayastor:
enabled: false
- name: metallb
chartname: metallb/metallb
namespace: metallb
order: 0
DEBU[0000] [ssh] 10.2.5.20:22: using identity file /Users/ian.b/Documents/Linux/ssh/ianb-mp
⠀⣿⣿⡇⠀⠀⢀⣴⣾⣿⠟⠁⢸⣿⣿⣿⣿⣿⣿⣿⡿⠛⠁⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀█████████ █████████ ███
⠀⣿⣿⡇⣠⣶⣿⡿⠋⠀⠀⠀⢸⣿⡇⠀⠀⠀⣠⠀⠀⢀⣠⡆⢸⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀███ ███ ███
⠀⣿⣿⣿⣿⣟⠋⠀⠀⠀⠀⠀⢸⣿⡇⠀⢰⣾⣿⠀⠀⣿⣿⡇⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀███ ███ ███
⠀⣿⣿⡏⠻⣿⣷⣤⡀⠀⠀⠀⠸⠛⠁⠀⠸⠋⠁⠀⠀⣿⣿⡇⠈⠉⠉⠉⠉⠉⠉⠉⠉⢹⣿⣿⠀███ ███ ███
⠀⣿⣿⡇⠀⠀⠙⢿⣿⣦⣀⠀⠀⠀⣠⣶⣶⣶⣶⣶⣶⣿⣿⡇⢰⣶⣶⣶⣶⣶⣶⣶⣶⣾⣿⣿⠀█████████ ███ ██████████
k0sctl v0.17.5 Copyright 2023, k0sctl authors.
Anonymized telemetry of usage will be sent to the authors.
By continuing to use k0sctl you agree to these terms:
https://k0sproject.io/licenses/eula
DEBU[0000] Preparing phase 'Set k0s version'
DEBU[0000] Preparing phase 'Connect to hosts'
INFO[0000] ==> Running phase: Connect to hosts
DEBU[0000] [ssh] 10.2.5.20:22: StrictHostkeyChecking is set to 'no'
DEBU[0000] [ssh] 10.2.5.20:22: HashKnownHosts is set to "no", won't hash newly added keys
DEBU[0000] using SSH_AUTH_SOCK=/Users/ian.b/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock
DEBU[0000] [ssh] 10.2.5.20:22: using all keys (4) from ssh agent because a keypath was not explicitly given
DEBU[0000] [ssh] 10.2.5.20:22: key /Users/ian.b/Documents/Linux/ssh/ianb-mp is encrypted
DEBU[0000] [ssh] 10.2.5.20:22: file /Users/ian.b/Documents/Linux/ssh/ianb-mp.pub is a public key
DEBU[0000] [ssh] 10.2.5.20:22: signer for public key available in ssh agent
DEBU[0001] [ssh] 10.2.5.20:22: executing `uname | grep -q Linux`
DEBU[0001] [ssh] 10.2.5.20:22: executing `cat /etc/os-release || cat /usr/lib/os-release`
DEBU[0001] [ssh] 10.2.5.20:22: NAME="Rocky Linux"
DEBU[0001] [ssh] 10.2.5.20:22: VERSION="9.3 (Blue Onyx)"
DEBU[0001] [ssh] 10.2.5.20:22: ID="rocky"
DEBU[0001] [ssh] 10.2.5.20:22: ID_LIKE="rhel centos fedora"
DEBU[0001] [ssh] 10.2.5.20:22: VERSION_ID="9.3"
DEBU[0001] [ssh] 10.2.5.20:22: PLATFORM_ID="platform:el9"
DEBU[0001] [ssh] 10.2.5.20:22: PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
DEBU[0001] [ssh] 10.2.5.20:22: ANSI_COLOR="0;32"
DEBU[0001] [ssh] 10.2.5.20:22: LOGO="fedora-logo-icon"
DEBU[0001] [ssh] 10.2.5.20:22: CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
DEBU[0001] [ssh] 10.2.5.20:22: HOME_URL="https://rockylinux.org/"
DEBU[0001] [ssh] 10.2.5.20:22: BUG_REPORT_URL="https://bugs.rockylinux.org/"
DEBU[0001] [ssh] 10.2.5.20:22: SUPPORT_END="2032-05-31"
DEBU[0001] [ssh] 10.2.5.20:22: ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
DEBU[0001] [ssh] 10.2.5.20:22: ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
DEBU[0001] [ssh] 10.2.5.20:22: REDHAT_SUPPORT_PRODUCT="Rocky Linux"
DEBU[0001] [ssh] 10.2.5.20:22: REDHAT_SUPPORT_PRODUCT_VERSION="9.3"
DEBU[0001] [ssh] 10.2.5.20:22: executing `[ "$(id -u)" = 0 ]`
DEBU[0001] [ssh] 10.2.5.20:22: executing `sudo -n true`
INFO[0001] [ssh] 10.2.5.20:22: connected
DEBU[0001] Preparing phase 'Detect host operating systems'
INFO[0001] ==> Running phase: Detect host operating systems
INFO[0001] [ssh] 10.2.5.20:22: is running Rocky Linux 9.3 (Blue Onyx)
DEBU[0001] Preparing phase 'Acquire exclusive host lock'
INFO[0001] ==> Running phase: Acquire exclusive host lock
DEBU[0001] [ssh] 10.2.5.20:22: executing `sudo -s -- test -d /run/lock`
DEBU[0002] [ssh] 10.2.5.20:22: executing `mktemp`
DEBU[0002] [ssh] 10.2.5.20:22: /tmp/tmp.lnEJiQGkwl
DEBU[0002] [ssh] 10.2.5.20:22: executing `sudo -s -- cat > "/tmp/tmp.lnEJiQGkwl"`
DEBU[0002] [ssh] 10.2.5.20:22: writing 70 bytes to command stdin: 335deeb30d8b3a67ac5b79dd350c1be1bc4d0e178c03fd5713f19a64fd51a44b-52398
DEBU[0002] [ssh] 10.2.5.20:22: executing `sudo -s -- mv -n "/tmp/tmp.lnEJiQGkwl" "/run/lock/k0sctl"`
DEBU[0002] [ssh] 10.2.5.20:22: executing `test -f "/tmp/tmp.lnEJiQGkwl"`
DEBU[0002] [ssh] 10.2.5.20:22: executing `sudo -s -- rm -f "/tmp/tmp.lnEJiQGkwl"`
DEBU[0003] [ssh] 10.2.5.20:22: executing `sudo -s -- test -d /run/lock`
DEBU[0003] Preparing phase 'Prepare hosts'
DEBU[0003] [ssh] 10.2.5.20:22: started periodic update of lock file /run/lock/k0sctl timestamp
INFO[0003] ==> Running phase: Prepare hosts
DEBU[0003] [ssh] 10.2.5.20:22: executing `sudo -s -- command -v -- "curl" 2> /dev/null`
DEBU[0003] [ssh] 10.2.5.20:22: /bin/curl
DEBU[0003] [ssh] 10.2.5.20:22: executing `sudo -s -- command -v -- "hostname" 2> /dev/null`
DEBU[0003] [ssh] 10.2.5.20:22: /bin/hostname
DEBU[0003] [ssh] 10.2.5.20:22: executing `grep 'container=docker' /proc/1/environ 2> /dev/null`
DEBU[0003] Preparing phase 'Gather host facts'
INFO[0003] ==> Running phase: Gather host facts
DEBU[0003] [ssh] 10.2.5.20:22: executing `uname -m`
DEBU[0003] [ssh] 10.2.5.20:22: x86_64
DEBU[0004] [ssh] 10.2.5.20:22: executing `cat /etc/machine-id || cat /var/lib/dbus/machine-id`
DEBU[0004] [ssh] 10.2.5.20:22: 5d6489a3cdea44d7b96b00f2e81987be
DEBU[0004] [ssh] 10.2.5.20:22: executing `hostname 2> /dev/null`
DEBU[0004] [ssh] 10.2.5.20:22: bne-lab-vr-3
INFO[0004] [ssh] 10.2.5.20:22: using bne-lab-vr-3 as hostname
DEBU[0004] [ssh] 10.2.5.20:22: executing `PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH; (ip route list scope global | grep -E "\b(172|10|192\.168)\.") || (ip route list | grep -m1 default)`
DEBU[0004] [ssh] 10.2.5.20:22: default via 10.2.5.1 dev eno1 proto dhcp src 10.2.5.20 metric 100
DEBU[0004] [ssh] 10.2.5.20:22: blackhole 10.244.119.0/26 proto 80
INFO[0004] [ssh] 10.2.5.20:22: discovered eno1 as private interface
DEBU[0004] [ssh] 10.2.5.20:22: executing `PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH ip -o addr show dev eno1 scope global`
DEBU[0004] [ssh] 10.2.5.20:22: 6: eno1 inet 10.2.5.20/24 brd 10.2.5.255 scope global dynamic noprefixroute eno1\ valid_lft 4055sec preferred_lft 4055sec
DEBU[0004] Preparing phase 'Validate hosts'
INFO[0004] ==> Running phase: Validate hosts
DEBU[0004] [ssh] 10.2.5.20:22: executing `sudo -s -- true`
DEBU[0004] Preparing phase 'Gather k0s facts'
DEBU[0004] [ssh] 10.2.5.20:22: executing `sudo -s -- command -v -- "k0s" 2> /dev/null`
DEBU[0004] Preparing phase 'Validate facts'
INFO[0004] ==> Running phase: Validate facts
DEBU[0004] Preparing phase 'Download k0s binaries to local host'
DEBU[0004] Preparing phase 'Upload k0s binaries to hosts'
DEBU[0004] Preparing phase 'Download k0s on hosts'
INFO[0004] ==> Running phase: Download k0s on hosts
DEBU[0005] [ssh] 10.2.5.20:22: executing `mktemp`
DEBU[0005] [ssh] 10.2.5.20:22: /tmp/tmp.g5aA3bHu4a
INFO[0005] [ssh] 10.2.5.20:22: downloading k0s v1.29.4+k0s.0
DEBU[0005] [ssh] 10.2.5.20:22: executing `curl -sSLf -o /tmp/tmp.g5aA3bHu4a https://github.com/k0sproject/k0s/releases/download/v1.29.4%2Bk0s.0/k0s-v1.29.4%2Bk0s.0-amd64`
DEBU[0013] [ssh] 10.2.5.20:22: executing command
DEBU[0013] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C TZ=UTC touch -m -d '2024-04-29 23:13:17.351002 +0000' -- /run/lock/k0sctl`
DEBU[0023] [ssh] 10.2.5.20:22: executing command
DEBU[0023] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C TZ=UTC touch -m -d '2024-04-29 23:13:27.350942 +0000' -- /run/lock/k0sctl`
DEBU[0025] [ssh] 10.2.5.20:22: executing `sudo -s -- chmod +x "/tmp/tmp.g5aA3bHu4a"`
DEBU[0025] Preparing phase 'Upload files to hosts'
INFO[0025] ==> Running phase: Upload files to hosts
INFO[0025] [ssh] 10.2.5.20:22: uploading Install post-install script
DEBU[0025] [ssh] 10.2.5.20:22: ensuring directory /tmp
DEBU[0025] [ssh] 10.2.5.20:22: executing `sudo -s -- test -e /tmp 2> /dev/null`
DEBU[0026] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C stat -c '%s|%y|%a|%F' -- /tmp/k0s_post_install.sh`
DEBU[0026] [ssh] 10.2.5.20:22: remote stat failed: failed to stat /tmp/k0s_post_install.sh: command failed: client exec: ssh session wait: Process exited with status 1
DEBU[0026] [ssh] 10.2.5.20:22: executing `stat --help 2>&1`
DEBU[0026] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C stat -c '%#f %s %.9Y //%n//' -- /tmp/k0s_post_install.sh 2> /dev/null`
DEBU[0026] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C stat -c '%#f %s %.9Y //%n//' -- /tmp 2> /dev/null`
DEBU[0026] [ssh] 10.2.5.20:22: 0x43ff 12288 1714432389.379202154 ///tmp//
DEBU[0026] [ssh] 10.2.5.20:22: executing `sudo -s -- install -m 0755 /dev/null /tmp/k0s_post_install.sh`
DEBU[0027] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C stat -c '%#f %s %.9Y //%n//' -- /tmp/k0s_post_install.sh 2> /dev/null`
DEBU[0027] [ssh] 10.2.5.20:22: 0x81ed 0 1714432411.265503978 ///tmp/k0s_post_install.sh//
DEBU[0027] [ssh] 10.2.5.20:22: executing `sudo -s -- truncate -s 0 /tmp/k0s_post_install.sh`
DEBU[0027] [ssh] 10.2.5.20:22: executing `sudo -s -- stat -c "%s" /tmp 2> /dev/null || stat -f "%k" /tmp`
DEBU[0027] [ssh] 10.2.5.20:22: 12288
DEBU[0027] [ssh] 10.2.5.20:22: executing `sudo -s -- dd if=/dev/stdin of=/tmp/k0s_post_install.sh bs=12288 seek=0 conv=notrunc`
DEBU[0027] [ssh] 10.2.5.20:22: post-upload validate checksum of /tmp/k0s_post_install.sh
DEBU[0028] [ssh] 10.2.5.20:22: executing `sudo -s -- sha256sum -b /tmp/k0s_post_install.sh`
DEBU[0028] [ssh] 10.2.5.20:22: b8f6e32b5ccca0d50b7d9146087f6faf381d498c15039d77fe1f5b2abd51eff8 */tmp/k0s_post_install.sh
DEBU[0028] [ssh] 10.2.5.20:22: setting permissions 0755 for /tmp/k0s_post_install.sh
DEBU[0028] [ssh] 10.2.5.20:22: executing `sudo -s -- chmod 0755 -- /tmp/k0s_post_install.sh`
DEBU[0028] [ssh] 10.2.5.20:22: touching /tmp/k0s_post_install.sh
DEBU[0028] [ssh] 10.2.5.20:22: executing command
DEBU[0028] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C TZ=UTC touch -m -d '2024-04-29 05:08:09.788702011 +0000' -- /tmp/k0s_post_install.sh`
DEBU[0028] Preparing phase 'Install k0s binaries on hosts'
INFO[0028] ==> Running phase: Install k0s binaries on hosts
DEBU[0028] [ssh] 10.2.5.20:22: executing `sudo -s -- test -e /tmp/tmp.g5aA3bHu4a 2> /dev/null`
DEBU[0029] [ssh] 10.2.5.20:22: executing `sudo -s -- install -m 0755 -o root -g root -d "/usr/local/bin"`
DEBU[0029] [ssh] 10.2.5.20:22: executing `sudo -s -- install -m 0750 -o root -g root "/tmp/tmp.g5aA3bHu4a" "/usr/local/bin/k0s"`
DEBU[0029] [ssh] 10.2.5.20:22: executing `sudo -s -- /usr/local/bin/k0s version`
DEBU[0030] [ssh] 10.2.5.20:22: v1.29.4+k0s.0
DEBU[0030] Preparing phase 'Prepare ARM nodes'
DEBU[0030] Preparing phase 'Configure k0s'
DEBU[0030] using provided k0s config
DEBU[0030] [ssh] 10.2.5.20:22: leader will get a full config on initialize
DEBU[0030] [ssh] 10.2.5.20:22: executing `mktemp`
DEBU[0030] [ssh] 10.2.5.20:22: /tmp/tmp.3fyW1cWg7y
DEBU[0030] [ssh] 10.2.5.20:22: executing `mktemp 2> /dev/null`
DEBU[0030] [ssh] 10.2.5.20:22: /tmp/tmp.C1UY5EZjgb
DEBU[0030] [ssh] 10.2.5.20:22: executing `cat > /tmp/tmp.C1UY5EZjgb`
DEBU[0031] [ssh] 10.2.5.20:22: writing 1034 bytes to command stdin
DEBU[0031] [ssh] 10.2.5.20:22: executing `sudo -s -- install -D -m 0600 -- /tmp/tmp.C1UY5EZjgb /tmp/tmp.3fyW1cWg7y`
INFO[0031] [ssh] 10.2.5.20:22: validating configuration
DEBU[0031] [ssh] 10.2.5.20:22: comparing k0s version v1.29.4+k0s.0 with >= v1.23.1+k0s.0
DEBU[0031] [ssh] 10.2.5.20:22: comparison result true
DEBU[0031] [ssh] 10.2.5.20:22: executing `sudo -s -- /tmp/tmp.g5aA3bHu4a config validate --config "/tmp/tmp.3fyW1cWg7y"`
DEBU[0031] [ssh] 10.2.5.20:22: configuration will change
DEBU[0031] [ssh] 10.2.5.20:22: executing `sudo -s -- rm -f -- /tmp/tmp.3fyW1cWg7y 2> /dev/null`
INFO[0031] ==> Running phase: Configure k0s
DEBU[0031] [ssh] 10.2.5.20:22: executing `sudo -s -- test -e /etc/k0s/k0s.yaml 2> /dev/null`
DEBU[0032] [ssh] 10.2.5.20:22: writing k0s configuration
DEBU[0032] [ssh] 10.2.5.20:22: executing `mktemp`
DEBU[0032] [ssh] 10.2.5.20:22: /tmp/tmp.HEI7tD2qps
DEBU[0032] [ssh] 10.2.5.20:22: executing `mktemp 2> /dev/null`
DEBU[0032] [ssh] 10.2.5.20:22: /tmp/tmp.p1uMP7n6Gx
DEBU[0032] [ssh] 10.2.5.20:22: executing `cat > /tmp/tmp.p1uMP7n6Gx`
DEBU[0032] [ssh] 10.2.5.20:22: writing 1034 bytes to command stdin
DEBU[0032] [ssh] 10.2.5.20:22: executing `sudo -s -- install -D -m 0600 -- /tmp/tmp.p1uMP7n6Gx /tmp/tmp.HEI7tD2qps`
INFO[0032] [ssh] 10.2.5.20:22: installing new configuration
DEBU[0032] [ssh] 10.2.5.20:22: executing `sudo -s -- test -e /etc/k0s 2> /dev/null`
DEBU[0033] [ssh] 10.2.5.20:22: executing `sudo -s -- install -m 0600 -o root -g root "/tmp/tmp.HEI7tD2qps" "/etc/k0s/k0s.yaml"`
DEBU[0033] Preparing phase 'Restore cluster state'
DEBU[0033] Preparing phase 'Run Before Apply Hooks'
DEBU[0033] Preparing phase 'Initialize the k0s cluster'
INFO[0033] ==> Running phase: Initialize the k0s cluster
INFO[0033] [ssh] 10.2.5.20:22: installing k0s controller
DEBU[0033] [ssh] 10.2.5.20:22: executing `sudo -s -- /usr/local/bin/k0s install controller --enable-dynamic-config --data-dir=/var/lib/k0s --single --config "/etc/k0s/k0s.yaml"`
DEBU[0033] [ssh] 10.2.5.20:22: executing command
DEBU[0033] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C TZ=UTC touch -m -d '2024-04-29 23:13:37.351529 +0000' -- /run/lock/k0sctl`
DEBU[0034] [ssh] 10.2.5.20:22: executing `sudo -s -- stat /run/systemd/system`
DEBU[0034] [ssh] 10.2.5.20:22: File: /run/systemd/system
DEBU[0034] [ssh] 10.2.5.20:22: Size: 40 Blocks: 0 IO Block: 4096 directory
DEBU[0034] [ssh] 10.2.5.20:22: Device: 18h/24d Inode: 3 Links: 2
DEBU[0034] [ssh] 10.2.5.20:22: Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
DEBU[0034] [ssh] 10.2.5.20:22: Context: system_u:object_r:systemd_unit_file_t:s0
DEBU[0034] [ssh] 10.2.5.20:22: Access: 2024-04-30 09:13:38.261600458 +1000
DEBU[0034] [ssh] 10.2.5.20:22: Modify: 2024-04-29 15:14:36.360999969 +1000
DEBU[0034] [ssh] 10.2.5.20:22: Change: 2024-04-29 15:14:36.360999969 +1000
DEBU[0034] [ssh] 10.2.5.20:22: Birth: 2024-04-29 15:14:36.360999969 +1000
DEBU[0034] [ssh] 10.2.5.20:22: executing `sudo -s -- systemctl start k0scontroller 2> /dev/null`
INFO[0034] [ssh] 10.2.5.20:22: waiting for the k0s service to start
DEBU[0034] [ssh] 10.2.5.20:22: executing `sudo -s -- stat /run/systemd/system`
DEBU[0034] [ssh] 10.2.5.20:22: File: /run/systemd/system
DEBU[0034] [ssh] 10.2.5.20:22: Size: 40 Blocks: 0 IO Block: 4096 directory
DEBU[0034] [ssh] 10.2.5.20:22: Device: 18h/24d Inode: 3 Links: 2
DEBU[0034] [ssh] 10.2.5.20:22: Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
DEBU[0034] [ssh] 10.2.5.20:22: Context: system_u:object_r:systemd_unit_file_t:s0
DEBU[0034] [ssh] 10.2.5.20:22: Access: 2024-04-30 09:13:38.261600458 +1000
DEBU[0034] [ssh] 10.2.5.20:22: Modify: 2024-04-29 15:14:36.360999969 +1000
DEBU[0034] [ssh] 10.2.5.20:22: Change: 2024-04-29 15:14:36.360999969 +1000
DEBU[0034] [ssh] 10.2.5.20:22: Birth: 2024-04-29 15:14:36.360999969 +1000
DEBU[0034] [ssh] 10.2.5.20:22: executing `sudo -s -- systemctl status k0scontroller 2> /dev/null | grep -q "(running)"`
INFO[0035] [ssh] 10.2.5.20:22: waiting for kubernetes api to respond
DEBU[0035] [ssh] 10.2.5.20:22: executing `curl -kso /dev/null --connect-timeout 20 -w "%{http_code}" "https://localhost:6443/version"`
DEBU[0035] [ssh] 10.2.5.20:22: 000
DEBU[0040] retrying, attempt 1 - last error: command failed: client exec: ssh session wait: Process exited with status 7
DEBU[0040] [ssh] 10.2.5.20:22: executing `curl -kso /dev/null --connect-timeout 20 -w "%{http_code}" "https://localhost:6443/version"`
DEBU[0040] [ssh] 10.2.5.20:22: 401
DEBU[0040] [ssh] 10.2.5.20:22: executing `sudo -s -- /usr/local/bin/k0s kubectl --data-dir=/var/lib/k0s -n kube-system get event --field-selector involvedObject.name=k0s -o json`
DEBU[0040] [ssh] 10.2.5.20:22: {
DEBU[0040] [ssh] 10.2.5.20:22: "apiVersion": "v1",
DEBU[0040] [ssh] 10.2.5.20:22: "items": [],
DEBU[0040] [ssh] 10.2.5.20:22: "kind": "List",
DEBU[0040] [ssh] 10.2.5.20:22: "metadata": {
DEBU[0040] [ssh] 10.2.5.20:22: "resourceVersion": ""
DEBU[0040] [ssh] 10.2.5.20:22: }
DEBU[0040] [ssh] 10.2.5.20:22: }
DEBU[0043] [ssh] 10.2.5.20:22: executing command
DEBU[0043] [ssh] 10.2.5.20:22: executing `sudo -s -- env -i LC_ALL=C TZ=UTC touch -m -d '2024-04-29 23:13:47.351976 +0000' -- /run/lock/k0sctl`
DEBU[0045] retrying, attempt 1 - last error: dynamic config not ready
DEBU[0045] [ssh] 10.2.5.20:22: executing `sudo -s -- /usr/local/bin/k0s kubectl --data-dir=/var/lib/k0s -n kube-system get event --field-selector involvedObject.name=k0s -o json`
DEBU[0046] [ssh] 10.2.5.20:22: {
DEBU[0046] [ssh] 10.2.5.20:22: "apiVersion": "v1",
DEBU[0046] [ssh] 10.2.5.20:22: "items": [],
DEBU[0046] [ssh] 10.2.5.20:22: "kind": "List",
DEBU[0046] [ssh] 10.2.5.20:22: "metadata": {
DEBU[0046] [ssh] 10.2.5.20:22: "resourceVersion": ""
DEBU[0046] [ssh] 10.2.5.20:22: }
DEBU[0046] [ssh] 10.2.5.20:22: }
DEBU[0050] retrying, attempt 2 - last error: dynamic config not ready
DEBU[0050] [ssh] 10.2.5.20:22: executing `sudo -s -- /usr/local/bin/k0s kubectl --data-dir=/var/lib/k0s -n kube-system get event --field-selector involvedObject.name=k0s -o json`
DEBU[0051] [ssh] 10.2.5.20:22: {
DEBU[0051] [ssh] 10.2.5.20:22: "apiVersion": "v1",
DEBU[0051] [ssh] 10.2.5.20:22: "items": [
DEBU[0051] [ssh] 10.2.5.20:22: {
DEBU[0051] [ssh] 10.2.5.20:22: "action": "ConfigReconciling",
DEBU[0051] [ssh] 10.2.5.20:22: "apiVersion": "v1",
DEBU[0051] [ssh] 10.2.5.20:22: "eventTime": "2024-04-29T23:13:50.794888Z",
DEBU[0051] [ssh] 10.2.5.20:22: "firstTimestamp": "2024-04-29T23:13:50Z",
DEBU[0051] [ssh] 10.2.5.20:22: "involvedObject": {
DEBU[0051] [ssh] 10.2.5.20:22: "apiVersion": "k0s.k0sproject.io/v1beta1",
DEBU[0051] [ssh] 10.2.5.20:22: "kind": "ClusterConfig",
DEBU[0051] [ssh] 10.2.5.20:22: "name": "k0s",
DEBU[0051] [ssh] 10.2.5.20:22: "namespace": "kube-system",
DEBU[0051] [ssh] 10.2.5.20:22: "resourceVersion": "201",
DEBU[0051] [ssh] 10.2.5.20:22: "uid": "c60113f8-b51b-4202-be0f-2e8194258210"
DEBU[0051] [ssh] 10.2.5.20:22: },
DEBU[0051] [ssh] 10.2.5.20:22: "kind": "Event",
DEBU[0051] [ssh] 10.2.5.20:22: "lastTimestamp": "2024-04-29T23:13:50Z",
DEBU[0051] [ssh] 10.2.5.20:22: "message": "Successfully reconciled cluster config",
DEBU[0051] [ssh] 10.2.5.20:22: "metadata": {
DEBU[0051] [ssh] 10.2.5.20:22: "creationTimestamp": "2024-04-29T23:13:50Z",
DEBU[0051] [ssh] 10.2.5.20:22: "generateName": "k0s.",
DEBU[0051] [ssh] 10.2.5.20:22: "name": "k0s.8gfmt",
DEBU[0051] [ssh] 10.2.5.20:22: "namespace": "kube-system",
DEBU[0051] [ssh] 10.2.5.20:22: "resourceVersion": "212",
DEBU[0051] [ssh] 10.2.5.20:22: "uid": "52575f86-7bfd-4985-8ab1-cacb02e5f00f"
DEBU[0051] [ssh] 10.2.5.20:22: },
DEBU[0051] [ssh] 10.2.5.20:22: "reason": "SuccessfulReconcile",
DEBU[0051] [ssh] 10.2.5.20:22: "reportingComponent": "k0s-controller",
DEBU[0051] [ssh] 10.2.5.20:22: "reportingInstance": "bne-lab-vr-3",
DEBU[0051] [ssh] 10.2.5.20:22: "source": {},
DEBU[0051] [ssh] 10.2.5.20:22: "type": "Normal"
DEBU[0051] [ssh] 10.2.5.20:22: }
DEBU[0051] [ssh] 10.2.5.20:22: ],
DEBU[0051] [ssh] 10.2.5.20:22: "kind": "List",
DEBU[0051] [ssh] 10.2.5.20:22: "metadata": {
DEBU[0051] [ssh] 10.2.5.20:22: "resourceVersion": ""
DEBU[0051] [ssh] 10.2.5.20:22: }
DEBU[0051] [ssh] 10.2.5.20:22: }
DEBU[0051] [ssh] 10.2.5.20:22: executing `sudo -s -- test -e /var/lib/k0s/pki/admin.conf 2> /dev/null`
DEBU[0051] [ssh] 10.2.5.20:22: executing `sudo -s -- env "KUBECONFIG=/var/lib/k0s/pki/admin.conf" /usr/local/bin/k0s kubectl get -n kube-system namespace kube-system -o template={{.metadata.uid}}`
DEBU[0051] [ssh] 10.2.5.20:22: a8f98104-11fa-40c8-997e-05319382fe99
DEBU[0051] Preparing phase 'Install controllers'
DEBU[0051] Preparing phase 'Install workers'
DEBU[0051] Preparing phase 'Upgrade controllers'
DEBU[0051] UpgradeControllers phase prep starting
DEBU[0051] 1 controllers in total
DEBU[0051] UpgradeControllers phase prepared, 0 controllers needs upgrade
DEBU[0051] Preparing phase 'Upgrade workers'
DEBU[0051] 0 workers in total
DEBU[0051] UpgradeWorkers phase prepared, 0 workers needs upgrade
DEBU[0051] Preparing phase 'Reset workers'
DEBU[0051] 0 workers in total
DEBU[0051] ResetWorkers phase prepared, 0 workers will be reset
DEBU[0051] Preparing phase 'Reset controllers'
DEBU[0051] 1 controllers in total
DEBU[0051] ResetControllers phase prepared, 0 controllers will be reset
DEBU[0051] Preparing phase 'Run After Apply Hooks'
DEBU[0051] Preparing phase 'Release exclusive host lock'
INFO[0051] ==> Running phase: Release exclusive host lock
DEBU[0051] [ssh] 10.2.5.20:22: stopped lock cycle, removing file
DEBU[0051] [ssh] 10.2.5.20:22: executing `sudo -s -- rm -f -- /run/lock/k0sctl 2> /dev/null`
DEBU[0051] Preparing phase 'Disconnect from hosts'
INFO[0051] ==> Running phase: Disconnect from hosts
INFO[0051] ==> Finished in 51s
INFO[0051] k0s cluster version v1.29.4+k0s.0 is now installed
INFO[0051] Tip: To access the cluster you can now fetch the admin kubeconfig using:
INFO[0051] k0sctl kubeconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment