Skip to content

Commit 5c5bed2

Browse files
committed
Merge commit '9c97c20ff839de6e704994ba4ac695b1f1936ed9'
2 parents 2e44768 + 9c97c20 commit 5c5bed2

File tree

340 files changed

+1762
-14332
lines changed

Some content is hidden

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

340 files changed

+1762
-14332
lines changed

Makefile

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ PLUGINDIR=/usr/lib/xcp/plugins
3333
HOOKSDIR=/etc/xcp/hook-scripts
3434
INVENTORY=/etc/xcp/inventory
3535
XAPICONF=/etc/xcp/xapi.conf
36-
RRDDCONF=/etc/xcp/rrdd.conf
3736
LIBEXECDIR=/usr/lib/xcp/lib
3837
SCRIPTSDIR=/usr/lib/xcp/scripts
3938
SHAREDIR=/usr/share/xcp
@@ -54,7 +53,6 @@ PLUGINDIR=/etc/xapi.d/plugins
5453
HOOKSDIR=/etc/xapi.d
5554
INVENTORY=/etc/xensource-inventory
5655
XAPICONF=/etc/xapi.conf
57-
RRDDCONF=/etc/xcp-rrdd.conf
5856
LIBEXECDIR=/opt/xensource/libexec
5957
SCRIPTSDIR=/etc/xensource/scripts
6058
SHAREDIR=/opt/xensource
@@ -70,7 +68,7 @@ EXTRA_INSTALL_PATH=
7068
endif
7169

7270

73-
export ETCDIR OPTDIR PLUGINDIR HOOKSDIR INVENTORY VARPATCHDIR LIBEXECDIR XAPICONF RRDDCONF SCRIPTSDIR SHAREDIR WEBDIR XHADIR BINDIR SBINDIR UDEVDIR OCAMLPATH EXTRA_INSTALL_PATH
71+
export ETCDIR OPTDIR PLUGINDIR HOOKSDIR INVENTORY VARPATCHDIR LIBEXECDIR XAPICONF SCRIPTSDIR SHAREDIR WEBDIR XHADIR BINDIR SBINDIR UDEVDIR OCAMLPATH EXTRA_INSTALL_PATH
7472

7573
.PHONY: all
7674
all: version ocaml/fhs.ml
@@ -92,13 +90,9 @@ test:
9290
# Pipe ugly bash output to /dev/null
9391
@echo @ xapi unit test suite
9492
@./ocaml/test/suite -verbose
95-
@echo @ xenops-cli unit test
96-
@./ocaml/xenops-cli/runtest.sh 2> /dev/null
9793
@echo
9894
@echo @ HA binpack test
9995
@./ocaml/xapi/binpack
100-
@echo @ squeezed test
101-
@./ocaml/xenops/squeeze_test
10296
# The following test no longer runs:
10397
# ./ocaml/database/database_test
10498
# The following test no longer compiles:
@@ -182,7 +176,6 @@ ocaml/fhs.ml :
182176
let hooksdir=\"$(HOOKSDIR)\"\n \
183177
let libexecdir=\"$(LIBEXECDIR)\"\n \
184178
let xapiconf=\"$(XAPICONF)\"\n \
185-
let rrddconf=\"$(RRDDCONF)\"\n \
186179
let scriptsdir=\"$(SCRIPTSDIR)\"\n \
187180
let varpatchdir=\"$(VARPATCHDIR)\"\n \
188181
let webdir=\"$(WEBDIR)\"\n \
@@ -196,26 +189,21 @@ ocaml/fhs.ml :
196189
clean:
197190

198191
xapi.spec: xapi.spec.in
199-
noarch.spec: noarch.spec.in
200-
201-
%.spec: %.spec.in
202192
sed -e 's/@RPM_RELEASE@/$(shell git rev-list HEAD | wc -l)/g' < $< > $@
203193
sed -i "s!@OPTDIR@!${OPTDIR}!g" $@
204194

