From 88905a92af17602cfa6efcd961d9e5b7f38ef7deb6c6974aa3e152627a42186c Mon Sep 17 00:00:00 2001 From: Vasily Ulyanov Date: Wed, 13 Nov 2024 12:36:26 +0000 Subject: [PATCH] - Update to version 1.4.0 Release notes https://github.com/kubevirt/kubevirt/releases/tag/v1.4.0 - Drop upstreamed patches 0001-Consider-the-new-DV-reason-ImagePullFailed.patch 0002-tests-Set-FSGroup-to-ensure-proper-permissions.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/kubevirt?expand=0&rev=169 --- ...er-the-new-DV-reason-ImagePullFailed.patch | 30 ------------- ...FSGroup-to-ensure-proper-permissions.patch | 44 ------------------- _service | 2 +- disks-images-provider.yaml | 2 +- kubevirt-1.3.1.tar.gz | 3 -- kubevirt-1.4.0.tar.gz | 3 ++ kubevirt.changes | 9 ++++ kubevirt.spec | 4 +- 8 files changed, 15 insertions(+), 82 deletions(-) delete mode 100644 0001-Consider-the-new-DV-reason-ImagePullFailed.patch delete mode 100644 0002-tests-Set-FSGroup-to-ensure-proper-permissions.patch delete mode 100644 kubevirt-1.3.1.tar.gz create mode 100644 kubevirt-1.4.0.tar.gz diff --git a/0001-Consider-the-new-DV-reason-ImagePullFailed.patch b/0001-Consider-the-new-DV-reason-ImagePullFailed.patch deleted file mode 100644 index b712d5f..0000000 --- a/0001-Consider-the-new-DV-reason-ImagePullFailed.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 0e1608be9df30a3765d3c17ca01d7c5bfa542edd Mon Sep 17 00:00:00 2001 -From: Vasiliy Ulyanov -Date: Thu, 22 Aug 2024 09:27:33 +0200 -Subject: [PATCH] Consider the new DV reason ImagePullFailed - -CDI v1.60.1 introduces a new reason ImagePullFailed for the DataVolume -Running condition. Take it into account to properly update the printable -status of a VM and to report the error. - -Signed-off-by: Vasiliy Ulyanov ---- - pkg/storage/types/dv.go | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pkg/storage/types/dv.go b/pkg/storage/types/dv.go -index d90011815..a96984dc4 100644 ---- a/pkg/storage/types/dv.go -+++ b/pkg/storage/types/dv.go -@@ -184,7 +184,7 @@ func HasDataVolumeErrors(namespace string, volumes []virtv1.Volume, dataVolumeSt - dvRunningCond := NewDataVolumeConditionManager().GetCondition(dv, cdiv1.DataVolumeRunning) - if dvRunningCond != nil && - dvRunningCond.Status == v1.ConditionFalse && -- dvRunningCond.Reason == "Error" { -+ (dvRunningCond.Reason == "Error" || dvRunningCond.Reason == "ImagePullFailed") { - return fmt.Errorf("DataVolume %s importer has stopped running due to an error: %v", - volume.DataVolume.Name, dvRunningCond.Message) - } --- -2.46.0 - diff --git a/0002-tests-Set-FSGroup-to-ensure-proper-permissions.patch b/0002-tests-Set-FSGroup-to-ensure-proper-permissions.patch deleted file mode 100644 index 52acf87..0000000 --- a/0002-tests-Set-FSGroup-to-ensure-proper-permissions.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 96bd87f47a1f0ba7c0079e8665f94d7cd38f3038 Mon Sep 17 00:00:00 2001 -From: Vasiliy Ulyanov -Date: Mon, 26 Aug 2024 08:18:52 +0200 -Subject: [PATCH] tests: Set FSGroup to ensure proper permissions - -This fixes 'Permission Denied' error with some storage providers. - -Signed-off-by: Vasiliy Ulyanov ---- - tests/storage/migration.go | 12 ++++++++---- - 1 file changed, 8 insertions(+), 4 deletions(-) - -diff --git a/tests/storage/migration.go b/tests/storage/migration.go -index c6911848b..bb17cfdde 100644 ---- a/tests/storage/migration.go -+++ b/tests/storage/migration.go -@@ -459,16 +459,20 @@ func createSmallImageForDestinationMigration(vm *virtv1.VirtualMachine, name, si - }, - }, - } -+ podSecurityContext := k8sv1.PodSecurityContext{ -+ FSGroup: pointer.P(int64(util.NonRootUID)), -+ } - pod := k8sv1.Pod{ - ObjectMeta: metav1.ObjectMeta{ - GenerateName: "create-img-", - Namespace: vmi.Namespace, - }, - Spec: k8sv1.PodSpec{ -- RestartPolicy: k8sv1.RestartPolicyNever, -- Volumes: []k8sv1.Volume{volume}, -- Containers: []k8sv1.Container{cont}, -- Affinity: &affinity, -+ RestartPolicy: k8sv1.RestartPolicyNever, -+ Volumes: []k8sv1.Volume{volume}, -+ Containers: []k8sv1.Container{cont}, -+ Affinity: &affinity, -+ SecurityContext: &podSecurityContext, - }, - } - p, err := virtCli.CoreV1().Pods(vmi.Namespace).Create(context.Background(), &pod, metav1.CreateOptions{}) --- -2.46.0 - diff --git a/_service b/_service index 8ba08cb..048449e 100644 --- a/_service +++ b/_service @@ -1,7 +1,7 @@ kubevirt - v1.3.1 + v1.4.0 git disable https://github.com/kubevirt/kubevirt diff --git a/disks-images-provider.yaml b/disks-images-provider.yaml index 99c98b6..f6cb3e8 100644 --- a/disks-images-provider.yaml +++ b/disks-images-provider.yaml @@ -22,7 +22,7 @@ spec: serviceAccountName: kubevirt-testing containers: - name: target - image: quay.io/kubevirt/disks-images-provider:v1.3.1 + image: quay.io/kubevirt/disks-images-provider:v1.4.0 imagePullPolicy: Always env: - name: NUM_TEST_IMAGE_REPLICAS diff --git a/kubevirt-1.3.1.tar.gz b/kubevirt-1.3.1.tar.gz deleted file mode 100644 index 357eb01..0000000 --- a/kubevirt-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:08ac9f81e6aa6072b1899618ddefce7305a5079c59560ba8a4fd7e681b76ec98 -size 17944610 diff --git a/kubevirt-1.4.0.tar.gz b/kubevirt-1.4.0.tar.gz new file mode 100644 index 0000000..a5492d2 --- /dev/null +++ b/kubevirt-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fe7ba2504735a0dc349ab69e3b51d3ad90b4c3e8bb414b86b7b84c7e021a85b +size 18188053 diff --git a/kubevirt.changes b/kubevirt.changes index ec464c8..17fe4d7 100644 --- a/kubevirt.changes +++ b/kubevirt.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Nov 13 12:12:42 UTC 2024 - Vasily Ulyanov + +- Update to version 1.4.0 + Release notes https://github.com/kubevirt/kubevirt/releases/tag/v1.4.0 +- Drop upstreamed patches + 0001-Consider-the-new-DV-reason-ImagePullFailed.patch + 0002-tests-Set-FSGroup-to-ensure-proper-permissions.patch + ------------------------------------------------------------------- Tue Oct 15 05:49:47 UTC 2024 - Vasily Ulyanov diff --git a/kubevirt.spec b/kubevirt.spec index a673df4..0698e31 100644 --- a/kubevirt.spec +++ b/kubevirt.spec @@ -30,7 +30,7 @@ %endif Name: kubevirt -Version: 1.3.1 +Version: 1.4.0 Release: 0 Summary: Container native virtualization License: Apache-2.0 @@ -41,8 +41,6 @@ Source1: kubevirt_containers_meta Source2: kubevirt_containers_meta.service Source3: %{url}/releases/download/v%{version}/disks-images-provider.yaml Source100: %{name}-rpmlintrc -Patch1: 0001-Consider-the-new-DV-reason-ImagePullFailed.patch -Patch2: 0002-tests-Set-FSGroup-to-ensure-proper-permissions.patch BuildRequires: glibc-devel-static BuildRequires: golang-packaging BuildRequires: pkgconfig