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

ci: add k8s uninstallation to metrics tests #4206

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

dborquez
Copy link
Contributor

IPerf bench runs on top of a K8s setup, for instance ci metrics
needs to clean the k8s setup, before start the test.

Fixes: #4205

Signed-off-by: David Esparza david.esparza.borquez@intel.com

@dborquez dborquez added needs-review Needs to be assessed by the team. do-not-merge PR has problems or depends on another labels Nov 22, 2021
@dborquez dborquez requested a review from GabyCT November 22, 2021 15:44
@GabyCT
Copy link
Contributor

GabyCT commented Nov 22, 2021

@dborquez I think this should be part of the commit where you are enabling iperf metrics because I have a lot of questions, 1. How frequent is the test failing in removing or installing k8s on the metrics CI? 2. How stable the results are? 3. Do we need k8s or ctr?

@dborquez dborquez added wip Work in Progress (PR incomplete - needs more work or rework) and removed needs-review Needs to be assessed by the team. labels Nov 25, 2021
.ci/lib.sh Show resolved Hide resolved
.ci/lib.sh Outdated Show resolved Hide resolved
@jodh-intel
Copy link
Contributor

@dborquez - Please can you address the outstanding comments on this PR when you're back.

@jodh-intel
Copy link
Contributor

Ping @dborquez.

@jodh-intel
Copy link
Contributor

@dborquez - please can you update?

@dborquez
Copy link
Contributor Author

@jodh-intel yes WIP

jodh-intel
jodh-intel previously approved these changes Jan 26, 2022
Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @dborquez.

lgtm

@dborquez
Copy link
Contributor Author

@dborquez I think this should be part of the commit where you are enabling iperf metrics because I have a lot of questions, 1. How frequent is the test failing in removing or installing k8s on the metrics CI? 2. How stable the results are? 3. Do we need k8s or ctr?

@GabyCT thanks for the remarks.
The idea is to enable the iperf K8s version that already exist in metrics. See the issue #3475.
So this PR is to make the Metrics CI-job can remove K8s before to start the iperf test.
In a following PR I will enable iperf and then determine if the test can run continuously with no issues

@dborquez dborquez removed the wip Work in Progress (PR incomplete - needs more work or rework) label Jan 26, 2022
@fidencio
Copy link
Member

A head's up that may affect your PR.

In the Architecture Committee meeting from January 25th, 2022, the Architecture Committee has agreed on using the "Dismiss stale pull request approvals when new commits are pushed" configuration from GitHub. It basically means that if your PR has been rebased or updated, the approvals given will be erased.

In order to minimize traumas due to the new approach, please, consider adding a note on the changes done before the rebase / force-push, and also pinging the reviewers for a subsequent round of reviews.

Thanks for your understanding!

Related issue: kata-containers/community#249

@GabyCT
Copy link
Contributor

GabyCT commented Jan 26, 2022

@dborquez I think this should be part of the commit where you are enabling iperf metrics because I have a lot of questions, 1. How frequent is the test failing in removing or installing k8s on the metrics CI? 2. How stable the results are? 3. Do we need k8s or ctr?

@GabyCT thanks for the remarks. The idea is to enable the iperf K8s version that already exist in metrics. See the issue #3475. So this PR is to make the Metrics CI-job can remove K8s before to start the iperf test. In a following PR I will enable iperf and then determine if the test can run continuously with no issues

@dborquez currently the METRICS CI is installing and cleaning k8s without these additional steps that you are implementing here at this PR, we do not know if the cleaning and installing is being done without an issues because we do not have any test that we can prove that works fine, you can do another commit here in this PR where you enable the iperf test and then you will see if the clean that you are implementing here in this PR will actually work or otherwise we can merge this PR and later you will find out that is not working properly or it is working...but it is your call

@dborquez
Copy link
Contributor Author

@fidencio thank you, I'll follow the new approach.

GabyCT
GabyCT previously approved these changes Jan 26, 2022
@dborquez
Copy link
Contributor Author

@dborquez I think this should be part of the commit where you are enabling iperf metrics because I have a lot of questions, 1. How frequent is the test failing in removing or installing k8s on the metrics CI? 2. How stable the results are? 3. Do we need k8s or ctr?