205195
.PHONY: srpm
206-
srpm: xapi.spec noarch.spec
196+
srpm: xapi.spec
207197
mkdir -p $(RPM_SOURCESDIR) $(RPM_SPECSDIR) $(RPM_SRPMSDIR)
208198
while ! [ -d .git ]; do cd ..; done; \
209199
git archive --prefix=xapi-0.2/ --format=tar HEAD | bzip2 -z > $(RPM_SOURCESDIR)/xapi-0.2.tar.bz2 # xen-api/Makefile
210-
git archive --prefix=xapi-noarch-0.2/ --format=tar HEAD | bzip2 -z > $(RPM_SOURCESDIR)/xapi-noarch-0.2.tar.bz2 # xen-api/Makefile
211200
cp $(JQUERY) $(JQUERY_TREEVIEW) $(RPM_SOURCESDIR)
212201
make -C $(REPO) version
213202
rm -f $(RPM_SOURCESDIR)/xapi-version.patch
214203
(cd $(REPO); diff -u /dev/null ocaml/util/version.ml > $(RPM_SOURCESDIR)/xapi-version.patch) || true
215-
cp -f xapi.spec noarch.spec $(RPM_SPECSDIR)/
216-
chown root.root $(RPM_SPECSDIR)/xapi.spec $(RPM_SPECSDIR)/noarch.spec || true
204+
cp -f xapi.spec $(RPM_SPECSDIR)/
205+
chown root.root $(RPM_SPECSDIR)/xapi.spec || true
217206
$(RPMBUILD) -bs --nodeps $(RPM_SPECSDIR)/xapi.spec
218-
$(RPMBUILD) -bs --nodeps $(RPM_SPECSDIR)/noarch.spec
219207

220208

221209
.PHONY: build

OMakefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ OCAMLDEP_MODULES_ENABLED = false
2626

2727
USE_OCAMLFIND = true
2828

29-
OCAMLFLAGS = -g -dtypes -thread -warn-error +a-4-6-9-27-28-29
29+
OCAMLFLAGS = -g -dtypes -bin-annot -thread -warn-error +a-4-6-9-27-28-29
3030

3131
# c compiling stuff
3232
OCAMLCFLAGS += -g
@@ -128,9 +128,7 @@ export
128128
# Ocaml #############################################################################
129129
OCAML_PHASE1= autogen_idl
130130
OCAML_PHASE2= \
131-
$(if $(BYTE_ENABLED), ocaml/idl/ocaml_backend/xapi_client.cma) $(if $(NATIVE_ENABLED), ocaml/idl/ocaml_backend/xapi_client.cmxa) \
132-
$(if $(BYTE_ENABLED), ocaml/rrdd/rrd_client.cma) $(if $(NATIVE_ENABLED), ocaml/rrdd/rrd_client.cmxa) \
133-
ocaml/rrdd/xcp-rrdd ocaml/rrdd/rrdd_test
131+
$(if $(BYTE_ENABLED), ocaml/idl/ocaml_backend/xapi_client.cma) $(if $(NATIVE_ENABLED), ocaml/idl/ocaml_backend/xapi_client.cmxa)
134132

135133
# JS ################################################################################
136134
JS_PHASE1=
@@ -154,18 +152,14 @@ JAVA_PHASE3_TARGETS = $(if $(COMPILE_JAVA), $(JAVA_PHASE3))
154152
OCAML_PHASE3_XEN = \
155153
ocaml/xapi/xapi \
156154
allxenops \
157-
ocaml/xenops-cli/xn \
158-
ocaml/xenops-cli/xenopstest \
159155
ocaml/xenops/cancel_utils_test \
160156
ocaml/xenguest/xenguest \
161157
ocaml/xenguest/dumpcore \
162158
ocaml/xapi/quicktestbin \
163159
ocaml/xapi/sparse_dd \
164160
ocaml/xapi/storage_impl_test \
165161
ocaml/xapi/cancel_tests \
166-
ocaml/license/v6d \
167-
ocaml/network/xcp-networkd \
168-
ocaml/network/networkd_db
162+
ocaml/license/v6d
169163

170164
#ocaml/xapi/monitor_fake_plugin
171165

