Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust verbosity of Installer logs in host-agent logs #265

Closed
dharmjit opened this issue Nov 24, 2021 · 0 comments · Fixed by #380
Closed

Adjust verbosity of Installer logs in host-agent logs #265

dharmjit opened this issue Nov 24, 2021 · 0 comments · Fixed by #380
Assignees
Milestone

Comments

@dharmjit
Copy link
Contributor

Currently, in the host-agent logs, we could see the installer logs also and by default, the logs are too verbose. We could look at options to control the installer logs verbosity.

I1123 20:41:08.022206    4083 host_reconciler.go:287] controller/byohost "msg"="Installing K8s" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.418801    4083 installer.go:101] controller/byohost "msg"="Detected" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" "OS"="Ubuntu_20.04_x86-64"
I1123 20:41:08.418989    4083 installer.go:163] controller/byohost "msg"="Current OS will be handled as" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" "OS"="Ubuntu_20.04.1_x86-64"
I1123 20:41:08.419050    4083 bundle_downloader.go:62] controller/byohost "msg"="Cache hit" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" "path"="/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2"
I1123 20:41:08.419147    4083 installer.go:233] controller/byohost "msg"="Installing: SWAP" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.419225    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c swapoff -a \u0026\u0026 sed -ri '/\\sswap\\s/s/^#?/#/' /etc/fstab" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.424556    4083 installer.go:233] controller/byohost "msg"="Installing: FIREWALL" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.424620    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c ufw disable" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.638564    4083 installer.go:232] controller/byohost "msg"="WARN: uid is 0 but '/etc' is owned by 1001\nWARN: uid is 0 but '/usr' is owned by 1001\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.638659    4083 installer.go:231] controller/byohost "msg"="Firewall stopped and disabled on system startup\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.638727    4083 installer.go:233] controller/byohost "msg"="Installing: KERNEL MODULES" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.638781    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c modprobe overlay \u0026\u0026 modprobe br_netfilter" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.655891    4083 installer.go:233] controller/byohost "msg"="Installing: OS CONFIGURATION" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.656024    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c tar -C / -xvf '/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/conf.tar' \u0026\u0026 sysctl --system" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.663320    4083 installer.go:232] controller/byohost "msg"="sysctl: setting key \"net.ipv4.conf.all.promote_secondaries\": Invalid argument\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.663359    4083 installer.go:231] controller/byohost "msg"="etc/\netc/modules-load.d/\netc/modules-load.d/containerd.conf\netc/sysctl.d/\netc/sysctl.d/99-kubernetes-cri.conf\n* Applying /etc/sysctl.d/10-console-messages.conf ...\nkernel.printk = 4 4 1 7\n* Applying /etc/sysctl.d/10-ipv6-privacy.conf ...\nnet.ipv6.conf.all.use_tempaddr = 2\nnet.ipv6.conf.default.use_tempaddr = 2\n* Applying /etc/sysctl.d/10-kernel-hardening.conf ...\nkernel.kptr_restrict = 1\n* Applying /etc/sysctl.d/10-link-restrictions.conf ...\nfs.protected_hardlinks = 1\nfs.protected_symlinks = 1\n* Applying /etc/sysctl.d/10-magic-sysrq.conf ...\nkernel.sysrq = 176\n* Applying /etc/sysctl.d/10-network-security.conf ...\nnet.ipv4.conf.default.rp_filter = 2\nnet.ipv4.conf.all.rp_filter = 2\n* Applying /etc/sysctl.d/10-ptrace.conf ...\nkernel.yama.ptrace_scope = 1\n* Applying /etc/sysctl.d/10-zeropage.conf ...\nvm.mmap_min_addr = 65536\n* Applying /usr/lib/sysctl.d/30-tracker.conf ...\nfs.inotify.max_user_watches = 65536\n* Applying /usr/lib/sysctl.d/50-default.conf ...\nnet.ipv4.conf.default.promote_secondaries = 1\nnet.ipv4.ping_group_range = 0 2147483647\nnet.core.default_qdisc = fq_codel\nfs.protected_regular = 1\nfs.protected_fifos = 1\n* Applying /usr/lib/sysctl.d/50-pid-max.conf ...\nkernel.pid_max = 4194304\n* Applying /etc/sysctl.d/99-kubernetes-cri.conf ...\nnet.bridge.bridge-nf-call-iptables = 1\nnet.ipv4.ip_forward = 1\nnet.bridge.bridge-nf-call-ip6tables = 1\n* Applying /etc/sysctl.d/99-sysctl.conf ...\n* Applying /usr/lib/sysctl.d/protect-links.conf ...\nfs.protected_fifos = 1\nfs.protected_hardlinks = 1\nfs.protected_regular = 2\nfs.protected_symlinks = 1\n* Applying /etc/sysctl.conf ...\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.663397    4083 installer.go:233] controller/byohost "msg"="Installing: cri-tools" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:08.663435    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c if [ -f /var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/cri-tools.deb ]; then dpkg --install '/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/cri-tools.deb' \u0026\u0026 apt-mark hold cri-tools; fi" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:12.527486    4083 installer.go:231] controller/byohost "msg"="Selecting previously unselected package cri-tools.\n(Reading database ... 147019 files and directories currently installed.)\nPreparing to unpack .../cri-tools.deb ...\nUnpacking cri-tools (1.19.0-00) ...\nSetting up cri-tools (1.19.0-00) ...\ncri-tools set on hold.\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:12.527557    4083 installer.go:233] controller/byohost "msg"="Installing: kubernetes-cni" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:12.527643    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c if [ -f /var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/kubernetes-cni.deb ]; then dpkg --install '/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/kubernetes-cni.deb' \u0026\u0026 apt-mark hold kubernetes-cni; fi" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:15.098846    4083 installer.go:231] controller/byohost "msg"="Selecting previously unselected package kubernetes-cni.\n(Reading database ... 147020 files and directories currently installed.)\nPreparing to unpack .../kubernetes-cni.deb ...\nUnpacking kubernetes-cni (0.8.7-00) ...\nSetting up kubernetes-cni (0.8.7-00) ...\nkubernetes-cni set on hold.\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:15.098908    4083 installer.go:233] controller/byohost "msg"="Installing: CONTAINERD" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:15.098962    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c tar -C / -xvf '/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/containerd.tar'" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:18.330876    4083 installer.go:231] controller/byohost "msg"="etc/\netc/crictl.yaml\netc/systemd/\netc/systemd/system/\netc/systemd/system/containerd.service\netc/cni/\netc/cni/net.d/\netc/cni/net.d/10-containerd-net.conflist\nusr/\nusr/local/\nusr/local/bin/\nusr/local/bin/crictl\nusr/local/bin/containerd-shim-runc-v1\nusr/local/bin/containerd-shim-runc-v2\nusr/local/bin/containerd-shim\nusr/local/bin/critest\nusr/local/bin/ctr\nusr/local/bin/containerd-stress\nusr/local/bin/containerd\nusr/local/bin/ctd-decoder\nusr/local/sbin/\nusr/local/sbin/runc\nopt/\nopt/cni/\nopt/cni/bin/\nopt/cni/bin/static\nopt/cni/bin/ptp\nopt/cni/bin/firewall\nopt/cni/bin/dhcp\nopt/cni/bin/bandwidth\nopt/cni/bin/ipvlan\nopt/cni/bin/host-device\nopt/cni/bin/vlan\nopt/cni/bin/bridge\nopt/cni/bin/flannel\nopt/cni/bin/vrf\nopt/cni/bin/macvlan\nopt/cni/bin/sbr\nopt/cni/bin/host-local\nopt/cni/bin/loopback\nopt/cni/bin/tuning\nopt/cni/bin/portmap\nopt/containerd/\nopt/containerd/cluster/\nopt/containerd/cluster/gce/\nopt/containerd/cluster/gce/configure.sh\nopt/containerd/cluster/gce/cni.template\nopt/containerd/cluster/gce/cloud-init/\nopt/containerd/cluster/gce/cloud-init/node.yaml\nopt/containerd/cluster/gce/cloud-init/master.yaml\nopt/containerd/cluster/gce/env\nopt/containerd/cluster/version\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:18.330939    4083 installer.go:233] controller/byohost "msg"="Installing: CONTAINERD SERVICE" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:18.330980    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c systemctl daemon-reload \u0026\u0026 systemctl enable containerd \u0026\u0026 systemctl start containerd" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:19.159574    4083 installer.go:232] controller/byohost "msg"="Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /etc/systemd/system/containerd.service.\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:19.159722    4083 installer.go:233] controller/byohost "msg"="Installing: kubelet" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:19.159849    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c dpkg --install '/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/kubelet.deb' \u0026\u0026 apt-mark hold kubelet" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:24.083898    4083 installer.go:232] controller/byohost "msg"="Created symlink /etc/systemd/system/multi-user.target.wants/kubelet.service → /lib/systemd/system/kubelet.service.\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:24.083965    4083 installer.go:231] controller/byohost "msg"="Selecting previously unselected package kubelet.\n(Reading database ... 147039 files and directories currently installed.)\nPreparing to unpack .../kubelet.deb ...\nUnpacking kubelet (1.22.3-00) ...\nSetting up kubelet (1.22.3-00) ...\nkubelet set on hold.\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:24.083998    4083 installer.go:233] controller/byohost "msg"="Installing: kubectl" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:24.084049    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c dpkg --install '/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/kubectl.deb' \u0026\u0026 apt-mark hold kubectl" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:26.389769    4083 installer.go:231] controller/byohost "msg"="Selecting previously unselected package kubectl.\n(Reading database ... 147041 files and directories currently installed.)\nPreparing to unpack .../kubectl.deb ...\nUnpacking kubectl (1.22.3-00) ...\nSetting up kubectl (1.22.3-00) ...\nkubectl set on hold.\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:26.389862    4083 installer.go:233] controller/byohost "msg"="Installing: kubeadm" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:26.389940    4083 installer.go:230] controller/byohost "msg"="/usr/bin/bash -c dpkg --install '/var/lib/byoh/bundles/v1.22.3-v0.1.0_alpha.2/kubeadm.deb' \u0026\u0026 apt-mark hold kubeadm" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost" 
I1123 20:41:29.860489    4083 installer.go:231] controller/byohost "msg"="Selecting previously unselected package kubeadm.\n(Reading database ... 147042 files and directories currently installed.)\nPreparing to unpack .../kubeadm.deb ...\nUnpacking kubeadm (1.22.3-00) ...\nSetting up kubeadm (1.22.3-00) ...\nkubeadm set on hold.\n" "name"="node01" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="ByoHost"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants