Skip to content

Commit

Permalink
start using the live migration tracking
Browse files Browse the repository at this point in the history
Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Mar 1, 2019
1 parent 7a85d53 commit 8926608
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/virt-launcher/virtwrap/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ func (l *LibvirtDomainManager) asyncMigrate(vmi *v1.VirtualMachineInstance) {
params.MigrateDisks = copyDisks
params.MigrateDisksSet = true
}
// start live migration tracking
go liveMigrationMonitor(vmi, dom)
err = dom.MigrateToURI3(dstUri, params, migrateFlags)
if err != nil {

Expand Down Expand Up @@ -448,7 +450,7 @@ func liveMigrationMonitor(vmi *v1.VirtualMachineInstance, dom cli.VirDomain) {
// check the overall migration time
if acceptableCompletionTime != 0 &&
elapsed > acceptableCompletionTime {
logger.Warningf("Live migration not completed after %d sec",
logger.Warningf("Live migration is not completed after %d sec",
acceptableCompletionTime)
err := dom.AbortJob()
if err != nil {
Expand Down

0 comments on commit 8926608

Please sign in to comment.