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

tests/k8s: run for qemu-runtime-rs on AKS #9833

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

wainersm
Copy link
Contributor

The following tests are disabled because they fail (alike with dragonball):

  • k8s-cpu-ns.bats
  • k8s-number-cpus.bats
  • k8s-sandbox-vcpus-allocation.bats

Fixes #9804

@wainersm wainersm added area/ci Issues affecting the continuous integration runtime-rs labels Jun 12, 2024
@wainersm wainersm requested review from BbolroC and pmores June 12, 2024 21:45
@katacontainersbot katacontainersbot added the size/small Small and simple task label Jun 12, 2024
@wainersm
Copy link
Contributor Author

Hi @pmores @BbolroC !

CI won't test this PR; we will see the results only after merge unfortunately. But I ran the tests with the qemu-runtime-rs runtimeClass and they passed (except the ones I'm disabling on this PR; which are indeed failing).

Copy link
Contributor

@Apokleos Apokleos left a comment

Choose a reason for hiding this comment

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

Thx @wainersm one comment left!

@@ -100,6 +101,7 @@ teardown() {
[ "${KATA_HYPERVISOR}" == "firecracker" ] && skip "test not working see: ${fc_limitations}"
[ "${KATA_HYPERVISOR}" == "fc" ] && skip "test not working see: ${fc_limitations}"
[ "${KATA_HYPERVISOR}" == "dragonball" ] && skip "test not working see: ${dragonball_limitations}"
[ "${KATA_HYPERVISOR}" == "qemu-runtime-rs" ] && skip "test not working see: ${dragonball_limitations}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why here has ${dragonball_limitations} ? I am curious about it. Can this be changed as [ "${KATA_HYPERVISOR}" == "dragonball" ] || [ "${KATA_HYPERVISOR}" == "qemu-runtime-rs" ] && skip "test not working see: ${dragonball_limitations}" if both of them use the "test not working see: ${dragonball_limitations}" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point @Apokleos

dragonball_limitations is #6621 that points to kata-containers/tests#5391 then kata-containers/tests#5392. IIUC this is an old limitation of runtime-rs (lack of vCPU resize) that was implemented for dragonball in #6289 . So maybe one can try to enable it on the dragonball job to see if it really works now?

vCPU resize should still not work with qemu-runtime-rs because CPU hot-plugging isn't implemented yet. Did I get it correctly @pmores ?

Anyway, I will write an accurate skip message to qemu-runtime-rs

Copy link
Contributor

Choose a reason for hiding this comment

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

@wainersm vCPU resize is a matter of PR #9772 which is hopefully about to be merged. :-)

Copy link
Member

@BbolroC BbolroC left a comment

Choose a reason for hiding this comment

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

LGTM other than @Apokleos 's comment. Thanks @wainersm !

@@ -9,7 +9,7 @@ load "${BATS_TEST_DIRNAME}/../../common.bash"
load "${BATS_TEST_DIRNAME}/tests_common.sh"

setup() {
[[ "${KATA_HYPERVISOR}" = "cloud-hypervisor" ]]&& skip "test not working https://github.com/kata-containers/kata-containers/issues/9039"
[[ "${KATA_HYPERVISOR}" = "cloud-hypervisor" || "${KATA_HYPERVISOR}" = "qemu-runtime-rs" ]] && skip "test not working https://github.com/kata-containers/kata-containers/issues/9039"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The k8s-number-cpus.bats creates a pod with two containers, limiting each CPU to "500m". It should not work on qemu-runtime-rs due (again) lack of hot-plugging support. So I will re-write the skip message.

@jodh-intel @amshinde is it the case for cloud-hypervisor too?

@@ -9,7 +9,7 @@ load "${BATS_TEST_DIRNAME}/../../common.bash"
load "${BATS_TEST_DIRNAME}/tests_common.sh"

setup() {
[ "${KATA_HYPERVISOR}" == "dragonball" ] || [ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ]&& \
[ "${KATA_HYPERVISOR}" == "dragonball" ] || [ "${KATA_HYPERVISOR}" == "cloud-hypervisor" ] || [ "${KATA_HYPERVISOR}" == "qemu-runtime-rs" ] && \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Likewise

The following tests are disabled because they fail (alike with dragonball):

- k8s-cpu-ns.bats
- k8s-number-cpus.bats
- k8s-sandbox-vcpus-allocation.bats

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
@wainersm
Copy link
Contributor Author

Re-wrote the skip messages based on @Apokleos and @BbolroC feedback. Thanks!

Copy link
Contributor

@pmores pmores left a comment

Choose a reason for hiding this comment

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

lgtm thanks @wainersm ! I'll let you know once the vCPU hotplugging for qemu-rs lands so we can see if it helps pass some more tests.

@wainersm
Copy link
Contributor Author

lgtm thanks @wainersm ! I'll let you know once the vCPU hotplugging for qemu-rs lands so we can see if it helps pass some more tests.

Cool! Thanks @pmores !

@wainersm wainersm merged commit 7df221a into kata-containers:main Jun 17, 2024
263 of 301 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues affecting the continuous integration ok-to-test runtime-rs size/small Small and simple task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run tests and enable CI for qemu-runtime-rs implementation
5 participants