Skip to content

Commit 0e82615

Browse files
committed
Merge pull request xapi-project#1723 from djs55/from-xenserver-core-queues
Support multiple xenopsds, running at the same time
2 parents 1cbc4c0 + 0b9de7d commit 0e82615

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+395
-12910
lines changed

OMakefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,8 @@ JAVA_PHASE3_TARGETS = $(if $(COMPILE_JAVA), $(JAVA_PHASE3))
151151
# Phase 3 targets divided into two depending on whether we're building the Xen stuff or not:
152152
OCAML_PHASE3_XEN = \
153153
ocaml/xapi/xapi \
154-
allxenops \
155-
ocaml/xenops/cancel_utils_test \
156154
ocaml/xapi/quicktestbin \
157155
ocaml/xapi/storage_impl_test \
158-
ocaml/xapi/cancel_tests \
159156
ocaml/license/v6d
160157

161158
#ocaml/xapi/monitor_fake_plugin
@@ -191,8 +188,6 @@ OCAML_PHASE3_NOXEN = \
191188
ocaml/mpathalert/mpathalert \
192189
ocaml/multipathrt/multipathrt
193190

194-
# ocaml/xapi/rrddump
195-
196191
OCAML_PHASE3 = $(OCAML_PHASE3_XEN) $(OCAML_PHASE3_NOXEN)
197192

198193
OCAML_PHASE1_TARGETS = $(if $(COMPILE_OCAML), $(OCAML_PHASE1))

mk/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ $(OUTPUT_CLI_RT) $(OUTPUT_SDK): $(MY_MAIN_PACKAGES)/.dirstamp $(RPM_DIRECTORIES)
8686
cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-tests-*.rpm $(MY_MAIN_PACKAGES)
8787
cp $(RPM_RPMSDIR)/*/xapi-www-*.rpm $(MY_MAIN_PACKAGES)
8888
cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-xe-*.rpm $(MY_MAIN_PACKAGES)
89-
cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-xenops-*.rpm $(MY_MAIN_PACKAGES)
9089
mkdir -p $(MY_XCP_PACKAGES)
9190
cp $(RPM_RPMSDIR)/$(DOMAIN0_ARCH_OPTIMIZED)/xapi-v6d-*.rpm $(MY_XCP_PACKAGES)
9291

ocaml/OMakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ OCamlLibrary(fhs, fhs)
1414
idl \
1515
util \
1616
xapi \
17-
xenops \
1817
xva \
1918
console \
2019
auth \
@@ -34,7 +33,6 @@ OCamlLibrary(fhs, fhs)
3433
mpathalert \
3534
multipathrt \
3635
doc \
37-
rrdd \
3836
test
3937

4038
clean:

ocaml/idl/ocaml_backend/taskHelper.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ let failed ~__context (code, params) =
210210

211211
type id =
212212
| Sm of string
213-
| Xenops of string
213+
| Xenops of string * string (* queue name * id *)
214214

215215
let id_to_task_tbl : (id, API.ref_task) Hashtbl.t = Hashtbl.create 10
216216
let task_to_id_tbl : (API.ref_task, id) Hashtbl.t = Hashtbl.create 10
@@ -238,7 +238,7 @@ let register_task __context id =
238238
(* Since we've bound the XenAPI Task to the xenopsd Task, and the xenopsd Task
239239
is cancellable, mark the XenAPI Task as cancellable too. *)
240240
set_cancellable ~__context;
241-
id
241+
()
242242

243243
let unregister_task __context id =
244244
(* The rest of the XenAPI Task won't be cancellable *)
@@ -249,5 +249,5 @@ let unregister_task __context id =
249249
Hashtbl.remove id_to_task_tbl id;
250250
Hashtbl.remove task_to_id_tbl task;
251251
);
252-
id
252+
()
253253

ocaml/idl/ocaml_backend/taskHelper.mli

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ val init : unit -> unit
3535
val rbac_assert_permission_fn : (__context:Context.t -> permission:Db_actions.role_t -> unit) option ref
3636
val assert_can_destroy : ?ok_if_no_session_in_context:bool -> __context:Context.t -> [ `task ] Ref.t -> unit
3737

38-
type id = Sm of string | Xenops of string
38+
type id =
39+
| Sm of string
40+
| Xenops of string * string (** queue name * VM id *)
3941

4042
val id_to_task_exn : id -> API.ref_task
4143
val task_to_id_exn : API.ref_task -> id
42-
val register_task : Context.t -> id -> id
43-
val unregister_task : Context.t -> id -> id
44+
val register_task : Context.t -> id -> unit
45+
val unregister_task : Context.t -> id -> unit
4446

4547

ocaml/rrdd/META.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

ocaml/rrdd/OMakefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

ocaml/rrdd/interface/OMakefile

Lines changed: 0 additions & 15 deletions
This file was deleted.

ocaml/rrdd/interface/rrdd.ml

Lines changed: 0 additions & 16 deletions
This file was deleted.

ocaml/rrdd/interface/rrdd_common.ml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)