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

flannel 0.7 cannot get network config from etcdv3.1.5 with api version2, how to configure flannel to use etcd v3 api #755

Closed
wjp719 opened this issue Jun 22, 2017 · 6 comments

Comments

@wjp719
Copy link

wjp719 commented Jun 22, 2017

Your Environment

  • Flannel version: 0.7
  • Backend used (e.g. vxlan or udp): udp
  • Etcd version: 3.1.5
  • Kubernetes version (if used): 1.6.6
  • Operating System and version: ubuntu 16.04
  • Link to your project (optional):

the flannel log:
E0622 14:04:43.257244 6229 network.go:102] failed to retrieve network config: 100: Key not found (/coreos.com) [17]
E0622 14:04:44.261566 6229 network.go:102] failed to retrieve network config: 100: Key not found (/coreos.com) [17]
E0622 14:04:45.276585 6229 network.go:102] failed to retrieve network config: 100: Key not found (/coreos.com) [17]
E0622 14:04:46.280412 6229 network.go:102] failed to retrieve network config: 100: Key not found (/coreos.com) [17]
E0622 14:04:47.284005 6229 network.go:102] failed to retrieve network config: 100: Key not found (/coreos.com) [17]
E0622 14:04:48.309350 6229 network.go:102] failed to retrieve network config: 100: Key not found (/coreos.com) [17]

the etcd log:
Jun 22 14:04:35 master etcd[1365]: [GET] /v2/keys/coreos.com/network/config?quorum=true&recursive=false&sorted=false remote:10.10.10.4:45468

and when I use the etcdctl cdl with etcd version 3, I can get the network config

@tomdee
Copy link
Contributor

tomdee commented Jun 22, 2017

Flannel currently only supports the etcdv2 API (but you can still run etcd v3.x)

@tomdee tomdee closed this as completed Jun 22, 2017
@wjp719
Copy link
Author

wjp719 commented Jun 23, 2017

@tomdee Hi, in my environment, flannel cannot get the network config from etcdv3 with v2 api, does it need additional configuration in etcd or flannel, thanks

@lghinet
Copy link

lghinet commented Oct 11, 2017

same problem here

@tomdee
Copy link
Contributor

tomdee commented Oct 16, 2017

@lghinet @wjp719 please open a new issue if you're still having problems

@justdigitalfilm
Copy link

Did anyone ever resolve this issue? It seems to still be effecting Flannel 0.7.1 >> etcd 3.3.11

@xh3b4sd
Copy link

xh3b4sd commented May 28, 2019

The rather unfortunate UX in this case implies that the command structure for etcdctl is pretty different between V2 and V3. In my case I can do something like this. Also check the changing help usage of the commands between versions.

sudo ETCDCTL_API=2 etcdctl --cert-file /etc/kubernetes/ssl/etcd/etcd.pem --key-file /etc/kubernetes/ssl/etcd/etcd-key.pem --ca-file /etc/kubernetes/ssl/etcd/etcd-ca.pem --endpoints "https://127.0.0.1:2379" ls /coreos.com/network

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants