Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master into feature/update-backwards-compat #5887

Merged
merged 69 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from 66 commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
9291f21
CA-394343: After clock jump the xapi assumed the host is HOST_OFFLINE
minglumlu Jun 18, 2024
6577325
CP-49634: Add alerting for Corosync upgrade
Vincent-lau May 21, 2024
f4e944f
CA-395512: process SMAPIv3 API calls concurrently (default off)
edwintorok Jul 10, 2024
9f654a1
Merge pull request #5646 from Vincent-lau/private/shul2/corosync3-msg
Vincent-lau Jul 18, 2024
ccc0f31
vhd-tool, xen-api-client: Remove duplicated cohttp_unbuffered_io module
last-genius Jul 18, 2024
6e5893b
vhd-tool, ezxenstore: Remove duplicate xenstore module
last-genius Jul 18, 2024
56ef633
Fix Short/Long duration printing
edwintorok Jul 1, 2024
857be9e
forkexecd: do not clip commandline in logs
edwintorok Jul 3, 2024
fda9275
Merge pull request #5856 from last-genius/private/asultanov/duplicate…
psafont Jul 19, 2024
71c3960
CA-395174: Try to unarchive VM's metrics when they aren't running
psafont Jul 8, 2024
7fe1955
rrdd_proxy: Change *_at to specify the IP address
psafont Jul 8, 2024
6bb7702
rrdd_proxy: Use Option to encode where VMs might be available at
psafont Jul 8, 2024
110c112
http-lib: avoid double-queries to the radix tree
psafont Jul 18, 2024
3658806
rrdd_proxy: Return 400 on bad vm request
psafont Jul 19, 2024
c60e482
CA-394148: Fix dry-run handling in xe-restore-metadata
alexbrett Jul 16, 2024
0270f25
CA-393578: Fix vbd cleanup in metadata scripts
alexbrett Jul 16, 2024
6fb7738
CA-383491: [Security fix] Use debugfs on xe-restore-metadata probes
Sep 25, 2023
f51cb8c
Updates to Portable SR Functionality
alexbrett Jul 16, 2024
0a11d0b
Fixes for shellcheck
alexbrett Jul 16, 2024
2189996
Remove unused `yes` parameter in xe-backup-metadata
alexbrett Jul 19, 2024
8337fa9
Remove ineffectual parameter wiping (#5868)
contificate Jul 22, 2024
3026754
Merge pull request #5862 from edwintorok/private/edvint/epoll4.0-cleanup
psafont Jul 22, 2024
f39ea99
CP-47536: Drop posix_channel and channel_helper: unused and a mix of …
edwintorok Jul 22, 2024
d3460a3
opam: dunify vhd-tool's metadata
psafont Jul 22, 2024
541c03d
CP-47536: replace Protocol_unix.scheduler.Delay with Threadext.Delay
edwintorok May 10, 2024
d9590a0
fix(xapi-idl): replace PipeDelay with Delay, avoid another Thread.wai…
edwintorok Jun 10, 2024
0a92794
Merge pull request #5863 from edwintorok/private/edvint/epoll4.0-drop
edwintorok Jul 22, 2024
e60aeb5
Merge pull request #5807 from edwintorok/private/edvint/listen_p
edwintorok Jul 22, 2024
9e33053
Merge pull request #5872 from psafont/dune-vhd-tool
psafont Jul 22, 2024
54abab8
Merge pull request #5855 from psafont/rrd-unpack
psafont Jul 22, 2024
b411adc
Merge pull request #5861 from edwintorok/private/edvint/epoll4.0-delay
edwintorok Jul 22, 2024
4f587b0
opam: dunify message-switch-unix's metadata
psafont Jul 22, 2024
d88017e
IH-507: xapi_xenops: raise an error when the kernel isn't allowed
psafont Jul 22, 2024
5dc2900
IH-507: Do not allow guest kernels in /boot/
psafont Jul 23, 2024
090e846
Merge pull request #5700 from minglumlu/private/mingl/CA-394343
psafont Jul 23, 2024
1c92485
Merge pull request #5875 from psafont/dune-mswitch
psafont Jul 23, 2024
1d0aae5
Merge pull request #5874 from psafont/private/paus/minions
psafont Jul 23, 2024
a7b7a26
[maintenance] bump minimum dune language version to 3.7
edwintorok Mar 20, 2023
5353e3e
[maintenance]: bump dune language version to 3.15
edwintorok Jul 23, 2024
d802d43
[maintenance] regenerate opam after dune version bump
edwintorok Mar 20, 2023
197adc9
[maintenance]: do not build bytecode versions of internal libraries
edwintorok Mar 20, 2023
ac6b7b4
[maintenance]: add server.mli
edwintorok Jul 22, 2024
ed78088
[maintenance]: xapi-aux does not need to depend on xapi-types
edwintorok Mar 20, 2023
f07b9d7
[maintenance]: preprocess only modules containing @@deriving
edwintorok Mar 20, 2023
d3869c1
[maintenance]: split server.ml into separate library
edwintorok Mar 20, 2023
bc1a58c
[maintenance]: remove API.API
edwintorok Mar 20, 2023
3f6228b
[maintenance]: remove dependency between most tests and server.ml
edwintorok Mar 20, 2023
f823835
[maintenance]: remove unneeded dependencies
edwintorok Jul 22, 2024
ebbc4c6
[maintenance]: break dependency of gen_api_main on xapi_version
edwintorok Jul 22, 2024
c8e828e
[maintenance]: xapi-types should not depend on xapi-idl
edwintorok Jul 22, 2024
9c85ed7
[maintenance]: use bytecode for gen_api_main
edwintorok Jul 22, 2024
bf35097
[maintenance]: further split xapi_internal_server
edwintorok Jul 22, 2024
62ff5e7
[maintenance]: reduce basic-rpc-test time
edwintorok Mar 20, 2023
7530d5e
[maintenance]: try to reconnect to message-switch every 0.5s
edwintorok Mar 20, 2023
a6406ea
[maintenance]: add back the 5s message-switch test as a stresstest
edwintorok Jul 24, 2024
bc549cd
Merge pull request #5876 from edwintorok/private/edvint/maintenance2
edwintorok Jul 24, 2024
e5fa761
maintenance: delete unused fields
psafont Jul 24, 2024
9fd09c8
datamodel_lifecycle: automated bump
psafont Jul 24, 2024
adf27d5
Merge pull request #5880 from psafont/nowarns
psafont Jul 25, 2024
cd16298
maintenance: restore dune utop
psafont Jul 25, 2024
e2c0ac6
xapi: update mirage-crypto version
psafont Jul 5, 2024
34ee1ef
mirage-rng: Initialize it only in tests and selfcert
psafont Jul 23, 2024
842de7b
Merge pull request #5882 from psafont/utop
psafont Jul 25, 2024
231bb73
Merge pull request #5878 from psafont/up
psafont Jul 26, 2024
f4b9bcf
clock: use external qcheck-alcotest
psafont Jul 26, 2024
afe5fec
Merge pull request #5885 from psafont/qcheck-core
psafont Jul 26, 2024
eb58c7d
CP-50448: move quickcheck tests into internal libraries
edwintorok Jul 25, 2024
efcb7af
CP-50448: run the QuickCheck tests in QuickTest
edwintorok Jul 25, 2024
76b3db6
Merge pull request #5884 from edwintorok/private/edvint/ci-to-quicktest
edwintorok Jul 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion clock.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "3.0"}
"dune" {>= "3.15"}
"ocaml" {>= "4.12"}
"alcotest" {with-test}
"astring"
"mtime"
"ptime"
"qcheck-core" {with-test}
"qcheck-alcotest" {with-test}
"odoc" {with-doc}
]
build: [
Expand Down
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(ocamlopt_flags (:standard -g -p -w -39))
(flags (:standard -w -39))
)
(dev (flags (:standard -g -w -39)))
(dev (flags (:standard -g -w -39 -warn-error -69)))
(release
(flags (:standard -w -39-6@5))
(env-vars (ALCOTEST_COMPACT 1))
Expand Down
105 changes: 102 additions & 3 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(lang dune 3.0)
(lang dune 3.15)

(formatting (enabled_for ocaml))
(using menhir 2.0)

Expand Down Expand Up @@ -28,6 +29,8 @@
astring
mtime
ptime
(qcheck-core :with-test)
(qcheck-alcotest :with-test)
)
)

