Skip to content

Commit 71a70b1

Browse files
author
Koushik Chakravarty
committed
CP-9895: Added originator for xapi login_with_password
The login_with_password XenAPI call takes an "originator" string as its fourth parameter. If a client does this, then it gets its own pool of xapi sessions. Moreover it will not have its xapi sessions destroyed prematurely as a result of some other misbehaving client that keeps creating sessions and not logging out of them. This patch adds the "originator" to all invokes of login_with_password. Signed-off-by: Koushik Chakravarty <[email protected]>
1 parent d90aa30 commit 71a70b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

networkd/network_monitor_thread.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let send_bond_change_alert dev interfaces message =
3535
let ifaces = String.concat "+" (List.sort String.compare interfaces) in
3636
let module XenAPI = Client.Client in
3737
let session_id = XenAPI.Session.login_with_password
38-
~rpc:xapi_rpc ~uname:"" ~pwd:"" ~version:"1.4" in
38+
~rpc:xapi_rpc ~uname:"" ~pwd:"" ~version:"1.4" ~originator:("xcp-networkd v" ^ Version.version) in
3939
Pervasiveext.finally
4040
(fun _ ->
4141
let obj_uuid = Inventory.lookup Inventory._installation_uuid in

0 commit comments

Comments
 (0)