Skip to content

Commit

Permalink
virt-launcher, migration: Abort migration when hot-unplug fails
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Haas <[email protected]>
  • Loading branch information
EdDev committed Mar 30, 2021
1 parent b1345fe commit 0dcd1ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/virt-launcher/virtwrap/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ func (l *LibvirtDomainManager) asyncMigrate(vmi *v1.VirtualMachineInstance, opti
if err := hotUnplugHostDevices(l.virConn, dom); err != nil {
log.Log.Object(vmi).Reason(err).Error(fmt.Sprintf("Live migration failed."))
l.setMigrationResult(vmi, true, fmt.Sprintf("%v", err), "")
return
}

params, err := prepareMigrationParams(options, vmi, loopbackAddress, dom)
Expand Down

0 comments on commit 0dcd1ed

Please sign in to comment.