-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Isteb4k <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |