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

Release 0.53 #2

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ac33eb4
multiqueue: Accept specs with MQ, and without explicit interfaces
oshoval Mar 23, 2022
1327930
Fix root to nonroot migration
xpivarc May 5, 2022
8aca9ed
Merge pull request #7701 from kubevirt-bot/cherry-pick-7691-to-releas…
kubevirt-bot May 9, 2022
6b46687
added test_ids
akri3i May 6, 2022
a39e69a
Virt TMP testcase
akri3i May 4, 2022
1d77db7
Merge pull request #7716 from kubevirt-bot/cherry-pick-7699-to-releas…
kubevirt-bot May 10, 2022
fac0d2f
non-root: use /var/run/kubevirt-private for cache and config files
jean-edouard May 9, 2022
51aa5ec
Merge pull request #7717 from kubevirt-bot/cherry-pick-7677-to-releas…
kubevirt-bot May 11, 2022
a1e8370
Handle virtctl guestfs incorrectly assuming image name
akalenyu Apr 19, 2022
1351efc
Add permissions for /guestfs and make generate
akalenyu Apr 19, 2022
6f7a541
Remove assumption in changeOwnershipOfBlockDevices
xpivarc Apr 12, 2022
b7da670
Increase memory in upgrade test
xpivarc May 12, 2022
f7ff8bc
Merge pull request #7746 from kubevirt-bot/cherry-pick-7731-to-releas…
kubevirt-bot May 16, 2022
752b2eb
Consume prometheus image from quay
xpivarc Apr 6, 2022
a8c5026
Fix kubevirt_virt_operator_ready_total
xpivarc Apr 6, 2022
0806e6c
Fix prom-rules-verify
xpivarc Apr 6, 2022
d9488bd
Merge pull request #7749 from kubevirt-bot/cherry-pick-7529-to-releas…
kubevirt-bot May 16, 2022
73cbab0
Merge pull request #7721 from kubevirt-bot/cherry-pick-7713-to-releas…
kubevirt-bot May 18, 2022
10b12c0
Make names of access tests around test_id:2921 unique
dhiller May 3, 2022
f031f1f
Merge pull request #7759 from kubevirt-bot/cherry-pick-7673-to-releas…
kubevirt-bot May 18, 2022
9ea9cf1
Add a single-replica skip to a multi-replica test
jean-edouard Mar 10, 2022
b4a435a
Skip migration test when migration is not possible
jean-edouard Apr 1, 2022
3be165f
Skip virt-controller PDB test on single-replica environments
jean-edouard Apr 4, 2022
4fe15a2
Skip swap migration tests when migration is not possible
jean-edouard Apr 5, 2022
6297417
Move virt-handler container arguments from command to args
jean-edouard Apr 7, 2022
10595a5
Adjust test 6308 to avoid removing all environment variables
jean-edouard Apr 7, 2022
49f61ab
Adjust migration and replicas tests for single-node environments
jean-edouard Apr 8, 2022
1e11435
Skip canary test when less that 2 nodes are present
jean-edouard Apr 8, 2022
f5d12c4
Add missing global skips for the single-node lane
jean-edouard Apr 13, 2022
31bbc13
Print stack trace on functest failure
jean-edouard Apr 21, 2022
bd15e20
tests: simplify parseDaemonSet()
jean-edouard May 12, 2022
7021fb0
operator tests: couple of logic fixes
jean-edouard May 13, 2022
6ecb46c
operator tests: re-install testing manifests on update
jean-edouard May 13, 2022
822fe6c
virt-launcher overhead: bump virtlogd and add logs to functest
jean-edouard May 5, 2022
794f8ee
tests: refactor virt-launcher overhead test
jean-edouard May 5, 2022
d2b718c
k8s reporter: Remove dumping of sriov operator
oshoval May 4, 2022
92ba958
k8s reporter: Remove lspci command from virt-launcher
oshoval May 4, 2022
4858288
k8s reporter: Fix broken command
oshoval May 8, 2022
c9e7a07
Merge pull request #7777 from kubevirt-bot/cherry-pick-7685-to-releas…
kubevirt-bot May 19, 2022
5b7e3f9
Merge pull request #7773 from jean-edouard/release-0.53-singleleader
kubevirt-bot May 19, 2022
93ea239
Merge pull request #7684 from kubevirt-bot/cherry-pick-7432-to-releas…
kubevirt-bot May 20, 2022
1feee2c
Merge pull request #7726 from kubevirt-bot/cherry-pick-7592-to-releas…
kubevirt-bot May 20, 2022
8124dd6
Merge pull request #7737 from kubevirt-bot/cherry-pick-7564-to-releas…
kubevirt-bot May 20, 2022
e371270
Merge pull request #7778 from kubevirt-bot/cherry-pick-7706-to-releas…
kubevirt-bot May 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
operator tests: re-install testing manifests on update
When testing update by updating virt-operator, the virt-operator manifest gets removed from the cluster.
However, the virt-operator manifest includes the kubevirt namespace, so all resources in the namespace get removed.
Testing manifests are part of that, and so they need to be reinstalled or subsequent tests might fail.

