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

Add check-cluster-up script for KinD providers #645

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

ormergi
Copy link
Contributor

@ormergi ormergi commented Jul 18, 2021

Currently we dont run Kubevirt conformance tests on SR-IOV check up lane
This PR adds check-cluster-up script for KinD based providers, similar to what we have on check-provision lanes.

Basically it will check that the cluster is healthy, dump the nodes network configurations
and run conformance tests.

This script will be used on SR-IOV prow job command in order to prevent bad changes to SR-IOV provider.

Signed-off-by: Or Mergi [email protected]

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Jul 18, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 18, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 18, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 19, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 19, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 19, 2021
@ormergi ormergi force-pushed the sriov-lane-conformance-tests branch 2 times, most recently from 12878b9 to e9ed19b Compare July 19, 2021 13:06
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 19, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 19, 2021
Test SRIOV provider with kindnet CNI instead of Calico
and run conformance tests.

Signed-off-by: Or Mergi <[email protected]>
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 20, 2021
Test SRIOV provider with kindnet CNI instead of Calico
and run conformance tests.

Signed-off-by: Or Mergi <[email protected]>
ormergi added a commit to ormergi/project-infra that referenced this pull request Jul 20, 2021
Test SRIOV provider with kindnet CNI instead of Calico
and run conformance tests.

Signed-off-by: Or Mergi <[email protected]>
@ormergi ormergi force-pushed the sriov-lane-conformance-tests branch 2 times, most recently from d6b5ac1 to a3a712b Compare August 5, 2021 16:38
ormergi added a commit to ormergi/project-infra that referenced this pull request Aug 5, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Aug 5, 2021
Test SRIOV provider with kindnet CNI instead of Calico
and run conformance tests.

Signed-off-by: Or Mergi <[email protected]>
ormergi added a commit to ormergi/project-infra that referenced this pull request Aug 6, 2021
ormergi added a commit to ormergi/project-infra that referenced this pull request Aug 6, 2021
Test SRIOV provider with kindnet CNI instead of Calico
and run conformance tests.

Signed-off-by: Or Mergi <[email protected]>
@ormergi ormergi force-pushed the sriov-lane-conformance-tests branch from a3a712b to 0ae3219 Compare August 9, 2021 08:09
@oshoval
Copy link
Contributor

oshoval commented Aug 9, 2021

This PR check-cluster-up script for KinD based providers, similar to what we have on check-provision lanes.

Missing the word adds

Copy link
Contributor

@oshoval oshoval left a comment

Choose a reason for hiding this comment

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

Thanks

cluster-up/cluster/kind/check-cluster-up.sh Outdated Show resolved Hide resolved
cluster-up/cluster/kind/check-cluster-up.sh Outdated Show resolved Hide resolved
latest=$(curl -L "${nightly_build_base_url}/latest")

echo "Deploy latest nighly build Kubevirt"
if [ $(kubectl get kubevirts -n kubevirt kubevirt -ojsonpath='{.status.phase}') != "Deployed"; then
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe worth to assert that kubevirt is not deployed instead ?
i do understand it gives freedom to install specific kubevirt, so up to you

btw usually on kubevirtci the sonobuoy conformance are without kubevirt, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe worth to assert that kubevirt is not deployed instead ?
i do understand it gives freedom to install specific kubevirt, so up to you

In case its not deployed it wont get into the if block

btw usually on kubevirtci the sonobuoy conformance are without kubevirt, right?

Currently we run Kubevirt conformance as well on all check-provision lanes

${kubectl} apply -f "${nightly_build_base_url}/${latest}/kubevirt-operator.yaml"
${kubectl} apply -f "${nightly_build_base_url}/${latest}/kubevirt-cr.yaml"
fi
${kubectl} wait -n kubevirt kv kubevirt --for condition=Available --timeout 15m
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe should be part of the if, else it means that the kubevirt is deployed but here you are checking that its also Available, again up to you

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This check is not part of the if in order to prevent running tests in case not all kubevirt components are ready.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe 15 minutes is too much ?
how much other repos use

Copy link
Contributor Author

Choose a reason for hiding this comment

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

on hack/cluster-deploy.sh it check every 5 minutes for 25 minutes
https://github.com/kubevirt/kubevirt/blob/371958b07a340d0ba9e9d1e9a2936411e395a5df/hack/cluster-deploy.sh#L154
From what I saw sometime it takes 2-3 rounds to be ready, rarely more then 10 minutes , so I picked 15 minutes timeout.

cluster-up/cluster/kind/check-cluster-up.sh Outdated Show resolved Hide resolved
cluster-up/cluster/kind/check-cluster-up.sh Outdated Show resolved Hide resolved
@ormergi ormergi force-pushed the sriov-lane-conformance-tests branch from 0ae3219 to 2e45a29 Compare August 9, 2021 10:42
@ormergi ormergi requested a review from oshoval August 9, 2021 11:56
@ormergi ormergi force-pushed the sriov-lane-conformance-tests branch from 0168bb5 to 8841d56 Compare August 12, 2021 13:54
@ormergi
Copy link
Contributor Author

ormergi commented Aug 16, 2021

/retest

@oshoval
Copy link
Contributor

oshoval commented Aug 16, 2021

the last push is pure rebase right ?

@ormergi
Copy link
Contributor Author

ormergi commented Aug 16, 2021

the last push is pure rebase right ?

Yes

Copy link
Contributor

@oshoval oshoval left a comment

Choose a reason for hiding this comment

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

Thanks

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2021
Copy link
Contributor

@dhiller dhiller left a comment

Choose a reason for hiding this comment

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

/approve

Sorry for the delay, this slipped through :-/

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhiller

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 6, 2021
@ormergi
Copy link
Contributor Author

ormergi commented Sep 9, 2021

/hold

Wait until kubevirt/kubevirt#6199 is merged as we might need to do some changes to this PR

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 9, 2021
@ormergi
Copy link
Contributor Author

ormergi commented Oct 19, 2021

/unhold

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 19, 2021
@ormergi
Copy link
Contributor Author

ormergi commented Oct 19, 2021

/retest

@kubevirt-commenter-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs.
Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

1 similar comment
@kubevirt-commenter-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs.
Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@kubevirt-bot kubevirt-bot merged commit 5a10f48 into kubevirt:main Oct 20, 2021
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 21, 2021
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 21, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 22, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 22, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 23, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 23, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 24, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 24, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 25, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 25, 2021
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Oct 26, 2021
[8198e9c sync provider.sh between kind and kind-sriov](kubevirt/kubevirtci#587)
[8b1d599 Restore kind-1.19-sriov provider files](kubevirt/kubevirtci#695)
[bf9b729 Upgrade SR-IOV provider nodes image to k8s-1.22](kubevirt/kubevirtci#694)
[5a10f48 Add check-cluster-up script for KinD providers](kubevirt/kubevirtci#645)

Signed-off-by: kubevirt-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants