启动flanneld失败,版本0.7
版本:etcd3.1,flanneld0.7
先设置了etcdctl put /atomic.io/network/config '{ "Network": "172.17.0.0/16", "Backend": { "Type": "vxlan" } }'
/etc/sysconfig/flanneld
FLANNEL_ETCD_ENDPOINTS="http://172.16.229.151:2379"
FLANNEL_ETCD_PREFIX="/atomic.io/network"
启动flanneld服务,报错
systemctl start flanneld.service
Job for flanneld.service failed because a timeout was exceeded. See "systemctl status flanneld.service" and "journalctl -xe" for details.
systemctl status flanneld.service
● flanneld.service - Flanneld overlay address etcd agent
Loaded: loaded (/usr/lib/systemd/system/flanneld.service; disabled; vendor preset: disabled)
Active: activating (start) since 四 2017-06-15 14:10:37 CST; 8s ago
Main PID: 2264 (flanneld)
Memory: 6.6M
CGroup: /system.slice/flanneld.service
└─2264 /usr/bin/flanneld -etcd-endpoints=http://172.16.229.151:2379 -etcd-prefix=/atomic.io/network
6月 15 14:10:37 kubernetes1 flanneld-start: I0615 14:10:37.725350 2264 manager.go:166] Defaulting external address to interface address (172.16.229.151)
6月 15 14:10:37 kubernetes1 flanneld-start: E0615 14:10:37.727506 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:38 kubernetes1 flanneld-start: E0615 14:10:38.730204 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:39 kubernetes1 flanneld-start: E0615 14:10:39.731601 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:40 kubernetes1 flanneld-start: E0615 14:10:40.734309 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:41 kubernetes1 flanneld-start: E0615 14:10:41.736936 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:42 kubernetes1 flanneld-start: E0615 14:10:42.739467 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:43 kubernetes1 flanneld-start: E0615 14:10:43.742372 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:44 kubernetes1 flanneld-start: E0615 14:10:44.744994 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:45 kubernetes1 flanneld-start: E0615 14:10:45.747595 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
journalctl -xe
6月 15 14:10:37 kubernetes1 flanneld-start: I0615 14:10:37.457105 2227 main.go:172] Exiting...
6月 15 14:10:37 kubernetes1 systemd: Failed to start Flanneld overlay address etcd agent.
-- Subject: Unit flanneld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/m ... devel
-- Unit flanneld.service has failed.
-- The result is failed.
6月 15 14:10:37 kubernetes1 systemd: Unit flanneld.service entered failed state.
6月 15 14:10:37 kubernetes1 systemd: flanneld.service failed.
6月 15 14:10:37 kubernetes1 polkitd: Unregistered Authentication Agent for unix-process:2257:78346 (system bus name :1.32, object path /org/freedesktop/PolicyKit1/Authenticatio
6月 15 14:10:37 kubernetes1 systemd: flanneld.service holdoff time over, scheduling restart.
6月 15 14:10:37 kubernetes1 systemd: Starting Flanneld overlay address etcd agent...
-- Subject: Unit flanneld.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/m ... devel
-- Unit flanneld.service has begun starting up.
6月 15 14:10:37 kubernetes1 flanneld-start: I0615 14:10:37.724987 2264 main.go:132] Installing signal handlers
6月 15 14:10:37 kubernetes1 flanneld-start: I0615 14:10:37.725119 2264 manager.go:136] Determining IP address of default interface
6月 15 14:10:37 kubernetes1 flanneld-start: I0615 14:10:37.725327 2264 manager.go:149] Using interface with name eth0 and address 172.16.229.151
6月 15 14:10:37 kubernetes1 flanneld-start: I0615 14:10:37.725350 2264 manager.go:166] Defaulting external address to interface address (172.16.229.151)
6月 15 14:10:37 kubernetes1 flanneld-start: E0615 14:10:37.727506 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:38 kubernetes1 flanneld-start: E0615 14:10:38.730204 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:39 kubernetes1 flanneld-start: E0615 14:10:39.731601 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:40 kubernetes1 flanneld-start: E0615 14:10:40.734309 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
6月 15 14:10:41 kubernetes1 flanneld-start: E0615 14:10:41.736936 2264 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io)
3 个回复
wisen
赞同来自:
把你的service里面的运行命令这一段
/usr/bin/flanneld -etcd-endpoints=http://172.16.229.151:2379 -etcd-prefix=/ ......
单独拿出来,直接在bash里面运行看看日志。你这日志截得看不大懂。徐新坤 - 京东商城-TIG-JDOS团队
赞同来自:
failed to retrieve network config: 100: Key not found (/atomic.io)
这个已经提示了,应该是你的etcd的配置没有配好。可以再做一下检查。wjp719
赞同来自:
请问找到原因了么, 同遇到这个问题