Skip to content

Commit

Permalink
rnd
Browse files Browse the repository at this point in the history
Signed-off-by: Isteb4k <[email protected]>
  • Loading branch information
Isteb4k committed Jan 17, 2025
1 parent 283e80e commit 03bd78f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions images/virt-artifact/patches/035-test.patch
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 03bd78f

Please sign in to comment.