Repository navigation
Conversation
SMAPIv1 attach results may now carry an optional backend_kind, letting the SM select the datapath backend (e.g. the existing qdisk for qcow2/qemu-dp). When absent the toolstack continues to default to vbd3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Mark Syms <mark.syms@citrix.com>
This patch fixes an issue where the HA statefile and metadata VDIs remain
attached to dom0 after a host restart, even if HA has been disabled on the
pool. Here is the scenario:
- HA is enabled on the pool
- A host is fenced, so it is shut down
- HA is disabled on the pool. ha_release_resources is called on live hosts but
the fenced one doesn't receive the cleanup and keeps the statefile and
metadata VDIs in /etc/xensource/static-vdis
- The fenced host restarts:
- Its local database still has ha.armed set to true, so on_server_restart
attached the static VDIs and tries to start the HA daemon
- ha_start_daemon fails with MTC_EXIT_INVALID_POOL_STATE because the pool is
no longer in HA mode. While failing, it sets ha.armed to false in the local
database without releasing the static VDIs
- Later resynchronise_ha_state sees HA disabled on both localhost and the
pool. So the (true, false) case, which normally calls ha_release_resources,
is not taken and no cleanup is done.
At the end of the boot, the statefile and the metadata VDIs are still attached
to dom0 and must be removed manually with "static-vdis detach/del".
So the patch adds release_local_ha_static_vdis that deactivates and detaches
any HA statefile or metadata VDI still configured as a static VDI on the host,
and calls it in the (false, false) case of resynchronise_ha_state. When nothing
is left behind it does nothing.
ha_release_resources now also uses this helper. It used
Db.Pool.get_ha_statefiles to find statefiles, but a statefile attached on the
host always has a local static-vdis entry, so the local configuration is what
this host actually need to release. Metadata VDIs were already found using the
local configuration. Xha_metadata_vdi.deactivate_and_detach_existing is no
longer used and is removed.
Tracking-reference: XCPNG-3914
Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@vates.tech>
dnf5 uses different section headers to yum, e.g. "Installing dependencies:" for "Installing for dependencies:". Unrecognised headers were folded into the preceding section, misaligning the package parser and failing pool-sync-updates whenever an update pulled in a new package. Signed-off-by: Christian Pardillo Laursen <christian.pardillolaursen@citrix.com>
Signed-off-by: Christian Pardillo Laursen <christian.pardillolaursen@citrix.com>
xapi currently only recognises yum headers; we're using dnf5 and got an error on header `Installing dependencies`. This PR adds DNF5-only headers to the parser.
The Java SDK generates the HostIsSlave exception's public field from this parameter name, so renaming it to "Coordinator IP address" turned masterIPAddress into coordinatorIPAddress. That breaks any Java client that reads the field: existing code no longer compiles, and code compiled against an earlier SDK throws NoSuchFieldError when it handles the error. No other SDK uses the name. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Daniel Lamping <daniel.lamping@citrix.com>
The Java SDK generates the HostIsSlave exception's public field from this parameter name, so renaming it to "Coordinator IP address" turned masterIPAddress into coordinatorIPAddress. That breaks any Java client that reads the field: existing code no longer compiles, and code compiled against an earlier SDK throws NoSuchFieldError when it handles the error. No other SDK uses the name.
Add "--latest-limit=1" to dnf5's repoquery "--upgrades" and "--available", so only the newest version of each name.arch is listed, as yum does. Additionally, unlike yum's, dnf's "--available" still returns the repository's copy of an installed package when no newer version exists. Filter out the available packages whose name.arch is installed, so that only packages to be newly installed remain. The repoquery output is only a fallback (and a cross-check) for the human-readable output of "dnf upgrade --assumeno": the dry run resolves the transaction (new dependencies, obsoletes, group members) while repoquery does not, but its parsing is less robust. This is designed for some corner cases which can't be covered by repoquery. In future, dnf5's formatted output could be evaluated to replace the dry-run parsing if it could cover all the corner cases. Signed-off-by: Ming Lu <ming.lu@cloud.com>
…age (xapi-project#7350) Add "--latest-limit=1" to dnf5's repoquery "--upgrades" and "--available", so only the newest version of each name.arch is listed, as yum does. Additionally, unlike yum's, dnf's "--available" still returns the repository's copy of an installed package when no newer version exists. Filter out the available packages whose name.arch is installed, so that only packages to be newly installed remain. The repoquery output is only a fallback (and a cross-check) for the human-readable output of "dnf upgrade --assumeno": the dry run resolves the transaction (new dependencies, obsoletes, group members) while repoquery does not, but its parsing is less robust. This is designed for some corner cases which can't be covered by repoquery. In future, dnf5's formatted output could be evaluated to replace the dry-run parsing if it could cover all the corner cases.
This reverts commit 241f797. The watchdog that this commit introduces will abort emu-manager if it hasn't sent a message within the timeout. However, emu-manager can spend a long time doing work without sending a message, so healthy tasks sometimes get aborted. Signed-off-by: Christian Pardillo Laursen <christian.pardillolaursen@citrix.com>
This reverts commit 241f797. I've opened PR xapi-project#7351 to fix the issues that this commit introduced, but the fix is quite large so we're choosing to revert for now to unblock the release pipeline.
lldpd signals readiness before it replays its config files, so the replayed settings can overwrite what networkd sets right after start. networkd waited for the deny-all pattern from the default config file to show up, which takes many seconds when the host name does not resolve. Pass "-I !*" to lldpd through a runtime systemd drop-in, so it manages no interface from the start. Keep only the settings that networkd does not manage in the default config file, so the replay and networkd do not overlap, and drop the wait. Add a port to the scope only after its settings are applied, as a port in the scope starts sending at once. Signed-off-by: Changlei Li <changlei.li@citrix.com>
lldpd looks up the host name on every update until the system name is set. When the name does not resolve, each lookup is slow and delays every config command. Right after starting lldpd, set the system name before any other config. Clear the cached settings when lldpd is started, as a new lldpd has none of them, so they are all applied again. Signed-off-by: Changlei Li <changlei.li@citrix.com>
receive_start_common runs on the source host when called through receive_start3, with SMAPI bound to the destination host's storage API. The leaf VDI is created there, but its tags were added through Local, the source host's own storage mux, which has no plugin for the destination SR. Every SXM of a tagged VDI to an SR not plugged on the source host, including all cross-pool migrations, failed with No_storage_plugin_for_sr. Add the tags through SMAPI, like every other operation on the leaf. Signed-off-by: Lunfan Zhang <Lunfan.Zhang@cloud.com>
…api-project#7357) After the commit : xapi-project@5f74862, `receive_start_common` runs on the source host when called through `receive_start3`, with SMAPI bound to the destination host's storage API. The leaf VDI is created there, but its tags were added through Local, the source host's own storage mux, which has no plugin for the destination SR. Every SXM of a tagged VDI to an SR not plugged on the source host, including all cross-pool migrations, failed with `No_storage_plugin_for_sr`. Add the tags through SMAPI, like every other operation on the leaf.
…project#7341) This patch fixes an issue where the HA statefile and metadata VDIs remain attached to dom0 after a host restart, even if HA has been disabled on the pool. Here is the scenario: - HA is enabled on the pool - A host is fenced, so it is shut down - HA is disabled on the pool. ha_release_resources is called on live hosts but the fenced one doesn't receive the cleanup and keeps the statefile and metadata VDIs in /etc/xensource/static-vdis - The fenced host restarts: - Its local database still has ha.armed set to true, so on_server_restart attached the static VDIs and tries to start the HA daemon - ha_start_daemon fails with MTC_EXIT_INVALID_POOL_STATE because the pool is no longer in HA mode. While failing, it sets ha.armed to false in the local database without releasing the static VDIs - Later resynchronise_ha_state sees HA disabled on both localhost and the pool. So the (true, false) case, which normally calls ha_release_resources, is not taken and no cleanup is done. At the end of the boot, the statefile and the metadata VDIs are still attached to dom0 and must be removed manually with "static-vdis detach/del". So the patch adds release_local_ha_static_vdis that deactivates and detaches any HA statefile or metadata VDI still configured as a static VDI on the host, and calls it in the (false, false) case of resynchronise_ha_state. When nothing is left behind it does nothing. ha_release_resources now also uses this helper. It used Db.Pool.get_ha_statefiles to find statefiles, but a statefile attached on the host always has a local static-vdis entry, so the local configuration is what this host actually need to release. Metadata VDIs were already found using the local configuration. Xha_metadata_vdi.deactivate_and_detach_existing is no longer used and is removed. Tracking-reference: XCPNG-3914
Each released message can be emitted with api_compat.exe. The format is line-delimited JSON (often saved as .ndjson). You can `dune exec ./ocaml/idl/api_compat.exe -- -print` to see the messages printed to stdout. The intention is that we'll emit this to a file, committed upstream, and then add a test that compares the contents for mutations. Signed-off-by: Colin James <contificate@gmail.com>
Adds a simple parser for the line-delimited JSON format introduced previously. Signed-off-by: Colin James <contificate@gmail.com>
In wait_for_all_inner, the lambda used in the fold drops the classes from the accumulator and returns the outer classes for records that are not a task completion. So when a task ends and a new one is created, if another record (for example a process update) come after it in the same batchn the new class is lost. For example with three tasks in flight: - init: task set [A, B, C], classes [task/A, task/B, task/C] - A ends and D is created: task set [B, C, D], classes [task/B, task/C, task/D] - B is updated: task set [B, C, D], classes [task/A, task/B, task/C] D is pending but no longer subscribed. If D ends before another task recomputes classes from the task set, its completion is never seen and the caller waits forever. We saw this with host.evacuate stuck at progess 64/65 during a RPU. This patch fixes it by computing the class from the pending task set after the fold, so they always in sync. Tracking-reference: XCPNG-3991 Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@vates.tech>
Commits the current messages file to the repository. This was done via redirecting `dune exec ./ocaml/idl/api_compat.exe -- -print` to ocaml/idl/messages.ndjson. Signed-off-by: Colin James <contificate@gmail.com>
You can now invoke api_compat.exe with `-check <file>` and it will compare the datamodel against this file. We perform a pairwise comparison of message parameters to catch various potential mutations that may have occurred when modifying the datamodel. E.g. changing a parameter's default value, a message's return type, permuting the order of parameters, adding a parameter (at the end) that lacks a default, etc. The next step is to turn this into a workflow compatible with dune. Signed-off-by: Colin James <contificate@gmail.com>
Generates a messages.ndjson.generated in the dune build directory, which can then be compared against what's currently there (for promotion purposes), along with turning api_compat's -check mode into a test. We also add a promotion rule alias. Signed-off-by: Colin James <contificate@gmail.com>
Similar to datamodel_lifecycle.ml, we check the generated messages list against the one currently committed in the repository. If the check fails, we abandon. Otherwise, we automatically do promotion (applying the diff to the worktree). Signed-off-by: Colin James <contificate@gmail.com>
The SIGTERM handler runs on whichever thread is running, which can be the startup thread while it holds the scope lock in set_conf. Lldp.stop then took the same lock, raised "Resource deadlock avoided", and the handler never reached exit, so systemd aborted networkd and dumped core. Lldp.stop no longer clears the scope (nothing uses it after shutdown), and the handler exits even if a cleanup step raises. Signed-off-by: Changlei Li <changlei.li@citrix.com>
Storage migration from an SMAPIv1 SR depends on tapdisk and VHD throughout, so qcow2 VDIs served by qemu-dp cannot be migrated in either direction. Propose letting SMAPIv1 SRs opt in, VDI by VDI, to the backend mirror SMAPIv3 already uses: an SR capability says the operations exist and the backend says which VDIs it mirrors, so products sharing the toolstack source can each choose. A backend mirror also needs to be cancellable, which the SMAPIv3 path lacks today. Signed-off-by: Mark Syms <mark.syms@citrix.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This reverts commit a4dcbfe. Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech>
…pi-project#7367) This reverts commit a4dcbfe. The commit breaks the default configuration of Veeam VM restore, revert it while a proper fix can be discussed.
…#7326) SMAPIv1 attach results may now carry an optional backend_kind, letting the SM select the datapath backend (e.g. the existing qdisk for qcow2/qemu-dp). When absent the toolstack continues to default to vbd3.
The v2 protocol has rrdd re-read all of a plugin's data when its metadata checksum changes, but the file reader maps the file once, at the length it had on first read. A plugin that adds datasources extends the file in place, as the Python rrdd library does, so the re-read runs off the end of the old mapping and fails on every tick: the plugin's datasources go dark until it re-registers. A plugin whose datasource set follows the VMs on a host hits this on the first VM start. Signed-off-by: Mark Syms <mark.syms@citrix.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…api-project#7362) In wait_for_all_inner, the lambda used in the fold drops the classes from the accumulator and returns the outer classes for records that are not a task completion. So when a task ends and a new one is created, if another record (for example a process update) come after it in the same batchn the new class is lost. For example with three tasks in flight: - init: task set [A, B, C], classes [task/A, task/B, task/C] - A ends and D is created: task set [B, C, D], classes [task/B, task/C, task/D] - B is updated: task set [B, C, D], classes [task/A, task/B, task/C] D is pending but no longer subscribed. If D ends before another task recomputes classes from the task set, its completion is never seen and the caller waits forever. We saw this with host.evacuate stuck at progess 64/65 during a RPU. This patch fixes it by computing the class from the pending task set after the fold, so they always in sync. Tracking-reference: XCPNG-3991
The Java SDK's Types.checkError still assumed the XML-RPC error layout, where the code is the first element of the description and its parameters follow. Under JSON-RPC 2.0, xapi returns the code in error.message and only the parameters in error.data, so: - every typed exception's fields were read one place too far along; HostIsSlave.masterIPAddress was always empty, so a client could not follow a pool member to its coordinator; - an error that takes no parameters has empty data and was thrown as BadServerResponse rather than as its typed exception; - an unknown error was described without its code. Read parameter i from data[i], treat a missing code as the bad response, and describe an unknown error as its code followed by its parameters, as XML-RPC and the C# SDK do. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Daniel Lamping <daniel.lamping@citrix.com>
Neither XenAPIException constructor called super(...), so getMessage() returned null for every XenAPI error. Typed exceptions pass their description to super(), which landed in shortDescription only. Standard Java error handling and logging therefore showed nothing, and the error was only reachable through the SDK-specific shortDescription field. Pass the description (or the error code, for the errorDescription constructor) to IOException as well. Found by the xenserver-samples error-handling workflow (CP-314917), which printed "null" for every error in Java only. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Daniel Lamping <daniel.lamping@citrix.com>
…on error The generated PowerShell cmdlets reported "A default XenServer session has not beeen set." when no default session was set. Disconnect-XenServer's equivalent message was already spelled correctly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Daniel Lamping <daniel.lamping@citrix.com>
CP-314717 moved the C# SDK to net10.0;netstandard2.0;net462 and the PowerShell module to net10.0;net462, but the hand-written sources still tested NET8_0_OR_GREATER, which no longer matches any target the projects build. The NETx_0_OR_GREATER symbols are cumulative, so this doesn't change what's compiled for any current target: the guards still separate modern .NET from netstandard2.0 and .NET Framework. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Daniel Lamping <daniel.lamping@citrix.com>
xapi sends sets as JSON arrays, and the Java SDK read them into Jackson's default HashSet, which loses their order. Results declared as Set (Set String) were unusable as a result: Caller.query_all_usage documents its result as rows of [uuid; name_label; tokens; calls], highest tokens first, but Java returned the rows and each row's columns in hash order. host.apply_updates, pool.check_update_readiness and Diagnostics.network_stats return the same type. Read every set as a LinkedHashSet instead, which keeps the order of the array. The Java signatures don't change. Duplicate values within a row still collapse, because the result is still a set; C# and Go map the same type to arrays and aren't affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Daniel Lamping <daniel.lamping@citrix.com>
The [String.equal] will take variable time according to how similar the two strings are in comparison. An attacker can have a byte-at-a-time timing oracle on the pool_secret, making practical secret recovery attacks significantly more feasible. [Eqaf.equal] instead has data-invariant timing if and only if both strings being compared have the same length. In such case, it does not depend on the contents of the strings being compared, so the time taken to reject a guess reveals nothing about how much of it is correct. When the lengths differ, [Eqaf.equal] returns early, which reveals whether a guess has the same length as the secret. This is not new. And enough entropy in secret has been enforced. So it's not a critical issue. This is XSA-529 / CVE-2026-102705. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
…rm protected keys This defeats the _R_POOL_ADMIN per-key gates that XSA-489 added for VM.other_config:pci and VM.platform:hvm_serial. Additionally, there are other paths that may bypass the gate: VM clone and import. Note that the API calls are forwarded to supporter hosts with session created by pool secret. It needs to be recovered to the original session for RBAC check. This is CVE-2026-102706, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
This is CVE-2026-102706, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
VM.create only needs the VM admin role, but it takes a whole VM record,
including fields whose setters need a higher role. Two of them are
checked in this PR:
- ha_restart_priority: a VM with "restart" is protected by HA and takes
resources from the pool's point of view.
- appliance: is managed from pool's point of view as well.
There are other VM fields which currently require higher role. But one
of them, ha_always_run, is deprecated. Others seem not necessary to be
managed by higher role, or from the pool's point of view.
This is CVE-2026-102706, part of XSA-530.
Signed-off-by: Ming Lu <ming.lu@citrix.com>
Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
This is CVE-2026-102706, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
…listener The minimum allowed role of invoking Network.create is vm-admin. But the [other_config] map of a Network object (except the key specified by [map_keys_roles]) are of minimum role of pool-operator. So the [other_config] parameter of Network.create should be checked to not allow two particular keys which might impact the host internal management network (HIMN) when the caller of the API is of vm-admin role. The HIMN is allowed to be managed with pool-operator or higher privilege levels. Additionally, there is another path (import) to get the privilege escalation happen. This is CVE-2026-102707, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
When VM.import decides to create a network that doesn't exist on this pool, the original bridge is meaningless to this pool. So make Network.create choose the bridge, and always create a managed network. This also eliminates the bypass of the bridge_blacklist. This is CVE-2026-102707, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
This is CVE-2026-102707, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
Signed-off-by: Ming Lu <ming.lu@citrix.com>
Add sanity check against the ref, object_uuid and uuid in the message XML body in PUT requests. These fields will be used to create symlinks on dom0's filesystem. This is CVE-2026-102708, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
This is CVE-2026-102708, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
…_id parameter A low-privilege user could use [task_id] parameter in some APIs to set other users' tasks failed. So now setting a task failed only if the task is owned by the user (caller). For a call or request, the check can be placed in the following 3 places alternatively: 1. Xapi_http.assert_credentials_ok if rbac_check is true in HTTP actions; 2. Server_helpers.do_dispatch if the call is a regular XenAPI call; 3. others by calling Xapi_http.with_context. This is a best-to-have place in case a call or request doesn't go to the 2 places above. This is CVE-2026-119779, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
…k failed This is CVE-2026-119779, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
A client certificate session has an empty auth_user_sid, the same as a root session. Check that it still can't own a task of root, neither via Server_helpers.can_own_task nor via the task-id header in Server_helpers.do_dispatch. This is CVE-2026-119779, part of XSA-530. Signed-off-by: Andrii Sultanov <andriy.sultanov@vates.tech> Reviewed-by: Ming Lu <ming.lu@citrix.com>
…ctives Add sanity check in the URLs, proxy username and password configured for YUM/DNF. This is CVE-2026-119780, part of XSA-530. Signed-off-by: Ming Lu <ming.lu@citrix.com> Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
This is XSA-529 / CVE-2026-102705, and XSA-530 / CVE-2026-102706, CVE-2026-102707, CVE-2026-102708, CVE-2026-119779, CVE-2026-119780. - CA-430076 (XSA-529 / CVE-2026-102705): Variable-time comparison of pool_secret - CA-430073 (XSA-530 / CVE-2026-102706): VM.create bypasses per-key RBAC on other_config and platform protected keys, and RBAC on HA restart priority and appliance - CA-430074 (XSA-530 / CVE-2026-102707): Network.create lets vm-admin reconfigure dom0 IP and HIMN listener - CA-430075 (XSA-530 / CVE-2026-102708): Symlink/directory creation traversal via PUT /messages body - CA-430077 (XSA-530 / CVE-2026-119779): Low-privilege user can force-fail arbitrary tasks via task_id parameter - CA-430810 (XSA-530 / CVE-2026-119780): Newline in repository_proxy_url injects yum/dnf .repo directives
…ET 10 guards, PowerShell typo (xapi-project#7398) Five SDK fixes found while porting the xenserver-samples (CP-314917) and comparing the SDK 26.22.0 release candidate with 26.16.1. Each commit is independent. Java CA-432633: Read Java exception parameters from JSON-RPC error data. Types.checkError read parameter i from errorData[i + 1], which is XML-RPC indexing. Under JSON-RPC, xapi sends the error code in message and only the parameters in data, so every typed exception's fields were shifted by one and the last one was always empty. For example, HostIsSlave.masterIPAddress was always empty, so Java clients couldn't follow a pool member's redirect to the coordinator. Includes TypesCheckErrorTest. CA-432675: Pass the Java XenAPIException message to IOException. Neither XenAPIException constructor called super(...), so getMessage() was null for every XenAPI error. CA-432902: Keep the order of sets in the Java SDK. Jackson read every Set into a HashSet, losing order. Results typed Set (Set String) were unusable: Caller.query_all_usage documents rows of [uuid; name_label; tokens; calls], highest tokens first, but Java returned the rows and their columns in hash order. host.apply_updates, pool.check_update_readiness and Diagnostics.network_stats return the same type. The client now reads sets as LinkedHashSets. Signatures don't change. Duplicate values within a row still collapse, because the result is still a set. Includes JsonRpcClientSetOrderTest. C# and PowerShell CA-432901: Test NET10_0_OR_GREATER in the C# and PowerShell SDK guards. The projects target net10.0 since the .NET 10 move, but 23 guards still tested NET8_0_OR_GREATER. The symbols are cumulative, so nothing compiles differently. CA-432900: Fix the spelling of "been" in the PowerShell cmdlets' "A default XenServer session has not been set." error. Testing The SDK was built from this branch in Docker, the way generate-and-build-sdks.yml builds it, including the Java Maven tests. It was then run against XenPretender, a XenServer 9 pool simulator: - A Java probe compared the released 26.16.1 SDK with this branch: - HostIsSlave.masterIPAddress: empty before, the coordinator's address after. - VmBadPowerState: vm=halted expected=running actual=(empty) before, vm=OpaqueRef:... expected=halted actual=running after. - getMessage(): null before, the error description after. - Caller.queryAllUsage(): rows highest tokens first, columns in order. - The built XenServer.dll was inspected: net10.0 contains the HttpClient/ActivitySource code, and net462/netstandard2.0 keep HttpWebRequest. - The xenserver-samples workflows (about 95 in each of C#, Python, Java, Go, PowerShell 7 and the xe CLI) passed against the simulator: 568 passed, 0 failed.
The descriptions of the driver multi-versioning classes, Host_driver and Driver_variant, and of their messages (select, deselect and rescan) started with "UNSUPPORTED". That text ends up in everything generated from the datamodel: the SDKs' documentation comments, the PowerShell cmdlets' Get-Help, and the published Management API reference. Driver multi-versioning is a supported, documented XenServer 9 feature: the XenServer 9 docs describe selecting and switching driver variants, and XenCenter has a Drivers tab for it. Remove the prefix and keep the rest of each description. Only descriptions change, so the schema hash and the API compatibility check are unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Daniel Lamping <daniel.lamping@citrix.com>
…ted (xapi-project#7396) The descriptions of the driver multi-versioning classes, Host_driver and Driver_variant, and of their messages (select, deselect and rescan) started with "UNSUPPORTED". That text ends up in everything generated from the datamodel: the SDKs' documentation comments, the PowerShell cmdlets' Get-Help, and the published Management API reference. Driver multi-versioning is a supported, documented XenServer 9 feature: the XenServer 9 docs describe selecting and switching driver variants, and XenCenter has a Drivers tab for it. Remove the prefix and keep the rest of each description. Only descriptions change, so the schema hash and the API compatibility check are unaffected.
Conflict in ocaml/idl/schematest.ml: last_known_schema_hash was recomputed for the merged datamodel (schema_minor_vsn 912 from master). Signed-off-by: Marcus Granado <marcus.granado@citrix.com>
cplaursen
approved these changes
Nov 13, 2026
GabrielBuica
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates feature/mig with the 75 commits that master has gained since the last merge, up to 0a1c669 (v26.24.0).
One of them is #7386. It moves the "Static analyzer for OCaml C stubs" check to ubuntu-24.04, because CodeChecker uses apt-key, which ubuntu 26.04 no longer has. Without that change, the check fails on every pull request against feature/mig. Because feature/mig is protected, this is a merge commit, not a rebase.
There was one conflict, in ocaml/idl/schematest.ml. last_known_schema_hash is recomputed for the merged datamodel, and schema_minor_vsn is master's 912. This is how #7346 handled the same conflict.
Tested: built every directory under ocaml/, with the format checks of ocaml/idl, ocaml/xapi and ocaml/tests, and ran the ocaml/idl and ocaml/tests suites: all pass (2435 tests), including the schema test with the new hash.