Skip to content

Commit 38b7659

Browse files
author
Christian Lindig
committed
fixup! CP-41796 Close Port 80 (Encrypt Data Transfer During VM Migrations)
Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
1 parent b0a7341 commit 38b7659

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
File renamed without changes.

lib/xcp_client_patched.ml renamed to lib/xcp_client_https.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ let http_rpc string_of_call response_of_string ?(srcstr = "unset")
8383
let http_req =
8484
Cohttp.Request.make ~meth:`POST ~version:`HTTP_1_1 ~headers uri
8585
in
86-
Open_uri_patched.with_open_uri uri (fun fd ->
86+
Open_uri_https.with_open_uri uri (fun fd ->
8787
let ic = Unix.in_channel_of_descr fd in
8888
let oc = Unix.out_channel_of_descr fd in
8989
Request.write (fun writer -> Request.write_body writer req) http_req oc ;
@@ -137,7 +137,7 @@ let () =
137137
let binary_rpc string_of_call response_of_string ?(srcstr = "unset")
138138
?(dststr = "unset") url (call : Rpc.call) : Rpc.response =
139139
let uri = Uri.of_string (url ()) in
140-
Open_uri.with_open_uri uri (fun fd ->
140+
Open_uri_https.with_open_uri uri (fun fd ->
141141
let ic = Unix.in_channel_of_descr fd in
142142
let oc = Unix.out_channel_of_descr fd in
143143
let msg_buf = string_of_call call in

lib/xenops_server.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,7 @@ and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
23492349
let module Remote =
23502350
Xenops_interface.XenopsAPI (Idl.Exn.GenClient (struct
23512351
let rpc =
2352-
Xcp_client_patched.xml_http_rpc ~srcstr:"xenops" ~dststr:"dst_xenops"
2352+
Xcp_client_https.xml_http_rpc ~srcstr:"xenops" ~dststr:"dst_xenops"
23532353
(fun () -> vmm.vmm_url
23542354
)
23552355
end)) in
@@ -2396,7 +2396,7 @@ and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
23962396
memory on the receiver *)
23972397
let state = B.VM.get_state vm in
23982398
info "VM %s has memory_limit = %Ld" id state.Vm.memory_limit ;
2399-
Open_uri_patched.with_open_uri memory_url (fun mem_fd ->
2399+
Open_uri_https.with_open_uri memory_url (fun mem_fd ->
24002400
let module Handshake = Xenops_migrate.Handshake in
24012401
let do_request fd extra_cookies url =
24022402
let https = Uri.scheme url = Some "https" in
@@ -2479,7 +2479,7 @@ and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
24792479
make_url "/migrate-vgpu/"
24802480
(VGPU_DB.string_of_id (new_dest_id, dev_id))
24812481
in
2482-
Open_uri_patched.with_open_uri vgpu_url (fun vgpu_fd ->
2482+
Open_uri_https.with_open_uri vgpu_url (fun vgpu_fd ->
24832483
do_request vgpu_fd [(cookie_vgpu_migration, "")] vgpu_url ;
24842484
Handshake.recv_success vgpu_fd ;
24852485
debug "VM.migrate: Synchronisation point 1-vgpu" ;

0 commit comments

Comments
 (0)