mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): prepare guest config on state paused (#14597)
run onGuestPrelaunch on guest state paused Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
@@ -941,6 +941,7 @@ func (s *SGuestResumeTask) onConfirmRunning(status string) {
|
||||
// handle error first, results may be 'paused (internal-error)'
|
||||
s.taskFailed(status)
|
||||
} else if strings.Contains(status, "paused") {
|
||||
s.onGuestPrelaunch()
|
||||
s.Monitor.GetBlocks(s.onGetBlockInfo)
|
||||
} else if status == "postmigrate" {
|
||||
s.resumeGuest()
|
||||
|
||||
@@ -525,8 +525,6 @@ func getMigrateOptions(drvOpt QemuOptions, input *GenerateStartOptionsInput) []s
|
||||
}
|
||||
} else if input.IsSlave {
|
||||
opts = append(opts, fmt.Sprintf("-incoming tcp:0:%d", input.LiveMigratePort))
|
||||
} else if input.IsMaster {
|
||||
opts = append(opts, "-S")
|
||||
}
|
||||
return opts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user