- 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
This commit is contained in:
Vasily Ulyanov 2024-11-13 12:36:26 +00:00 committed by Git OBS Bridge
parent 39a5256dd8
commit 88905a92af
8 changed files with 15 additions and 82 deletions

View File

@ -1,30 +0,0 @@
From 0e1608be9df30a3765d3c17ca01d7c5bfa542edd Mon Sep 17 00:00:00 2001
From: Vasiliy Ulyanov <vulyanov@suse.de>
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 <vulyanov@suse.de>
---
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

View File

@ -1,44 +0,0 @@
From 96bd87f47a1f0ba7c0079e8665f94d7cd38f3038 Mon Sep 17 00:00:00 2001
From: Vasiliy Ulyanov <vulyanov@suse.de>
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 <vulyanov@suse.de>
---
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

View File

@ -1,7 +1,7 @@
<services>
<service name="tar_scm" mode="manual">
<param name="filename">kubevirt</param>
<param name="revision">v1.3.1</param>
<param name="revision">v1.4.0</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/kubevirt/kubevirt</param>

View File

@ -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

BIN
kubevirt-1.3.1.tar.gz (Stored with Git LFS)

Binary file not shown.

3
kubevirt-1.4.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5fe7ba2504735a0dc349ab69e3b51d3ad90b4c3e8bb414b86b7b84c7e021a85b
size 18188053

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Nov 13 12:12:42 UTC 2024 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- 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 <vasily.ulyanov@suse.com>

View File

@ -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