Skip to content

Conversation

YutaroHayakawa
Copy link
Member

We introduced a few status conditions in the CiliumBGPClusterConfig for error reporting (#35517, #35527, #35593). Update the troubleshooting guide to leverage them.

bgpv2,doc: Update troubleshooting doc with CiliumBGPClusterConfig status conditions

@YutaroHayakawa YutaroHayakawa added the release-note/misc This PR makes changes that have no direct user impact. label Oct 29, 2024
@YutaroHayakawa YutaroHayakawa force-pushed the yutaro/bgpv2-condition-doc branch from 985f07d to e283fa1 Compare October 29, 2024 06:44
@YutaroHayakawa YutaroHayakawa marked this pull request as ready for review October 29, 2024 07:09
@YutaroHayakawa YutaroHayakawa requested review from a team as code owners October 29, 2024 07:09
@YutaroHayakawa YutaroHayakawa requested review from qmonnet and rastislavs and removed request for a team October 29, 2024 07:09
The current owner reference check checks the owner just by the name.
This may matches to the owner of different kind of resource with the
same name. Practically, it shouldn't happen, but for the sake of
correctness, fix it. Also, unexport the IsOwner function since it is
only used within the package.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Introduce a new status condition ConflictingClusterConfig to the
CiliumBGPClusterConfig which indicates that the ClusterConfig is
selecting the node that is already selected by other ClusterConfig.

We reused an existing conflict detection mechanism in the Cilium
Operator which checks the existing NodeConfig's owner reference when it
tries to create the new NodeConfig. If there's another ClusterConfig
owning the same node, it is observed as a conflict.

Because of this detection mechanism, the condition in the single
ClusterConfig doesn't have the global view of the conflict relationship.
To get the complete view, users need to gather the observed conflicts
from multiple ClusterConfigs.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
@YutaroHayakawa YutaroHayakawa force-pushed the yutaro/bgpv2-invalid-selection-cond branch from e54900f to c08cecf Compare October 30, 2024 01:46
@YutaroHayakawa YutaroHayakawa requested a review from a team as a code owner October 30, 2024 01:46
@YutaroHayakawa YutaroHayakawa requested review from tommyp1ckles and removed request for a team October 30, 2024 01:46
Now Cilium reports nodeSelector conflict of the CiliumBGPClusterConfig
with status condition instead of log. Update the corresponding
troubleshooting document.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Add another troubleshooting entry for misconfigured nodeSelector.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
Add another troubleshooting doc entry for misconfigured peerConfigRef.

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
@YutaroHayakawa YutaroHayakawa force-pushed the yutaro/bgpv2-condition-doc branch from e283fa1 to 03b2c1e Compare October 30, 2024 02:10
@YutaroHayakawa
Copy link
Member Author

/test

@YutaroHayakawa YutaroHayakawa added the dont-merge/waiting-for-upstream Only merge once upstream library or kernel features have landed label Oct 30, 2024
@YutaroHayakawa YutaroHayakawa changed the base branch from yutaro/bgpv2-invalid-selection-cond to main October 31, 2024 02:24
@YutaroHayakawa YutaroHayakawa removed the dont-merge/waiting-for-upstream Only merge once upstream library or kernel features have landed label Oct 31, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 31, 2024
@YutaroHayakawa YutaroHayakawa added this pull request to the merge queue Oct 31, 2024
Merged via the queue into cilium:main with commit 8019f5a Oct 31, 2024
57 checks passed
@YutaroHayakawa YutaroHayakawa deleted the yutaro/bgpv2-condition-doc branch October 31, 2024 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants