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

fix(addons/networking.projectcalico.org) calico kube-controllers is needed in CRD mode #7517

Merged
merged 1 commit into from
Sep 6, 2019
Merged

Conversation

phspagiari
Copy link
Contributor

The code comment says that Calico Kube Controllers isn't need in CRD mode, but we can see docs of calico saying how to configure for datastore mode and we started having problems using calico without this.

Problem description

  • We start seeing logs like this in calico-node:
2019-09-03 14:50:41.821 [INFO][24] ipam.go 311: Looking up existing affinities for host handle="ipip-tunnel-addr-ip-10-164-41-80.ec2.internal" host="ip-10-164-41-80.ec2.internal"
2019-09-03 14:50:41.966 [INFO][24] ipam.go 369: Ran out of existing affine blocks for host handle="ipip-tunnel-addr-ip-10-164-41-80.ec2.internal" host="ip-10-164-41-80.ec2.internal"
2019-09-03 14:50:41.971 [INFO][24] ipam.go 434: No more affine blocks, but need to allocate 1 more addresses - allocate another block handle="ipip-tunnel-addr-ip-10-164-41-80.ec2.internal" host="ip-10-164-41-80.ec2.internal"
2019-09-03 14:50:41.971 [INFO][24] ipam.go 438: Looking for an unclaimed block handle="ipip-tunnel-addr-ip-10-164-41-80.ec2.internal" host="ip-10-164-41-80.ec2.internal"
  • New nodes stopped to be up and Estabilished in calicoctl node status
  • We can see a lot of unused ipamblocks and blockaffinities resources on K8S with a very different number when compared to our nodes running:
kubectl get ipamblocks | wc -l && kubectl get blockaffinities | wc -l && kubectl get nodes | wc -l
512
512
76
  • After applying the deployment of calico-kube-controller, everything started working again and the numbers are now correct:
kubectl get ipamblocks | wc -l && kubectl get blockaffinities | wc -l && kubectl get nodes | wc -l
76
76
76
  • We can see calico-kube-controllers logs doing what was expected here:
2019-09-04 13:16:09.681 [INFO][1] ipam.go 1166: Releasing all IPs with handle 'ipip-tunnel-addr-ip-10-164-76-215.ec2.internal'
2019-09-04 13:16:13.677 [INFO][1] kdd.go 154: Cleaning up IPAM resources for deleted node node="ip-10-164-41-56.ec2.internal"

@k8s-ci-robot
Copy link
Contributor

Hi @phspagiari. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 4, 2019
@mikesplain
Copy link
Contributor

/ok-to-test
/assign

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 6, 2019
@mikesplain
Copy link
Contributor

That's a good catch, looks like there used to be old documentation stating this but it's been changed for current versions: https://github.com/projectcalico/kube-controllers/issues/346#issuecomment-470313052

@mikesplain mikesplain added this to the 1.14 milestone Sep 6, 2019
@mikesplain
Copy link
Contributor

/retest

@mikesplain
Copy link
Contributor

Tested this myself as well. We probably want to do some updates soon but lets get this back in now. I'm going to open a cherry pick to 1.13 and 1.14 too.

Thanks so much!
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 6, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikesplain, phspagiari

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2019
@k8s-ci-robot k8s-ci-robot merged commit 5501724 into kubernetes:master Sep 6, 2019
k8s-ci-robot added a commit that referenced this pull request Sep 6, 2019
…17-origin-release-1.13

Automated cherry pick of #7517: fix(addons/networking.projectcalico.org) calico
@mikesplain mikesplain mentioned this pull request Sep 7, 2019
3 tasks
@mikesplain
Copy link
Contributor

mikesplain commented Sep 10, 2019

Just to document the cherry picks of this better:

#7517 => original PR (master/v1.15)
#7526 => CP of #7526 to 1.13 modified with older versions
#7527 => CP of #7526 to 1.14 with same versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants