calico icon indicating copy to clipboard operation
calico copied to clipboard

Check if interface exists and is writeable before trying to configure

Open schans opened this issue 4 years ago • 7 comments

Description

Bug fix for https://github.com/projectcalico/calico/issues/5348

Related issues/PRs

fixes https://github.com/projectcalico/calico/issues/5348

Todos

  • [ ] Tests
  • [ ] Documentation
  • [ ] Release note

Release Note

Rework logging around sysctls for running Calico in non-privileged mode.

schans avatar Jan 03 '22 21:01 schans

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 03 '22 21:01 CLAassistant

/sem-approve

mgleung avatar Jan 10 '22 22:01 mgleung

@schans changes look good to me. I think there are some tweaks to our tests to uptake the changes that need to be made but once that's done, we should be good to merge.

mgleung avatar Jan 11 '22 01:01 mgleung

Seeing these test failures still:

mmarizing 8 Failures:01:52
[Fail] EndpointManager IPv6 workload endpoints with a workload endpoint [It] should report endpoint down 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:168001:52
[Fail] EndpointManager IPv6 workload endpoints with a workload endpoint with updates for the workload's iface [It] should report endpoint up 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:172601:52
[Fail] EndpointManager IPv6 workload endpoints with a workload endpoint with updates for the workload's iface [It] should write /proc/sys entries 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:199101:52
[Fail] EndpointManager IPv6 workload endpoints with a workload endpoint with updates for the workload's iface changing the endpoint to another up interface [It] should report endpoint up 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:186901:52
[Fail] EndpointManager IPv4 workload endpoints with a workload endpoint [It] should report endpoint down 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:168001:52
[Fail] EndpointManager IPv4 workload endpoints with a workload endpoint with updates for the workload's iface [It] should report endpoint up 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:172601:52
[Fail] EndpointManager IPv4 workload endpoints with a workload endpoint with updates for the workload's iface [It] should write /proc/sys entries 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:199101:52
[Fail] EndpointManager IPv4 workload endpoints with a workload endpoint with updates for the workload's iface changing the endpoint to another up interface [It] should report endpoint up 01:52
/go/src/github.com/projectcalico/calico/felix/dataplane/linux/endpoint_mgr_test.go:1869

@schans you should be able to run those locally with make -C felix ut

caseydavenport avatar Jan 28 '22 21:01 caseydavenport

@schans are you still planning to work on this PR? Has some failing tests

caseydavenport avatar Mar 01 '22 19:03 caseydavenport

Hi!

I'm very sorry I haven't had time to spend on this yet. A vacation and work priorities took up all my time. I hope to revisit soonish.

Thanks Bart

schans avatar Mar 03 '22 13:03 schans

@schans gentle reminder about this one - looks like it just needs a rebase and some test fixes.

caseydavenport avatar Apr 05 '22 16:04 caseydavenport

Sounds like this is working as expected. I'm going to close this since it doesn't seem like we have much activity here but feel free to shout out and we can revisit this again.

mgleung avatar Sep 19 '22 18:09 mgleung