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 not processing the ipamconfig correctly #1617

Closed
manuelbuil opened this issue Aug 12, 2021 · 1 comment
Closed

Calico not processing the ipamconfig correctly #1617

manuelbuil opened this issue Aug 12, 2021 · 1 comment
Assignees
Labels
area/cni kind/dev-validation Dev will be validating this issue

Comments

@manuelbuil
Copy link
Contributor

manuelbuil commented Aug 12, 2021

Environmental Info:
RKE2 Version: v1.21.3

Describe the bug:

+--------------------+-------+
|      PROPERTY      | VALUE |
+--------------------+-------+
| StrictAffinity     | false |
| AutoAllocateBlocks | true  |
| MaxBlocksPerHost   |     0 |
+--------------------+-------+

Even though we are explicitly passing the config:

apiVersion: crd.projectcalico.org/v1
kind: IPAMConfig
metadata:
  name: rancher-config
spec:
  autoAllocateBlocks: true
  strictAffinity: true

Steps To Reproduce:

Deploy rke2 with calico and check:

./calicoctl ipam show --show-configuration

Expected behavior:

./calicoctl ipam show --show-configuration
+--------------------+-------+
|      PROPERTY      | VALUE |
+--------------------+-------+
| StrictAffinity     | true  |
| AutoAllocateBlocks | true  |
| MaxBlocksPerHost   |     0 |
+--------------------+-------+

Actual behavior:

./calicoctl ipam show --show-configuration
+--------------------+-------+
|      PROPERTY      | VALUE |
+--------------------+-------+
| StrictAffinity     | false |
| AutoAllocateBlocks | true  |
| MaxBlocksPerHost   |     0 |
+--------------------+-------+

Additional context / logs:

@manuelbuil manuelbuil self-assigned this Aug 12, 2021
@manuelbuil manuelbuil added this to the v1.21.4+rke2r1 milestone Aug 12, 2021
vadorovsky added a commit to vadorovsky/rke2 that referenced this issue Aug 12, 2021
The chart v3.19.2-202 contains a fix for the IPAMConfig name. Before
that change, the IPAMConfig was not consumed by Calico.

The chart change was submitted as rancher/rke2-charts#132

Ref: rancher#1617

Signed-off-by: Michal Rostecki <[email protected]>
vadorovsky added a commit to vadorovsky/rke2 that referenced this issue Aug 12, 2021
The chart v3.19.2-202 contains a fix for the IPAMConfig name. Before
that change, the IPAMConfig was not consumed by Calico.

The chart change was submitted as rancher/rke2-charts#132

Ref: rancher#1617

Signed-off-by: Michal Rostecki <[email protected]>
@bmdepesa bmdepesa added the kind/dev-validation Dev will be validating this issue label Aug 24, 2021
@dereknola dereknola self-assigned this Sep 22, 2021
@dereknola
Copy link
Member

Validated on master commit 09bb5c27f29cf3dd831653543d274c948a225385:

root@node-cluster-init-buster64:/home/vagrant# ./calicoctl ipam show --show-configuration
+--------------------+-------+
|      PROPERTY      | VALUE |
+--------------------+-------+
| StrictAffinity     | true  |
| AutoAllocateBlocks | true  |
| MaxBlocksPerHost   |     0 |
+--------------------+-------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cni kind/dev-validation Dev will be validating this issue
Projects
None yet
Development

No branches or pull requests

6 participants