@GabyCT thanks for the remarks. The idea is to enable the iperf K8s version that already exist in metrics. See the issue #3475. So this PR is to make the Metrics CI-job can remove K8s before to start the iperf test. In a following PR I will enable iperf and then determine if the test can run continuously with no issues

@dborquez currently the METRICS CI is installing and cleaning k8s without these additional steps that you are implementing here at this PR, we do not know if the cleaning and installing is being done without an issues because we do not have any test that we can prove that works fine, you can do another commit here in this PR where you enable the iperf test and then you will see if the clean that you are implementing here in this PR will actually work or otherwise we can merge this PR and later you will find out that is not working properly or it is working...but it is your call

@GabyCT thanks, I will add a new commit to this PR with the iperf enablement.

@dborquez dborquez dismissed stale reviews from GabyCT and jodh-intel via aff5f99 February 9, 2022 16:35
@dborquez dborquez force-pushed the clean_k8s_ci_metrics branch 2 times, most recently from aff5f99 to 5bf6165 Compare February 9, 2022 16:53
@dborquez dborquez added do-not-merge PR has problems or depends on another and removed do-not-merge PR has problems or depends on another labels Feb 9, 2022
@dborquez
Copy link
Contributor Author

dborquez commented Feb 9, 2022

/test

@GabyCT
Copy link
Contributor

GabyCT commented Feb 9, 2022

@dborquez if you want to test and run only metrics try with /test-ubuntu-metrics also if you comment the other tests that will fail because it will look for the results here https://github.com/kata-containers/tests/blob/main/cmd/checkmetrics/ci_worker/checkmetrics-json-qemu-kata-metric5.toml you need to also add there something for iperf like 0b3e935

@dborquez
Copy link
Contributor Author

dborquez commented Feb 9, 2022

@dborquez if you want to test and run only metrics try with /test-ubuntu-metrics also if you comment the other tests that will fail because it will look for the results here https://github.com/kata-containers/tests/blob/main/cmd/checkmetrics/ci_worker/checkmetrics-json-qemu-kata-metric5.toml you need to also add there something for iperf like 0b3e935

@GabyCT thanks for the inputs. Improving the patch with recommended ci settings.

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

1 similar comment
@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@jodh-intel
Copy link
Contributor

Any update on this @dborquez ?

@dborquez
Copy link
Contributor Author

Any update on this @dborquez ?

WIP, debugging k8s that hangs up for ch metrics:
error execution phase preflight: [preflight] Some fatal errors occurred: 01:34:45 [ERROR Port-10250]: Port 10250 is in use

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

4 similar comments
@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

@dborquez dborquez removed the do-not-merge PR has problems or depends on another label Feb 18, 2022
@dborquez
Copy link
Contributor Author

@jodh-intel hello, could you please review this PR?

@dborquez
Copy link
Contributor Author

/test

jodh-intel
jodh-intel previously approved these changes Feb 18, 2022
Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @dborquez.

.ci/lib.sh Outdated Show resolved Hide resolved
.ci/lib.sh Outdated Show resolved Hide resolved
Iperf runs on top of a K8s setup, for instance ci metrics
needs to clean the k8s setup, before start the test.

Fixes: kata-containers#4205

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @dborquez.

lgtm

@GabyCT
Copy link
Contributor

GabyCT commented Feb 18, 2022

/test

@@ -102,7 +102,6 @@ case "${CI_JOB}" in
sudo -E ln -sf "${config_path}/configuration-qemu.toml" "${config_path}/configuration.toml"
echo "INFO: Running qemu metrics tests"
sudo -E PATH="$PATH" ".ci/run_metrics_PR_ci.sh"
echo "INFO: Running cloud hypervisor metrics tests"
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you remove this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think is useful to have it to mark the cloud hypervisor start

Copy link
Contributor Author

@dborquez dborquez Feb 18, 2022

Choose a reason for hiding this comment

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

@GabyCT , that info msg is located before the test starts, in the same way the msg for qemu does:

echo "INFO: Running cloud hypervisor metrics tests"

@GabyCT GabyCT merged commit d2b396a into kata-containers:main Feb 18, 2022
@dborquez
Copy link
Contributor Author

/test-ubuntu-metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: clean K8s setup previous to run metrics benchmarks
4 participants