Closed fanningert closed 2 years ago
Looks like is a problem of systemd-networkd when polkit is not installed. Then the /etc/hosts is not filled with the hostname.
https://github.com/systemd/systemd/issues/13501
Reference to similar issue: 1873
Analyse:
networkctl status
State: routable
Online state: online
Address: 192.168.1.190 on eno1
fe80::8aae:ddff:fe09:558c on eno1
Gateway: 192.168.1.1 on eno1
DNS: 192.168.1.1
Sep 11 07:56:03 cluster01 systemd[1]: Started Network Configuration.
Sep 11 07:56:04 cluster01 systemd-networkd[236]: eth0: Interface name change detected, renamed to eno1.
Sep 11 07:56:04 cluster01 systemd-networkd[236]: eno1: Configuring with /etc/systemd/network/20-wired-eno1.network.
Sep 11 07:56:04 cluster01 systemd-networkd[236]: eno1: Link UP
Sep 11 07:56:08 cluster01 systemd-networkd[236]: eno1: Gained carrier
Sep 11 07:56:09 cluster01 systemd-networkd[236]: eno1: Gained IPv6LL
Sep 11 07:56:12 cluster01 systemd-networkd[236]: eno1: DHCPv4 address 192.168.1.190/24, gateway 192.168.1.1 acquired from 192.168.1.1
Sep 11 07:56:12 cluster01 systemd-networkd[236]: Could not set hostname: Access denied
Sep 11 07:58:12 cluster01 systemd[1]: Starting Wait for Network to be Configured...
Sep 11 07:58:12 cluster01 systemd[1]: Finished Wait for Network to be Configured.
After installation polkit the error with " Could not set hostname: Access denied" is gone.
I also edit manuell the /etc/hosts.
Know it is working.
Before creating an issue, make sure you've checked the following:
Platform
Version
1.24.4+k0s.0
Sysinfo
`k0s sysinfo`
Machine ID: "25446bb7edce2de7c527663f4f600126356f9923264579b92bc0d2f747a6101c" (from machine) (pass) Total memory: 31.1 GiB (pass) Disk space available for /var/lib/k0s: 867.1 GiB (pass) Operating system: Linux (pass) Linux kernel release: 5.19.7-arch1-1 (pass) Max. file descriptors per process: current: 1024 / max: 524288 (warning: < 65536) Executable in path: modprobe: /usr/bin/modprobe (pass) /proc file system: mounted (0x9fa0) (pass) Control Groups: version 2 (pass) cgroup controller "cpu": available (pass) cgroup controller "cpuacct": available (via cpu in version 2) (pass) cgroup controller "cpuset": available (pass) cgroup controller "memory": available (pass) cgroup controller "devices": available (assumed) (pass) cgroup controller "freezer": available (assumed) (pass) cgroup controller "pids": available (pass) cgroup controller "hugetlb": available (pass) cgroup controller "blkio": available (via io in version 2) (pass) CONFIG_CGROUPS: Control Group support: built-in (pass) CONFIG_CGROUP_FREEZER: Freezer cgroup subsystem: built-in (pass) CONFIG_CGROUP_PIDS: PIDs cgroup subsystem: built-in (pass) CONFIG_CGROUP_DEVICE: Device controller for cgroups: built-in (pass) CONFIG_CPUSETS: Cpuset support: built-in (pass) CONFIG_CGROUP_CPUACCT: Simple CPU accounting cgroup subsystem: built-in (pass) CONFIG_MEMCG: Memory Resource Controller for Control Groups: built-in (pass) CONFIG_CGROUP_HUGETLB: HugeTLB Resource Controller for Control Groups: built-in (pass) CONFIG_CGROUP_SCHED: Group CPU scheduler: built-in (pass) CONFIG_FAIR_GROUP_SCHED: Group scheduling for SCHED_OTHER: built-in (pass) CONFIG_CFS_BANDWIDTH: CPU bandwidth provisioning for FAIR_GROUP_SCHED: built-in (pass) CONFIG_BLK_CGROUP: Block IO controller: built-in (pass) CONFIG_NAMESPACES: Namespaces support: built-in (pass) CONFIG_UTS_NS: UTS namespace: built-in (pass) CONFIG_IPC_NS: IPC namespace: built-in (pass) CONFIG_PID_NS: PID namespace: built-in (pass) CONFIG_NET_NS: Network namespace: built-in (pass) CONFIG_NET: Networking support: built-in (pass) CONFIG_INET: TCP/IP networking: built-in (pass) CONFIG_IPV6: The IPv6 protocol: built-in (pass) CONFIG_NETFILTER: Network packet filtering framework (Netfilter): built-in (pass) CONFIG_NETFILTER_ADVANCED: Advanced netfilter configuration: built-in (pass) CONFIG_NETFILTER_XTABLES: Netfilter Xtables support: module (pass) CONFIG_NETFILTER_XT_TARGET_REDIRECT: REDIRECT target support: module (pass) CONFIG_NETFILTER_XT_MATCH_COMMENT: "comment" match support: module (pass) CONFIG_NETFILTER_XT_MARK: nfmark target and match support: module (pass) CONFIG_NETFILTER_XT_SET: set target and match support: module (pass) CONFIG_NETFILTER_XT_TARGET_MASQUERADE: MASQUERADE target support: module (pass) CONFIG_NETFILTER_XT_NAT: "SNAT and DNAT" targets support: module (pass) CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: "addrtype" address type match support: module (pass) CONFIG_NETFILTER_XT_MATCH_CONNTRACK: "conntrack" connection tracking match support: module (pass) CONFIG_NETFILTER_XT_MATCH_MULTIPORT: "multiport" Multiple port match support: module (pass) CONFIG_NETFILTER_XT_MATCH_RECENT: "recent" match support: module (pass) CONFIG_NETFILTER_XT_MATCH_STATISTIC: "statistic" match support: module (pass) CONFIG_NETFILTER_NETLINK: module (pass) CONFIG_NF_CONNTRACK: Netfilter connection tracking support: module (pass) CONFIG_NF_NAT: module (pass) CONFIG_IP_SET: IP set support: module (pass) CONFIG_IP_SET_HASH_IP: hash:ip set support: module (pass) CONFIG_IP_SET_HASH_NET: hash:net set support: module (pass) CONFIG_IP_VS: IP virtual server support: module (pass) CONFIG_IP_VS_NFCT: Netfilter connection tracking: built-in (pass) CONFIG_NF_CONNTRACK_IPV4: IPv4 connetion tracking support (required for NAT): unknown (warning) CONFIG_NF_REJECT_IPV4: IPv4 packet rejection: module (pass) CONFIG_NF_NAT_IPV4: IPv4 NAT: unknown (warning) CONFIG_IP_NF_IPTABLES: IP tables support: module (pass) CONFIG_IP_NF_FILTER: Packet filtering: module (pass) CONFIG_IP_NF_TARGET_REJECT: REJECT target support: module (pass) CONFIG_IP_NF_NAT: iptables NAT support: module (pass) CONFIG_IP_NF_MANGLE: Packet mangling: module (pass) CONFIG_NF_DEFRAG_IPV4: module (pass) CONFIG_NF_CONNTRACK_IPV6: IPv6 connetion tracking support (required for NAT): unknown (warning) CONFIG_NF_NAT_IPV6: IPv6 NAT: unknown (warning) CONFIG_IP6_NF_IPTABLES: IP6 tables support: module (pass) CONFIG_IP6_NF_FILTER: Packet filtering: module (pass) CONFIG_IP6_NF_MANGLE: Packet mangling: module (pass) CONFIG_IP6_NF_NAT: ip6tables NAT support: module (pass) CONFIG_NF_DEFRAG_IPV6: module (pass) CONFIG_BRIDGE: 802.1d Ethernet Bridging: module (pass) CONFIG_LLC: module (pass) CONFIG_STP: module (pass) CONFIG_EXT4_FS: The Extended 4 (ext4) filesystem: module (pass) CONFIG_PROC_FS: /proc file system support: built-in (pass)What happened?
On creation of the cluster, I get the error
Error: error detecting local IP: lookup localhost: Try again
. I already disabled the network-resolved stub. So in the /etc/resolv.conf is the correct nameserver.Steps to reproduce
k0sctl apply --config k0sctl.yaml
Expected behavior
No response
Actual behavior
No response
Screenshots and logs
k0sctl log
Logs from the first server
journalctl -f -u k0scontroller.service
Additional context
No response