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

Calico KDD not working #4727

Closed
woopstar opened this issue May 8, 2019 · 5 comments · Fixed by #4922
Closed

Calico KDD not working #4727

woopstar opened this issue May 8, 2019 · 5 comments · Fixed by #4922
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@woopstar
Copy link
Member

woopstar commented May 8, 2019

Calico KDD is currently not working as expected.

#4498 Added initial support for kdd and typha.

But when we install the Calico network plugin we alter the configuration using calicoctl. This alters the etcd cluster setup and NOT kdd, as it needs to update the CRD's using kubectl instead.

A task not working is: https://github.com/kubernetes-sigs/kubespray/blob/master/roles/network_plugin/calico/tasks/install.yml#L95

@grialeyur

@woopstar woopstar added the kind/bug Categorizes issue or PR as related to a bug. label May 8, 2019
@grialeyur
Copy link
Contributor

I'll explore this problem.

@JTabel
Copy link
Contributor

JTabel commented May 14, 2019

This also prevents upgrades,since the check for calico version is checking with an etcd backend, which does not provide any cluster version. See:

ETCD_ENDPOINTS: "{{ etcd_access_addresses }}"
ETCD_CA_CERT_FILE: "{{ calico_cert_dir }}/ca_cert.crt"
ETCD_CERT_FILE: "{{ calico_cert_dir }}/cert.crt"
ETCD_KEY_FILE: "{{ calico_cert_dir }}/key.pem"

@woopstar
Copy link
Member Author

@grialeyur any updates on this?

@JTabel
Copy link
Contributor

JTabel commented Jun 21, 2019

I have a possible solution by using the calicoctl wrapper script in 2 different versions and actually use it for the version check. This way it is a minimal code change but should have the desired results. I will be testing this shortly to see if it works.

@xeor
Copy link

xeor commented Jun 30, 2019

Not 100% sure if this is related, but I think so.
When trying to upgrade a cluster I use kdd on, I'm getting

TASK [kubernetes/preinstall : Check that calico version is enough for upgrade] *****************************************************************
Saturday 29 June 2019 23:21:26 +0200 (0:00:00.337) 0:00:25.211 *********
fatal: [d0]: FAILED! => {
"assertion": "calico_version_on_server.stdout is version('v2.6.5', '>=')",
"changed": false,
"evaluated_to": false,
"msg": "Your version of calico is not fresh enough for upgrade. Minimum version v2.6.5"
}

Is this related? The bin_dir it looks for calicoctl.sh is /usr/local/bin. But I have successfully upgraded this before I started using kdd..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants