From 182ed4775479c68ae195ede2e11a4ee5797acfce Mon Sep 17 00:00:00 2001 From: Rob Hoes Date: Wed, 2 Oct 2024 10:11:17 +0000 Subject: [PATCH] CA-399963: Block VM.start_on is feature flag is disabled This was missed in cf8ba8b1f05c3490953f824c678528fba9a76bd2. Signed-off-by: Rob Hoes --- ocaml/xapi/message_forwarding.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/ocaml/xapi/message_forwarding.ml b/ocaml/xapi/message_forwarding.ml index 7c4af7b0f4..c85dc2cb02 100644 --- a/ocaml/xapi/message_forwarding.ml +++ b/ocaml/xapi/message_forwarding.ml @@ -1923,6 +1923,7 @@ functor let start_on ~__context ~vm ~host ~start_paused ~force = if Helpers.rolling_upgrade_in_progress ~__context then Helpers.assert_host_has_highest_version_in_pool ~__context ~host ; + Pool_features.assert_enabled ~__context ~f:Features.VM_start ; Xapi_vm_helpers.assert_matches_control_domain_affinity ~__context ~self:vm ~host ; (* Prevent VM start on a host that is evacuating *)