We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7d0f38 + b79b9d0 commit a53ec8fCopy full SHA for a53ec8f
ocaml/xapi/xapi_vm_migrate.ml
@@ -664,6 +664,10 @@ let assert_can_migrate ~__context ~vm ~dest ~live ~vdi_map ~vif_map ~options =
664
| _ ->
665
raise (Api_errors.Server_error (Api_errors.vm_has_too_many_snapshots, [Ref.string_of vm])));
666
667
+ (* Prevent VMs from being migrated onto a host with a lower host version *)
668
+ let source_host = Db.VM.get_resident_on ~__context ~self:vm in
669
+ Helpers.assert_host_versions_not_decreasing ~__context ~host_from:source_host ~host_to:dest_host_ref ;
670
+
671
let migration_type =
672
try
673
ignore(Db.Host.get_uuid ~__context ~self:dest_host_ref);
0 commit comments