kubevirt/0002-virt-launcher-fix-qemu-non-root-path.patch
Vasily Ulyanov 18a3b21466 Accepting request 1125817 from home:vulyanov:branches:Virtualization
- Update to version 1.1.0
  Release notes https://github.com/kubevirt/kubevirt/releases/tag/v1.1.0
- Drop upstreamed patches
  0001-Fix-qemu-system-lookup.patch
  0003-Virtiofs-Remove-duplicated-functional-tests.patch
  0005-Support-multiple-watchdogs-in-the-domain-schema.patch
- Add patches
  0001-Update-google.golang.org-grpc-to-1.56.3.patch (CVE-2023-44487)
  0002-virt-launcher-fix-qemu-non-root-path.patch
  0003-cgroupsv2-reconstruct-device-allowlist.patch

OBS-URL: https://build.opensuse.org/request/show/1125817
OBS-URL: https://build.opensuse.org/package/show/Virtualization/kubevirt?expand=0&rev=139
2023-11-14 08:38:23 +00:00

30 lines
1.3 KiB
Diff

From 962ce51df790f9a42885db3de5e34bef99d595de Mon Sep 17 00:00:00 2001
From: Enrique Llorente <ellorent@redhat.com>
Date: Wed, 8 Nov 2023 14:05:43 +0100
Subject: [PATCH] virt-launcher: fix qemu non root path
The qemu log path is now under /var/run/kubevirt-private/libvirt/qemu instead of
/var/run/libvirt/qemu. This change adapt the virt-launcher code to that
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
---
pkg/virt-launcher/virtwrap/util/libvirt_helper.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/virt-launcher/virtwrap/util/libvirt_helper.go b/pkg/virt-launcher/virtwrap/util/libvirt_helper.go
index 8dd514f11..b342c034f 100644
--- a/pkg/virt-launcher/virtwrap/util/libvirt_helper.go
+++ b/pkg/virt-launcher/virtwrap/util/libvirt_helper.go
@@ -286,7 +286,7 @@ func startVirtlogdLogging(stopChan chan struct{}, domainName string, nonRoot boo
go func() {
logfile := fmt.Sprintf("/var/log/libvirt/qemu/%s.log", domainName)
if nonRoot {
- logfile = filepath.Join("/var", "run", "libvirt", "qemu", "log", fmt.Sprintf("%s.log", domainName))
+ logfile = filepath.Join("/var", "run", "kubevirt-private", "libvirt", "qemu", "log", fmt.Sprintf("%s.log", domainName))
}
// It can take a few seconds to the log file to be created
--
2.42.1