Adding null check for VTEPInfo and IPaddress#11028
Adding null check for VTEPInfo and IPaddress#11028ajgupta42 wants to merge 2 commits intoprojectcalico:masterfrom
Conversation
|
@ajgupta42 Please could you add more information:
|
|
@nelljerram It was failing on AsCIDR, so added some nil checks to prevent seg fault IP address was blank for a node which caused this issue. |
|
Thanks @ajgupta42 but I don't fully understand yet.
|
|
Thanks @nelljerram for the quick response, highly appreciated. What exactly do you mean by "IP address was blank for a node"? |
|
@ajgupta42 Thank you for your last response. I'm afraid I'm still a little unclear about the scenario, though, and I also realized that we should have a test for it - which would be an excellent way of clarifying the scenario. It sounds like an FV test would be appropriate for this situation, so could you look at adding an FV test? Please let me know if you need more info about how our FV tests work. |
|
@ajgupta42 You've added UTs - thank you - but unfortunately they don't help to explain the overall scenario, and that's why I suggested an FV test. |
|
This PR is stale because it has been open for 60 days with no activity. |
Description
Missing both IPv4 and IPv6 VTEP information
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation]
github.com/projectcalico/calico/felix/calc.l3rrNodeInfo.AddressAsCIDR
/go/src/github.com/projectcalico/calico/felix/calc/l3_route_resolver.go:166
Todos
Release Note
Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Every PR needs one
docs-*label.docs-pr-required: This change requires a change to the documentation that has not been completed yet.docs-completed: This change has all necessary documentation completed.docs-not-required: This change has no user-facing impact and requires no docs.Every PR needs one
release-note-*label.release-note-required: This PR has user-facing changes. Most PRs should have this label.release-note-not-required: This PR has no user-facing changes.Other optional labels:
cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.