Skip to content

Commit 05f9b4d

Browse files
johnelserobhoes
authored andcommitted
CA-191256: Update pool features after ejecting a host
Signed-off-by: John Else <[email protected]>
1 parent ddce42c commit 05f9b4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ocaml/xapi/xapi_pool.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,10 @@ let eject ~__context ~host =
852852
Db.Host.destroy ~__context ~self:host;
853853
Create_misc.create_pool_cpuinfo ~__context;
854854

855+
(* Update pool features, in case this host had a different license to the
856+
* rest of the pool. *)
857+
Pool_features.update_pool_features ~__context;
858+
855859
(* and destroy my control domain, since you can't do this from the API [operation not allowed] *)
856860
begin try
857861
let my_control_domain = List.find (fun x->x.API.vM_is_control_domain) (List.map snd my_vms_with_records) in

0 commit comments

Comments
 (0)