使用 ./kk init os -f kk-config.yaml 初始化环境时,chronyd 配置无效,报出警告
dpkg-statoverride: warning: --update given but /var/log/chrony does not exist
再次使用 ./kk init os -f kk-config.yaml 检测环境时 ok
但是执行 ./kk create cluster -f kk-config.yaml 时报错
Relevant log output
initOs错误
./kk init os -f kk-config.yaml
_ __ _ _ __
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ |_| | |_) | __/ |\ \ __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
__/ |
|___/
10:16:03 UTC [GreetingsModule] Greetings
10:16:03 UTC message: [k8s03]
Greetings, KubeKey!
10:16:03 UTC message: [k8s01]
Greetings, KubeKey!
10:16:04 UTC message: [k8s02]
Greetings, KubeKey!
10:16:04 UTC success: [k8s03]
10:16:04 UTC success: [k8s01]
10:16:04 UTC success: [k8s02]
10:16:04 UTC [RepositoryOnlineModule] Get OS release
10:16:04 UTC success: [k8s01]
10:16:04 UTC success: [k8s02]
10:16:04 UTC success: [k8s03]
10:16:04 UTC [RepositoryOnlineModule] New repository client
10:16:04 UTC success: [k8s03]
10:16:04 UTC success: [k8s01]
10:16:04 UTC success: [k8s02]
10:16:04 UTC [RepositoryOnlineModule] Install packages
10:16:12 UTC stdout: [k8s02]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
iptables libip6tc2 libipset13
libnetfilter-conntrack3 libnfnetlink0
libnftnl11 libnl-3-200 libnl-genl-3-200
Suggested packages:
dnsutils nftables firewalld heartbeat
keepalived ldirectord
The following packages will be REMOVED:
systemd-timesyncd
The following NEW packages will be installed:
chrony conntrack ebtables ipset iptables
ipvsadm libip6tc2 libipset13
libnetfilter-conntrack3 libnfnetlink0
libnftnl11 libnl-3-200 libnl-genl-3-200 socat
0 upgraded, 14 newly installed, 1 to remove and 28 not upgraded.
Need to get 1556 kB of archives.
After this operation, 5629 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 chrony arm64 4.2-2ubuntu2 [290 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libip6tc2 arm64 1.8.7-1ubuntu5 [20.1 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnfnetlink0 arm64 1.0.1-3build3 [14.2 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnetfilter-conntrack3 arm64 1.0.9-1 [44.5 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnftnl11 arm64 1.2.1-1build1 [64.5 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 iptables arm64 1.8.7-1ubuntu5 [451 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 conntrack arm64 1:1.4.6-2build2 [32.4 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 ebtables arm64 2.0.11-4build2 [85.4 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libipset13 arm64 7.15-1build1 [63.3 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnl-3-200 arm64 3.5.0-0.1 [58.1 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnl-genl-3-200 arm64 3.5.0-0.1 [12.1 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 ipset arm64 7.15-1build1 [32.7 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 ipvsadm arm64 1:1.31-1build2 [41.0 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 socat arm64 1.7.4.1-3ubuntu4 [348 kB]
Fetched 1556 kB in 4s (386 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 68042 files and directories currently installed.)
Removing systemd-timesyncd (249.11-0ubuntu3.4) ...
Selecting previously unselected package chrony.
(Reading database ... 68028 files and directories currently installed.)
Preparing to unpack .../00-chrony_4.2-2ubuntu2_arm64.deb ...
Unpacking chrony (4.2-2ubuntu2) ..............]
Selecting previously unselected package libip6tc2:arm64.
Preparing to unpack .../01-libip6tc2_1.8.7-1ubuntu5_arm64.deb ...
Unpacking libip6tc2:arm64 (1.8.7-1ubuntu5) ...]
Selecting previously unselected package libnfnetlink0:arm64.
Preparing to unpack .../02-libnfnetlink0_1.0.1-3build3_arm64.deb ...
Unpacking libnfnetlink0:arm64 (1.0.1-3build3) ...
Selecting previously unselected package libnetfilter-conntrack3:arm64.
Preparing to unpack .../03-libnetfilter-conntrack3_1.0.9-1_arm64.deb ...
Unpacking libnetfilter-conntrack3:arm64 (1.0.9-1) ...
Selecting previously unselected package libnftnl11:arm64.
Preparing to unpack .../04-libnftnl11_1.2.1-1build1_arm64.deb ...
Unpacking libnftnl11:arm64 (1.2.1-1build1) ...]
Selecting previously unselected package iptables.
Preparing to unpack .../05-iptables_1.8.7-1ubuntu5_arm64.deb ...
Unpacking iptables (1.8.7-1ubuntu5) ..........]
Selecting previously unselected package conntrack.
Preparing to unpack .../06-conntrack_1%3a1.4.6-2build2_arm64.deb ...
Unpacking conntrack (1:1.4.6-2build2) ........]
Selecting previously unselected package ebtables.
Preparing to unpack .../07-ebtables_2.0.11-4build2_arm64.deb ...
Unpacking ebtables (2.0.11-4build2) ..........]
Selecting previously unselected package libipset13:arm64.
Preparing to unpack .../08-libipset13_7.15-1build1_arm64.deb ...
Unpacking libipset13:arm64 (7.15-1build1) ....]
Selecting previously unselected package libnl-3-200:arm64.
Preparing to unpack .../09-libnl-3-200_3.5.0-0.1_arm64.deb ...
Unpacking libnl-3-200:arm64 (3.5.0-0.1) ......]
Selecting previously unselected package libnl-genl-3-200:arm64.
Preparing to unpack .../10-libnl-genl-3-200_3.5.0-0.1_arm64.deb ...
Unpacking libnl-genl-3-200:arm64 (3.5.0-0.1) ...
Selecting previously unselected package ipset.]
Preparing to unpack .../11-ipset_7.15-1build1_arm64.deb ...
Unpacking ipset (7.15-1build1) ...............]
Selecting previously unselected package ipvsadm.
Preparing to unpack .../12-ipvsadm_1%3a1.31-1build2_arm64.deb ...
Unpacking ipvsadm (1:1.31-1build2) ...........]
Selecting previously unselected package socat.]
Preparing to unpack .../13-socat_1.7.4.1-3ubuntu4_arm64.deb ...
Unpacking socat (1.7.4.1-3ubuntu4) ...........]
Setting up libip6tc2:arm64 (1.8.7-1ubuntu5) ...
Setting up chrony (4.2-2ubuntu2) .............]
debconf: unable to initialize frontend: Dialog]
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Creating config file /etc/chrony/chrony.conf with new version
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Creating config file /etc/chrony/chrony.keys with new version
dpkg-statoverride: warning: --update given but /var/log/chrony does not exist
Created symlink /etc/systemd/system/chronyd.service → /lib/systemd/system/chrony.service.
Created symlink /etc/systemd/system/multi-user.target.wants/chrony.service → /lib/systemd/system/chrony.service.
Setting up libnftnl11:arm64 (1.2.1-1build1) ...
Setting up ebtables (2.0.11-4build2) .........]
update-alternatives: using /usr/sbin/ebtables-legacy to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up socat (1.7.4.1-3ubuntu4) ..........]
Setting up libipset13:arm64 (7.15-1build1) ...]
Setting up libnfnetlink0:arm64 (1.0.1-3build3) ...
Setting up libnl-3-200:arm64 (3.5.0-0.1) .....]
Setting up ipset (7.15-1build1) ...####.......]
Setting up libnetfilter-conntrack3:arm64 (1.0.9-1) ...
Setting up libnl-genl-3-200:arm64 (3.5.0-0.1) ...
Setting up ipvsadm (1:1.31-1build2) ...###....]
Setting up iptables (1.8.7-1ubuntu5) ...###...]
update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-legacy to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/iptables-nft to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-nft to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up conntrack (1:1.4.6-2build2) ...##..]
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for dbus (1.12.20-2ubuntu4) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor
(qemu) binaries on this host.
10:16:13 UTC stdout: [k8s01]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
iptables libip6tc2 libipset13
libnetfilter-conntrack3 libnfnetlink0
libnftnl11 libnl-3-200 libnl-genl-3-200
Suggested packages:
dnsutils nftables firewalld heartbeat
keepalived ldirectord
The following packages will be REMOVED:
systemd-timesyncd
The following NEW packages will be installed:
chrony conntrack ebtables ipset iptables
ipvsadm libip6tc2 libipset13
libnetfilter-conntrack3 libnfnetlink0
libnftnl11 libnl-3-200 libnl-genl-3-200 socat
0 upgraded, 14 newly installed, 1 to remove and 28 not upgraded.
Need to get 1556 kB of archives.
After this operation, 5629 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 chrony arm64 4.2-2ubuntu2 [290 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libip6tc2 arm64 1.8.7-1ubuntu5 [20.1 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnfnetlink0 arm64 1.0.1-3build3 [14.2 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnetfilter-conntrack3 arm64 1.0.9-1 [44.5 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnftnl11 arm64 1.2.1-1build1 [64.5 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 iptables arm64 1.8.7-1ubuntu5 [451 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 conntrack arm64 1:1.4.6-2build2 [32.4 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 ebtables arm64 2.0.11-4build2 [85.4 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libipset13 arm64 7.15-1build1 [63.3 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnl-3-200 arm64 3.5.0-0.1 [58.1 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libnl-genl-3-200 arm64 3.5.0-0.1 [12.1 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 ipset arm64 7.15-1build1 [32.7 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 ipvsadm arm64 1:1.31-1build2 [41.0 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 socat arm64 1.7.4.1-3ubuntu4 [348 kB]
Fetched 1556 kB in 5s (324 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 68042 files and directories currently installed.)
Removing systemd-timesyncd (249.11-0ubuntu3.4) ...
Selecting previously unselected package chrony.
(Reading database ... 68028 files and directories currently installed.)
Preparing to unpack .../00-chrony_4.2-2ubuntu2_arm64.deb ...
Unpacking chrony (4.2-2ubuntu2) ..............]
Selecting previously unselected package libip6tc2:arm64.
Preparing to unpack .../01-libip6tc2_1.8.7-1ubuntu5_arm64.deb ...
Unpacking libip6tc2:arm64 (1.8.7-1ubuntu5) ...]
Selecting previously unselected package libnfnetlink0:arm64.
Preparing to unpack .../02-libnfnetlink0_1.0.1-3build3_arm64.deb ...
Unpacking libnfnetlink0:arm64 (1.0.1-3build3) ...
Selecting previously unselected package libnetfilter-conntrack3:arm64.
Preparing to unpack .../03-libnetfilter-conntrack3_1.0.9-1_arm64.deb ...
Unpacking libnetfilter-conntrack3:arm64 (1.0.9-1) ...
Selecting previously unselected package libnftnl11:arm64.
Preparing to unpack .../04-libnftnl11_1.2.1-1build1_arm64.deb ...
Unpacking libnftnl11:arm64 (1.2.1-1build1) ...]
Selecting previously unselected package iptables.
Preparing to unpack .../05-iptables_1.8.7-1ubuntu5_arm64.deb ...
Unpacking iptables (1.8.7-1ubuntu5) ..........]
Selecting previously unselected package conntrack.
Preparing to unpack .../06-conntrack_1%3a1.4.6-2build2_arm64.deb ...
Unpacking conntrack (1:1.4.6-2build2) ........]
Selecting previously unselected package ebtables.
Preparing to unpack .../07-ebtables_2.0.11-4build2_arm64.deb ...
Unpacking ebtables (2.0.11-4build2) ..........]
Selecting previously unselected package libipset13:arm64.
Preparing to unpack .../08-libipset13_7.15-1build1_arm64.deb ...
Unpacking libipset13:arm64 (7.15-1build1) ....]
Selecting previously unselected package libnl-3-200:arm64.
Preparing to unpack .../09-libnl-3-200_3.5.0-0.1_arm64.deb ...
Unpacking libnl-3-200:arm64 (3.5.0-0.1) ......]
Selecting previously unselected package libnl-genl-3-200:arm64.
Preparing to unpack .../10-libnl-genl-3-200_3.5.0-0.1_arm64.deb ...
Unpacking libnl-genl-3-200:arm64 (3.5.0-0.1) ...
Selecting previously unselected package ipset.]
Preparing to unpack .../11-ipset_7.15-1build1_arm64.deb ...
Unpacking ipset (7.15-1build1) ...............]
Selecting previously unselected package ipvsadm.
Preparing to unpack .../12-ipvsadm_1%3a1.31-1build2_arm64.deb ...
Unpacking ipvsadm (1:1.31-1build2) ...........]
Selecting previously unselected package socat.]
Preparing to unpack .../13-socat_1.7.4.1-3ubuntu4_arm64.deb ...
Unpacking socat (1.7.4.1-3ubuntu4) ...........]
Setting up libip6tc2:arm64 (1.8.7-1ubuntu5) ...
Setting up chrony (4.2-2ubuntu2) .............]
debconf: unable to initialize frontend: Dialog]
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Creating config file /etc/chrony/chrony.conf with new version
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Creating config file /etc/chrony/chrony.keys with new version
dpkg-statoverride: warning: --update given but /var/log/chrony does not exist
Created symlink /etc/systemd/system/chronyd.service → /lib/systemd/system/chrony.service.
Created symlink /etc/systemd/system/multi-user.target.wants/chrony.service → /lib/systemd/system/chrony.service.
Setting up libnftnl11:arm64 (1.2.1-1build1) ...
Setting up ebtables (2.0.11-4build2) .........]
update-alternatives: using /usr/sbin/ebtables-legacy to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up socat (1.7.4.1-3ubuntu4) ..........]
Setting up libipset13:arm64 (7.15-1build1) ...]
Setting up libnfnetlink0:arm64 (1.0.1-3build3) ...
Setting up libnl-3-200:arm64 (3.5.0-0.1) .....]
Setting up ipset (7.15-1build1) ...####.......]
Setting up libnetfilter-conntrack3:arm64 (1.0.9-1) ...
Setting up libnl-genl-3-200:arm64 (3.5.0-0.1) ...
Setting up ipvsadm (1:1.31-1build2) ...###....]
Setting up iptables (1.8.7-1ubuntu5) ...###...]
update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-legacy to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/iptables-nft to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-nft to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up conntrack (1:1.4.6-2build2) ...##..]
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for dbus (1.12.20-2ubuntu4) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor
(qemu) binaries on this host.
createCluster错误
./kk create cluster -f kk-config.yaml
_ __ _ _ __
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ |_| | |_) | __/ |\ \ __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
__/ |
|___/
19:09:58 CST [GreetingsModule] Greetings
19:09:58 CST message: [k8s03]
Greetings, KubeKey!
19:09:58 CST message: [k8s01]
Greetings, KubeKey!
19:09:59 CST message: [k8s02]
Greetings, KubeKey!
19:09:59 CST success: [k8s03]
19:09:59 CST success: [k8s01]
19:09:59 CST success: [k8s02]
19:09:59 CST [NodePreCheckModule] A pre-check on nodes
19:09:59 CST success: [k8s01]
19:09:59 CST success: [k8s03]
19:09:59 CST success: [k8s02]
19:09:59 CST [ConfirmModule] Display confirmation form
+-------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| name | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time |
+-------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| k8s01 | y | y | y | y | y | y | y | y | y | | | | | | CST 19:09:59 |
| k8s02 | y | y | y | y | y | y | y | y | y | | | | | | CST 19:09:59 |
| k8s03 | y | y | y | y | y | y | y | y | y | | | | | | CST 19:09:59 |
+-------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
This is a simple check of your environment.
Before installation, ensure that your machines meet all requirements specified at
https://github.com/kubesphere/kubekey#requirements-and-recommendations
Continue this installation? [yes/no]: yes
19:10:00 CST success: [LocalHost]
19:10:00 CST [NodeBinariesModule] Download installation binaries
19:10:00 CST message: [localhost]
downloading amd64 kubeadm v1.24.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 42.3M 100 42.3M 0 0 1013k 0 0:00:42 0:00:42 --:--:-- 1021k
19:10:43 CST message: [localhost]
downloading amd64 kubelet v1.24.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 110M 100 110M 0 0 986k 0 0:01:55 0:01:55 --:--:-- 1029k
19:12:39 CST message: [localhost]
downloading amd64 kubectl v1.24.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 43.5M 100 43.5M 0 0 1010k 0 0:00:44 0:00:44 --:--:-- 1018k
19:13:23 CST message: [localhost]
downloading amd64 helm v3.6.3 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 43.0M 100 43.0M 0 0 1007k 0 0:00:43 0:00:43 --:--:-- 1027k
19:14:07 CST message: [localhost]
downloading amd64 kubecni v0.9.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 37.9M 100 37.9M 0 0 1016k 0 0:00:38 0:00:38 --:--:-- 1036k
19:14:45 CST message: [localhost]
downloading amd64 crictl v1.24.0 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.8M 100 13.8M 0 0 1005k 0 0:00:14 0:00:14 --:--:-- 1023k
19:14:59 CST message: [localhost]
downloading amd64 etcd v3.4.13 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.5M 100 16.5M 0 0 1005k 0 0:00:16 0:00:16 --:--:-- 1030k
19:15:16 CST message: [localhost]
downloading amd64 containerd 1.6.4 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 42.3M 100 42.3M 0 0 974k 0 0:00:44 0:00:44 --:--:-- 1026k
19:16:01 CST message: [localhost]
downloading amd64 runc v1.1.1 ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9194k 100 9194k 0 0 992k 0 0:00:09 0:00:09 --:--:-- 1027k
19:16:10 CST success: [LocalHost]
19:16:10 CST [ConfigureOSModule] Prepare to init OS
19:16:11 CST success: [k8s02]
19:16:11 CST success: [k8s03]
19:16:11 CST success: [k8s01]
19:16:11 CST [ConfigureOSModule] Generate init os script
19:16:11 CST success: [k8s01]
19:16:11 CST success: [k8s02]
19:16:11 CST success: [k8s03]
19:16:11 CST [ConfigureOSModule] Exec init os script
19:16:11 CST stdout: [k8s03]
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
vm.max_map_count = 262144
vm.swappiness = 1
fs.inotify.max_user_instances = 524288
kernel.pid_max = 65535
19:16:11 CST stdout: [k8s01]
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
vm.max_map_count = 262144
vm.swappiness = 1
fs.inotify.max_user_instances = 524288
kernel.pid_max = 65535
19:16:11 CST stdout: [k8s02]
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
vm.max_map_count = 262144
vm.swappiness = 1
fs.inotify.max_user_instances = 524288
kernel.pid_max = 65535
19:16:11 CST success: [k8s03]
19:16:11 CST success: [k8s01]
19:16:11 CST success: [k8s02]
19:16:11 CST [ConfigureOSModule] configure the ntp server for each node
19:16:11 CST message: [k8s01]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:11 CST retry: [k8s01]
19:16:11 CST message: [k8s02]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:11 CST retry: [k8s02]
19:16:11 CST message: [k8s03]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:11 CST retry: [k8s03]
19:16:16 CST message: [k8s01]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:16 CST retry: [k8s01]
19:16:16 CST message: [k8s02]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:16 CST retry: [k8s02]
19:16:16 CST message: [k8s03]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:16 CST retry: [k8s03]
19:16:21 CST message: [k8s01]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:21 CST message: [k8s02]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:21 CST message: [k8s03]
set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
19:16:21 CST failed: [k8s01]
19:16:21 CST failed: [k8s02]
19:16:21 CST failed: [k8s03]
error: Pipeline[CreateClusterPipeline] execute failed: Module[ConfigureOSModule] exec failed:
failed: [k8s01] [ConfigureNtpServer] exec failed after 3 retires: set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
failed: [k8s02] [ConfigureNtpServer] exec failed after 3 retires: set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
failed: [k8s03] [ConfigureNtpServer] exec failed after 3 retires: set ntpserver: time1.cloud.tencent.com failed, please check file /etc/chrony.conf: Failed to exec command: sudo -E /bin/bash -c "grep -q '^server time1.cloud.tencent.com iburst' /etc/chrony.conf||sed '1a server time1.cloud.tencent.com iburst' -i /etc/chrony.conf"
grep: /etc/chrony.conf: No such file or directory
sed: can't read /etc/chrony.conf: No such file or directory: Process exited with status 2
What is version of KubeKey has the issue?
version.BuildInfo{Version:"2.2.1", GitCommit:"c056977c", GitTreeState:"", GoVersion:"go1.17.11"}
What is your os environment?
ubuntu22.04Arm64 server 最小化安装
KubeKey config file
A clear and concise description of what happend.
./kk init os -f kk-config.yaml
初始化环境时,chronyd
配置无效,报出警告dpkg-statoverride: warning: --update given but /var/log/chrony does not exist
./kk init os -f kk-config.yaml
检测环境时ok
./kk create cluster -f kk-config.yaml
时报错Relevant log output
initOs错误
createCluster错误
Additional information