diff --git a/images/virt-artifact/patches/035-test.patch b/images/virt-artifact/patches/035-test.patch new file mode 100644 index 000000000..4c9872164 --- /dev/null +++ b/images/virt-artifact/patches/035-test.patch @@ -0,0 +1,34 @@ +diff --git a/pkg/virt-controller/services/rendervolumes.go b/pkg/virt-controller/services/rendervolumes.go +index 0181fc05e3..8979811cfe 100644 +--- a/pkg/virt-controller/services/rendervolumes.go ++++ b/pkg/virt-controller/services/rendervolumes.go +@@ -58,6 +58,7 @@ func (vr *VolumeRenderer) Mounts() []k8sv1.VolumeMount { + mountPathWithPropagation(containerDisks, vr.containerDiskDir, k8sv1.MountPropagationHostToContainer), + mountPath("libvirt-runtime", "/var/run/libvirt"), + mountPath("sockets", filepath.Join(vr.virtShareDir, "sockets")), ++ mountPath("hooks-qemu", "/etc/libvirt/hooks"), + } + return append(volumeMounts, vr.podVolumeMounts...) + } +@@ -65,6 +66,7 @@ func (vr *VolumeRenderer) Mounts() []k8sv1.VolumeMount { + func (vr *VolumeRenderer) Volumes() []k8sv1.Volume { + volumes := []k8sv1.Volume{ + emptyDirVolume("private"), ++ emptyDirVolume("hooks-qemu"), + emptyDirVolume("public"), + emptyDirVolume("sockets"), + emptyDirVolume(virtBinDir), +diff --git a/pkg/virt-launcher/virtwrap/live-migration-source.go b/pkg/virt-launcher/virtwrap/live-migration-source.go +index d8b777e5fb..d47a15c5db 100644 +--- a/pkg/virt-launcher/virtwrap/live-migration-source.go ++++ b/pkg/virt-launcher/virtwrap/live-migration-source.go +@@ -981,6 +981,9 @@ func (l *LibvirtDomainManager) migrateHelper(vmi *v1.VirtualMachineInstance, opt + dstURI = fmt.Sprintf("qemu+unix:///system?socket=%s", migrationproxy.SourceUnixFile(l.virtShareDir, string(vmi.UID))) + } + ++ log.Log.Object(vmi).Info("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA") ++ log.Log.Info("BBBBBBBBBBBBBBBBBBBBBBBB") ++ + err = dom.MigrateToURI3(dstURI, params, migrateFlags) + if err != nil { + return fmt.Errorf("error encountered during MigrateToURI3 libvirt api call: %v", err)