mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(host): tls live migrate disable mulitfd (#16155)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
@@ -1026,6 +1026,11 @@ func (s *SGuestLiveMigrateTask) onSetAutoConverge(res string) {
|
||||
}
|
||||
s.startMigrate()
|
||||
}
|
||||
if s.params.EnableTLS {
|
||||
s.Monitor.MigrateSetCapability("multifd", "off", cb)
|
||||
return
|
||||
}
|
||||
|
||||
log.Infof("migrate src guest enable multifd")
|
||||
s.Monitor.MigrateSetCapability("multifd", "on", cb)
|
||||
}
|
||||
|
||||
@@ -989,7 +989,7 @@ func (s *SKVMGuestInstance) setDestMigrateTLS(ctx context.Context, data *jsonuti
|
||||
}
|
||||
|
||||
func (s *SKVMGuestInstance) migrateEnableMultifd() error {
|
||||
if version.LT(s.QemuVersion, "4.0.0") {
|
||||
if version.LT(s.QemuVersion, "4.0.0") || s.LiveMigrateUseTls {
|
||||
return nil
|
||||
}
|
||||
var err = make(chan error)
|
||||
|
||||
@@ -509,6 +509,8 @@ function nic_mtu() {
|
||||
if jsonutils.QueryBoolean(data, "live_migrate_use_tls", false) {
|
||||
s.LiveMigrateUseTls = true
|
||||
input.LiveMigrateUseTLS = true
|
||||
} else {
|
||||
s.LiveMigrateUseTls = false
|
||||
}
|
||||
} else if s.Desc.IsSlave {
|
||||
input.LiveMigratePort = uint(*s.LiveMigrateDestPort)
|
||||
|
||||
Reference in New Issue
Block a user