Expand Down Expand Up @@ -66,7 +69,6 @@
(synopsis "Xen-API client library for remotely-controlling a xapi host")
(authors "David Scott" "Anil Madhavapeddy" "Jerome Maloberti" "John Else" "Jon Ludlam" "Thomas Sanders" "Mike McClurg")
(depends
dune-build-info
(alcotest :with-test)
astring
(cohttp (>= "0.22.0"))
Expand Down Expand Up @@ -187,7 +189,6 @@
(description "This daemon monitors 'datasources' i.e. time-varying values such as performance counters and records the samples in RRD archives. These archives can be used to examine historical performance trends.")
(depends
(ocaml (>= "4.02.0"))
dune-build-info
(alcotest :with-test)
astring
(gzip (= :version))
Expand Down Expand Up @@ -300,6 +301,68 @@

(package
(name xapi)
(synopsis "The toolstack daemon which implements the XenAPI")
(description "This daemon exposes the XenAPI and is used by clients such as 'xe' and 'XenCenter' to manage clusters of Xen-enabled hosts.")
(depends
alcotest ; needed for the quicktest binary
angstrom
base-threads
base64
cdrom
conf-pam
(crowbar :with-test)
ctypes
ctypes-foreign
domain-name
(ezxenstore (= :version))
(fmt :with-test)
hex
(http-lib (and :with-test (= :version))) ; the public library is only used for testing
ipaddr
mirage-crypto
mirage-crypto-pk
(mirage-crypto-rng (>= "0.11.0"))
(message-switch-unix (= :version))
mtime
opentelemetry-client-ocurl
pci
(pciutil (= :version))
ppx_deriving_rpc
ppx_sexp_conv
ppx_deriving
psq
rpclib
(rrdd-plugin (= :version))
rresult
sexpr
sha
(stunnel (= :version))
tar
tar-unix
(uuid (= :version))
x509
(xapi-client (= :version))
(xapi-cli-protocol (= :version))
(xapi-consts (= :version))
(xapi-datamodel (= :version))
(xapi-expiry-alerts (= :version))
(xapi-idl (= :version))
(xapi-inventory (= :version))
(xapi-log (= :version))
(xapi-stdext-date (= :version))
(xapi-stdext-pervasives (= :version))
(xapi-stdext-std (= :version))
(xapi-stdext-threads (= :version))
(xapi-stdext-unix (= :version))
(xapi-stdext-zerocheck (= :version))
(xapi-test-utils :with-test)
(xapi-tracing (= :version))
(xapi-types (= :version))
(xapi-xenopsd (= :version))
(xml-light2 (= :version))
yojson
(zstd (= :version))
)
)

(package
Expand All @@ -321,6 +384,32 @@

(package
(name vhd-tool)
(synopsis "Manipulate .vhd files")
(tags ("org.mirage" "org:xapi-project"))
(depends
(alcotest-lwt :with-test)
cohttp-lwt
conf-libssl
(cstruct (>= "3.0.0"))
(ezxenstore (= :version))
(forkexec (= :version))
io-page
lwt
nbd-unix
ppx_cstruct
ppx_deriving_rpc
re
rpclib
sha
tar
(vhd-format (= :version))
(vhd-format-lwt (= :version))
(xapi-idl (= :version))
(xapi-log (= :version))
(xen-api-client-lwt (= :version))
xenstore
xenstore_transport
)
)

(package
Expand Down Expand Up @@ -438,6 +527,16 @@ This package provides an Lwt compatible interface to the library.")

(package
(name message-switch-unix)
(synopsis "A simple store-and-forward message switch")
(description "The switch stores messages in queues with well-known names. Clients use a simple HTTP protocol to enqueue and dequeue messages.")
(depends
base-threads
cohttp
(message-switch-core (= :version))
ppx_deriving_rpc
rpclib
(xapi-stdext-threads (= :version))
)
)

(package
Expand Down
2 changes: 1 addition & 1 deletion forkexec.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "3.0"}
"dune" {>= "3.15"}
"base-threads"
"fd-send-recv" {>= "2.0.0"}
"ppx_deriving_rpc"
Expand Down
2 changes: 1 addition & 1 deletion http-lib.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "3.0"}
"dune" {>= "3.15"}
"alcotest" {with-test}
"astring"
"base64" {>= "3.1.0"}
Expand Down
2 changes: 1 addition & 1 deletion message-switch-core.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "3.0"}
"dune" {>= "3.15"}
"astring"
"cohttp" {>= "0.21.1"}
"ppx_deriving_rpc"
Expand Down
50 changes: 28 additions & 22 deletions message-switch-unix.opam
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
# This file is generated by dune, edit dune-project instead
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
opam-version: "2.0"
name: "message-switch-unix"
maintainer: "[email protected]"
authors: [ "[email protected]" ]
homepage: "https://github.com/xapi-project/xen-api"
synopsis: "A simple store-and-forward message switch"
description:
"The switch stores messages in queues with well-known names. Clients use a simple HTTP protocol to enqueue and dequeue messages."
maintainer: ["Xapi project maintainers"]
authors: ["[email protected]"]
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
dev-repo: "git+https://github.com/xapi-project/xen-api.git"
tags: [ "org:xapi-project" ]
build: [
["./configure" "--prefix" "%{prefix}%"]
[ "dune" "build" "-p" name "-j" jobs ]
]
depends: [
"ocaml"
"dune" {build & >= "1.4"}
"odoc" {with-doc}
"dune" {>= "3.15"}
"base-threads"
"message-switch-core"
"cohttp"
"message-switch-core" {= version}
"ppx_deriving_rpc"
"rpclib"
"xapi-stdext-threads" {= version}
"odoc" {with-doc}
]
synopsis: "A simple store-and-forward message switch"
description: """
The switch stores messages in queues with well-known names. Clients use
a simple HTTP protocol to enqueue and dequeue messages."""
url {
src: "https://github.com/xapi-project/xen-api/archive/master.tar.gz"
}
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/xapi-project/xen-api.git"
27 changes: 0 additions & 27 deletions message-switch-unix.opam.template

This file was deleted.

1 change: 1 addition & 0 deletions message-switch.opam
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ depends: [
"ppx_sexp_conv"
"sexplib"
"shared-block-ring" {>= "2.3.0"}
"xapi-stdext-unix"
]
synopsis: "A simple store-and-forward message switch"
description: """
Expand Down
1 change: 1 addition & 0 deletions message-switch.opam.template
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ depends: [
"ppx_sexp_conv"
"sexplib"
"shared-block-ring" {>= "2.3.0"}
"xapi-stdext-unix"
]
synopsis: "A simple store-and-forward message switch"
description: """
Expand Down
3 changes: 2 additions & 1 deletion ocaml/alerts/certificate/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(library
(name certificate_check)
(modules certificate_check)
(modes best)
(libraries
astring
xapi-expiry-alerts
Expand All @@ -19,7 +20,7 @@
(modules certificate_check_main)
(libraries
certificate_check
dune-build-info

http_lib
xapi-client
xapi-types
Expand Down
2 changes: 0 additions & 2 deletions ocaml/alerts/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
(name expiry_alert)
(public_name xapi-expiry-alerts)
(libraries
astring
xapi-client
xapi-consts
xapi-types
xapi-stdext-date
)
Expand Down
1 change: 1 addition & 0 deletions ocaml/auth/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(library
(modes best)
(foreign_stubs
(language c)
(names xa_auth xa_auth_stubs)
Expand Down
Loading
Loading