Skip to content

cilium: various fixes to 06-lb test#361

Merged
tgraf merged 1 commit intomasterfrom
test-06-fixes
Mar 20, 2017
Merged

cilium: various fixes to 06-lb test#361
tgraf merged 1 commit intomasterfrom
test-06-fixes

Conversation

@borkmann
Copy link
Copy Markdown
Member

@borkmann borkmann commented Mar 20, 2017

Fix various things in the 06-lb test case: --backend does not exist
anymore, we need to switch to --backends instead. Same for cilium service inspect that should have been cilium service get command.
Comparing the deletion result from cilium service delete has changed
to display the id as well. Thus, adapt results to compare against.
The IPV4=1; ./06-lb.sh subtests seems to have some logical bugs,
f.e. we add a legit service with id 10 and later on still expect the
cilium service list to be empty, but right in the subsequent check
we test whether the service with id 10 was the only one present?!
The later added service with id 20 has a conflicting frontend vip,
so that one cannot succeed. The cilium endpoint ct dump doesn't
exist anymore, so just comment it out. Add a cilium service list
after setting up the v4/v6 lb, so we can inspect the mappings.

Fixes: c7d4002 ("Switch to spf13/cobra and spf13/viper to implement CLI & config")
Signed-off-by: Daniel Borkmann [email protected]

  •  File: tests/06-lb.sh:L431-442
  • This is now cilium bpf ct list $SERVER1_ID
  • All commands which directly access bpf maps have been grouped in the bpf command to make it clear what uses the remote API and what uses direct access APIs
  •  General Comment
  • Besides the bpf ct list change, this looks good. I will rebase my other PR on top of this which adds the ability to resolve a hostname to multiple backends if the DNS replies with multiple IP records.
  •  File: tests/06-lb.sh:L62-69
  • You do not need to change the backend to backends since I fixed it in my lb_wrr review. I also took care of the remaining non working bits in this script. I am fine either ways. If you want to commit this one I will simply ignore this file. I will still need to call it backend though.

  

Fix various things in the 06-lb test case: --backend does not exist
anymore, we need to switch to --backends instead. Same for `cilium
service inspect` that should have been `cilium service get` command.
Comparing the deletion result from `cilium service delete` has changed
to display the id as well. Thus, adapt results to compare against.
The `IPV4=1; ./06-lb.sh` subtests seems to have some logical bugs,
f.e. we add a legit service with id 10 and later on still expect the
`cilium service list` to be empty, but right in the subsequent check
we test whether the service with id 10 was the only one present?!
The later added service with id 20 has a conflicting frontend vip,
so that one cannot succeed. The `cilium endpoint ct dump` doesn't
exist anymore, so just comment it out. Add a `cilium service list`
after setting up the v4/v6 lb, so we can inspect the mappings.

Fixes: c7d4002 ("Switch to spf13/cobra and spf13/viper to implement CLI & config")
Signed-off-by: Daniel Borkmann <[email protected]>
@borkmann borkmann requested review from aanm, mchalla and tgraf March 20, 2017 14:26
@tgraf tgraf added kind/bug This is a bug in the Cilium logic. pending-review labels Mar 20, 2017
@tgraf tgraf added this to the 0.8 release milestone Mar 20, 2017
}

sudo cilium endpoint ct dump $SERVER1_ID
#sudo cilium endpoint ct dump $SERVER1_ID
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now cilium bpf ct list $SERVER1_ID

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All commands which directly access bpf maps have been grouped in the bpf command to make it clear what uses the remote API and what uses direct access APIs

@tgraf
Copy link
Copy Markdown
Contributor

tgraf commented Mar 20, 2017

Besides the bpf ct list change, this looks good. I will rebase my other PR on top of this which adds the ability to resolve a hostname to multiple backends if the DNS replies with multiple IP records.

@tgraf tgraf self-requested a review March 20, 2017 15:15
@tgraf tgraf merged commit f3e0fff into master Mar 20, 2017
@tgraf tgraf deleted the test-06-fixes branch March 20, 2017 15:16
sudo cilium service update --frontend [::]:80 --backends [::1]:90,[::2]:91 --id 1 --rev 2> /dev/null || {
abort "Service should have been added"
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not need to change the backend to backends since I fixed it in my lb_wrr review. I also took care of the remaining non working bits in this script. I am fine either ways. If you want to commit this one I will simply ignore this file. I will still need to call it backend though.

michi-covalent pushed a commit to michi-covalent/cilium that referenced this pull request May 30, 2023
This should give us some additional information to debug flakes, e.g.
for cilium#361

Signed-off-by: Tobias Klauser <[email protected]>
michi-covalent pushed a commit to michi-covalent/cilium that referenced this pull request May 30, 2023
Add error to the debug output for ipcache check failures. This should
help solve cilium#361.

Signed-off-by: Jarno Rajahalme <[email protected]>
michi-covalent added a commit to michi-covalent/cilium that referenced this pull request May 30, 2023
Add `--skip-ip-cache-check` flag with the default set to true. This is
meant to be a temporary flag while we investigate what's causing the flake.

Ref: cilium#361

Signed-off-by: Michi Mutsuzaki <[email protected]>
michi-covalent pushed a commit to michi-covalent/cilium that referenced this pull request May 30, 2023
Follow-up for cilium#503 to address
cilium/cilium-cli#503 (comment)

Also add a comment so we don't forget to re-enable the check again once
issue cilium#361 is resolved.

Signed-off-by: Tobias Klauser <[email protected]>
yoursanonymous pushed a commit to yoursanonymous/cilium that referenced this pull request Jan 31, 2026
* chore: add Cilium graduation blog post

* update summary

Signed-off-by: Bill Mulligan <[email protected]>

---------

Signed-off-by: Bill Mulligan <[email protected]>
Co-authored-by: Bill Mulligan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug This is a bug in the Cilium logic.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants