Skip to content

Commit

Permalink
CP-52115: Only pool coordinator will use pool level licensing data
Browse files Browse the repository at this point in the history
In Host.apply_edition, limit that only pool coordinator use pool
level licensing data.

Signed-off-by: Changlei Li <[email protected]>
  • Loading branch information
changlei-li committed Dec 25, 2024
1 parent a889151 commit 7c09797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocaml/xapi/xapi_host.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,10 @@ let collect_license_server_data ~__context ~host =
(fun acc (k, v) -> if List.mem_assoc k l1 then acc else (k, v) :: acc)
l1 l2
in
list_assoc_union host_license_server pool_license_server
if Pool_role.is_master () then
list_assoc_union host_license_server pool_license_server
else
host_license_server

let apply_edition_internal ~__context ~host ~edition ~additional =
(* Get localhost's current license state. *)
Expand Down

0 comments on commit 7c09797

Please sign in to comment.