Signed-off-by: Jed Lejosne <[email protected]>
(cherry picked from commit 0ec2c45)
Signed-off-by: Jed Lejosne <[email protected]>
  • Loading branch information
jean-edouard committed May 18, 2022
commit 6ecb46ccad14164fae48f009c344faa1ac1505ac
1 change: 1 addition & 0 deletions hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ ARCHITECTURE="${BUILD_ARCH:-$(uname -m)}"
HOST_ARCHITECTURE="$(uname -m)"
KUBEVIRT_NO_BAZEL=${KUBEVIRT_NO_BAZEL:-false}
OPERATOR_MANIFEST_PATH=$MANIFESTS_OUT_DIR/release/kubevirt-operator.yaml
TESTING_MANIFEST_PATH=$MANIFESTS_OUT_DIR/testing
KUBEVIRT_CRI="$(determine_cri_bin)"

function build_func_tests() {
Expand Down
2 changes: 1 addition & 1 deletion hack/functests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function functest() {
KUBEVIRT_FUNC_TEST_SUITE_ARGS="-skip-dual-stack-test ${KUBEVIRT_FUNC_TEST_SUITE_ARGS}"
fi

_out/tests/ginkgo -timeout=3h -r -slow-spec-threshold=60s $@ _out/tests/tests.test -- -kubeconfig=${kubeconfig} -container-tag=${docker_tag} -container-tag-alt=${docker_tag_alt} -container-prefix=${functest_docker_prefix} -image-prefix-alt=${image_prefix_alt} -oc-path=${oc} -kubectl-path=${kubectl} -gocli-path=${gocli} -installed-namespace=${namespace} -previous-release-tag=${PREVIOUS_RELEASE_TAG} -previous-release-registry=${previous_release_registry} -deploy-testing-infra=${deploy_testing_infra} -config=${kubevirt_test_config} --artifacts=${ARTIFACTS} --operator-manifest-path=${OPERATOR_MANIFEST_PATH} ${KUBEVIRT_FUNC_TEST_SUITE_ARGS}
_out/tests/ginkgo -timeout=3h -r -slow-spec-threshold=60s $@ _out/tests/tests.test -- -kubeconfig=${kubeconfig} -container-tag=${docker_tag} -container-tag-alt=${docker_tag_alt} -container-prefix=${functest_docker_prefix} -image-prefix-alt=${image_prefix_alt} -oc-path=${oc} -kubectl-path=${kubectl} -gocli-path=${gocli} -installed-namespace=${namespace} -previous-release-tag=${PREVIOUS_RELEASE_TAG} -previous-release-registry=${previous_release_registry} -deploy-testing-infra=${deploy_testing_infra} -config=${kubevirt_test_config} --artifacts=${ARTIFACTS} --operator-manifest-path=${OPERATOR_MANIFEST_PATH} --testing-manifest-path=${TESTING_MANIFEST_PATH} ${KUBEVIRT_FUNC_TEST_SUITE_ARGS}
}

if [ "$KUBEVIRT_E2E_PARALLEL" == "true" ]; then
Expand Down
2 changes: 2 additions & 0 deletions tests/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var IPV6ConnectivityCheckAddress = ""
var ConnectivityCheckDNS = ""
var ArtifactsDir string
var OperatorManifestPath string
var TestingManifestPath string
var ApplyDefaulte2eConfiguration bool

var DeployTestingInfrastructureFlag = false
Expand Down Expand Up @@ -82,6 +83,7 @@ func init() {
flag.StringVar(&ConfigFile, "config", "tests/default-config.json", "Path to a JSON formatted file from which the test suite will load its configuration. The path may be absolute or relative; relative paths start at the current working directory.")
flag.StringVar(&ArtifactsDir, "artifacts", os.Getenv("ARTIFACTS"), "Directory for storing reporter artifacts like junit files or logs")
flag.StringVar(&OperatorManifestPath, "operator-manifest-path", "", "Set path to virt-operator manifest file")
flag.StringVar(&TestingManifestPath, "testing-manifest-path", "", "Set path to testing manifests directory")
flag.BoolVar(&SkipShasumCheck, "skip-shasums-check", false, "Skip tests with sha sums.")
flag.BoolVar(&SkipDualStackTests, "skip-dual-stack-test", false, "Skip test that actively checks for the presence of IPv6 address in the cluster pods.")
flag.StringVar(&IPV4ConnectivityCheckAddress, "conn-check-ipv4-address", "", "Address that is used for testing IPV4 connectivity to the outside world")
Expand Down
21 changes: 21 additions & 0 deletions tests/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ var _ = Describe("[Serial][sig-operator]Operator", func() {
parseOperatorImage func() (*v12.Deployment, string, string, string, string)
patchOperator func(*string, *string) bool
installOperator func(string)
installTestingManifests func(string)
deleteOperator func(string)
deleteTestingManifests func(string)
deleteAllKvAndWait func(bool)
usesSha func(string) bool
ensureShasums func()
Expand Down Expand Up @@ -615,11 +617,21 @@ var _ = Describe("[Serial][sig-operator]Operator", func() {
}, 60*time.Second, 1*time.Second).ShouldNot(HaveOccurred())
}

installTestingManifests = func(manifestPath string) {
_, _, err = clientcmd.RunCommandWithNS(metav1.NamespaceNone, k8sClient, "apply", "-f", manifestPath)
Expect(err).ToNot(HaveOccurred())
}

deleteOperator = func(manifestPath string) {
_, _, err = clientcmd.RunCommandWithNS(metav1.NamespaceNone, k8sClient, "delete", "-f", manifestPath)
Expect(err).ToNot(HaveOccurred())
}

deleteTestingManifests = func(manifestPath string) {
_, _, err = clientcmd.RunCommandWithNS(metav1.NamespaceNone, k8sClient, "delete", "-f", manifestPath)
Expect(err).ToNot(HaveOccurred())
}

deleteAllKvAndWait = func(ignoreOriginal bool) {
Eventually(func() error {

Expand Down Expand Up @@ -1086,6 +1098,9 @@ spec:

// ensure that the state is fully restored after destructive tests
verifyOperatorWebhookCertificate()

_, err = virtClient.AppsV1().DaemonSets(flags.KubeVirtInstallNamespace).Get(context.Background(), "disks-images-provider", metav1.GetOptions{})
Expect(err).ToNot(HaveOccurred(), "")
})

It("[test_id:1746]should have created and available condition", func() {
Expand Down Expand Up @@ -1500,6 +1515,9 @@ spec:
sanityCheckDeploymentsDeleted()

if updateOperator {
By("Deleting testing manifests")
deleteTestingManifests(flags.TestingManifestPath)

By("Deleting virt-operator installation")
deleteOperator(flags.OperatorManifestPath)

Expand Down Expand Up @@ -1595,6 +1613,9 @@ spec:
if updateOperator {
By("Updating virt-operator installation")
installOperator(flags.OperatorManifestPath)

By("Re-installing testing manifests")
installTestingManifests(flags.TestingManifestPath)
} else {
By("Updating KubeVirt object With current tag")
patchKvVersionAndRegistry(kv.Name, curVersion, curRegistry)
Expand Down