@@ -174,8 +168,6 @@ OCAML_PHASE3_NOXEN = \
174168
ocaml/auth/testauth \
175169
ocaml/auth/testauthx \
176170
ocaml/xe-cli/xe \
177-
ocaml/sm-cli/sm \
178-
ocaml/sm-cli/smtest \
179171
ocaml/xsh/xsh \
180172
ocaml/xe-cli/rt/test_host \
181173
ocaml/xe-cli/rt/gtclient \
@@ -226,4 +218,4 @@ phase2: $(OCAML_PHASE2_TARGETS) $(JS_PHASE2_TARGETS) $(JAVA_PHASE2_TARGETS)
226218
phase3: $(OCAML_PHASE3_TARGETS) $(JS_PHASE3_TARGETS) $(JAVA_PHASE3_TARGETS)
227219

228220
.PHONY: test
229-
test: ocaml/xenops/xenopsd ocaml/xenops-cli/xenopstest ocaml/xenops-cli/runtest.sh ocaml/test/suite ocaml/database/database_test ocaml/xenops/squeeze_test
221+
test: ocaml/test/suite ocaml/database/database_test
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
XE(1)
2+
=======
3+
:doctype: manpage
4+
:man source: xe bond-param-get
5+
:man version: {1}
6+
:man manual: xe bond-param-get manual
7+
8+
NAME
9+
----
10+
xe-bond-param-get - Returns a parameter for a bond
11+
12+
SYNOPSIS
13+
--------
14+
*xe bond-param-get* uuid=<BOND UUID> param-name=<PARAMETER> [ param-key=<PARAMETER KEY> ]
15+
16+
DESCRIPTION
17+
-----------
18+
*xe bond-param-get* returns a parameter or a key value from a specific bond.
19+
20+
REQUIRED PARAMETERS
21+
-------------------
22+
*uuid*::
23+
UUID of bond - Use *xe bond-list* to obtain a list of bonds
24+
25+
*param-name*::
26+
The bond parameter to return - Use *xe bond-param-list* to obtain a list of bond parameters
27+
28+
OPTIONAL PARAMETERS
29+
-------------------
30+
*param-key*::
31+
The bond key to return
32+
33+
EXAMPLES
34+
--------
35+
To return the mode parameter value from a specific bond:
36+
37+
- *xe bond-param-get* uuid=<BOND UUID> param-name="mode"
38+
39+
To return the value from a key found in the properties parameter:
40+
41+
- *xe bond-param-get* uuid=<BOND UUID> param-name="properties" param-key=<PARAMETER KEY>
42+
43+
SEE ALSO
44+
--------
45+
*xe help bond-param-get*, *xe-bond-create*(1), *xe-bond-destroy*(1), *xe-bond-set-mode*(1), *xe-bond-param-list*(1) *xe-bond-param-get*(1), *xe-bond-param-set*(1), *xe-pif-list*(1)
46+
47+
AUTHORS
48+
-------
49+
Manpage Author(s):
50+
51+
- Matthew Spah <[email protected]>
52+
53+
BUGS
54+
----
55+
For guidelines on submitting bug reports see http://wiki.xen.org/wiki/Reporting_Bugs_against_XCP. Submit bugs and general questions to [email protected].
56+
57+
COPYRIGHT
58+
---------
59+
Copyright \(C) 2012 - Matthew Spah
60+
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License."
61+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
XE(1)
2+
=======
3+
:doctype: manpage
4+
:man source: xe bond-param-list
5+
:man version: {1}
6+
:man manual: xe bond-param-list manual
7+
8+
NAME
9+
----
10+
xe-bond-param-list - Displays all parameters for a bond
11+
12+
SYNOPSIS
13+
--------
14+
*xe bond-param-list* uuid=<BOND UUID>
15+
16+
DESCRIPTION
17+
-----------
18+
*xe bond-param-list* displays all parameters for a specific bond.
19+
20+
REQUIRED PARAMETERS
21+
-------------------
22+
*uuid*::
23+
Bond UUID - Use *xe bond-list* to obtain a list of bonds.
24+
25+
EXAMPLES
26+
--------
27+
To display parameters for a bond:
28+
29+
- *xe bond-param-list* uuid=<BOND UUID>
30+
31+
SEE ALSO
32+
--------
33+
*xe help bond-param-list*, *xe-bond-create*(1), *xe-bond-destroy*(1), *xe-bond-set-mode*(1), *xe-bond-param-get*(1), *xe-bond-param-set*(1), *xe-pif-list*(1)
34+
35+
AUTHORS
36+
-------
37+
Manpage Author(s):
38+
39+
- Matthew Spah <[email protected]>
40+
41+
BUGS
42+
----
43+
For guidelines on submitting bug reports see http://wiki.xen.org/wiki/Reporting_Bugs_against_XCP. Submit bugs and general questions to [email protected].
44+
45+
COPYRIGHT
46+
---------
47+
Copyright \(C) 2012 - Matthew Spah
48+
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License"
49+
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
XE(1)
2+
=======
3+
:doctype: manpage
4+
:man source: xe host-param-get
5+
:man version: {1}
6+
:man manual: xe host-param-get manual
7+
8+
NAME
9+
-----
10+
xe-host-param-get - Return a parameter for a host
11+
12+
SYNOPSIS
13+
--------
14+
*xe host-param-get* uuid=<HOST UUID> param-name=<PARAMETER> [ param-key=<PARAMETER KEY> ]
15+
16+
DESCRIPTION
17+
-----------
18+
*xe host-param-get* returns the value(s) of a parameter or a map parameter key value for a specified host.
19+
20+
REQUIRED PARAMETERS
21+
-------------------
22+
*uuid*::
23+
Host UUID - Use *xe host-list* to obtain a list of host UUIDs.
24+
25+
*param-name*::
26+
The host parameter value to return - Use *xe host-param-list* to obtain a list of host parameters
27+
28+
OPTIONAL PARAMETERS
29+
-------------------
30+
*param-key*::
31+
The host key value to return
32+
33+
EXAMPLES
34+
--------
35+
To return the UUID of the Suspend Image Storage Repository:
36+
37+
- *xe host-param-get* uuid=<HOST UUID> param-name="suspend-image-sr-uuid"
38+
39+
40+
SEE ALSO
41+
--------
42+
*xe help host-param-get*, *xe host-list*(1), *xe host-param-set*(1), *xe host-param-remove*(1). *xe host-param-clear*(1), *xe host-param-add*(1)
43+
44+
AUTHORS
45+
-------
46+
Manpage Author(s):
47+
48+
- Matthew Spah <[email protected]>
49+
50+
BUGS
51+
----
52+
For guidelines on submitting bug reports see http://wiki.xen.org/wiki/Reporting_Bugs_against_XCP. Submit bugs and general questions to [email protected].
53+
54+
COPYRIGHT
55+
---------
56+
Copyright \(C) 2013 - Matthew Spah
57+
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
XE(1)
2+
=======
3+
:doctype: manpage
4+
:man source: xe host-param-list
5+
:man version: {1}
6+
:man manual: xe host-param-list manual
7+
8+
NAME
9+
----
10+
xe-host-param-list - Displays all parameters for a host
11+
12+
SYNOPSIS
13+
--------
14+
*xe host-param-list* uuid=<HOST UUID>
15+
16+
DESCRIPTION
17+
-----------
18+
*xe host-param-list* displays all parameters for a specific host.
19+
20+
REQUIRED PARAMETERS
21+
-------------------
22+
*uuid*::
23+
Host UUID - Use *xe host-list* to obtain a list of Host UUIDs.
24+
25+
EXAMPLES
26+
--------
27+
To display all parameters for a specific host:
28+
29+
- *xe host-param-list* uuid=<HOST UUID>
30+
31+
SEE ALSO
32+
--------
33+
*xe help host-param-list*, *xe-host-enable*(1), *xe-host-list*(1), *xe-host-param-get*(1), *xe-host-disable*(1), *xe-host-forget*(1), *xe-host-power-on*(1)
34+
35+
AUTHORS
36+
-------
37+
Manpage Author(s):
38+
39+
- Matthew Spah <[email protected]>
40+
41+
BUGS
42+
----
43+
For guidelines on submitting bug reports see http://wiki.xen.org/wiki/Reporting_Bugs_against_XCP. Submit bugs and general questions to [email protected].
44+
45+
COPYRIGHT
46+
---------
47+
Copyright \(C) 2013 - Matthew Spah
48+
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

0 commit comments

Comments
 (0)