-
Notifications
You must be signed in to change notification settings - Fork 0
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
Private/edvint/static #1
Commits on Oct 4, 2022
-
Remove
Newtonsoft.Json.CH.dll
reference from PS SDKSigned-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 7a75d53 - Browse repository at this point
Copy the full SHA 7a75d53View commit details -
Use NuGet for
System.Management.Automation
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 200837e - Browse repository at this point
Copy the full SHA 200837eView commit details -
Remove redundant or useless properties in PS module manifest
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 779ca2a - Browse repository at this point
Copy the full SHA 779ca2aView commit details -
Merge pull request xapi-project#4806 from jameshensmancitrix/private/…
…jameshen/host_https_only CP-40752 Added CLI functionality for pool level setter and getter (https_only)
Configuration menu - View commit details
-
Copy full SHA for b180ec2 - Browse repository at this point
Copy the full SHA b180ec2View commit details -
Merge pull request xapi-project#4804 from psafont/old-certs
Revert "Add a fallback system for auth files belonging to RPMs"
Configuration menu - View commit details
-
Copy full SHA for bc71c05 - Browse repository at this point
Copy the full SHA bc71c05View commit details -
idl: update datamodel_lifecycle after tag
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 11e422a - Browse repository at this point
Copy the full SHA 11e422aView commit details -
xenopsd/xc: Print all information in Service_failed exceptions
This means that now xensource.log will contain the reason that produced these exceptions Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 6aae998 - Browse repository at this point
Copy the full SHA 6aae998View commit details -
CP-39744: simplify vm_platform.sanity_check parameters
The optional parameter for firmware served no purpose, and forced the addition of a unit parameter, remove both. This forces the unit-tests to use a particular firmware to run all tests, use Bios as the default. The firmware value is extracted in preparation of boot blocking depending on the firmware and the presence of vTPM Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 56925e2 - Browse repository at this point
Copy the full SHA 56925e2View commit details -
CP-39744: Block BIOS VMs with vTPM attached from booting
The Physical Presence Interface part of the vTPM specification is only implemented for UEFI guests, other functionality may be missing. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for bb67668 - Browse repository at this point
Copy the full SHA bb67668View commit details -
CP-40775: share function raising not done for vtpm exceptions
This makes it easy to track and link the removal of the function in the quality gate to promotion of the feature to a stable one. Also make raising the exception configurable so developers can easily disable the check and test changes around the functionality without having to recompile xapi. This is done by writing xapiflags=-ignore-vtpm-unimplemented in /etc/sysconfig/xapi and running xe-toolstack-restart Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 9c43b22 - Browse repository at this point
Copy the full SHA 9c43b22View commit details -
CA-370858: disallow VM exports with VTPMs attached
We're unable to serialize the data because the field for the contents is not exposed in the API and it's based on a secret, which can be dangerous once it's been implemented. Exports are exposed using an HTTP endpoint, this means it's an indirect operation and that other operations that use the feature will fail in extraneous ways in a non-instantaneous way. To avoid this the two methods that use it in xapi are changed as well (vm-export and VM cross-pool migrations). This makes the failure immediate and clear. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 2e3b83b - Browse repository at this point
Copy the full SHA 2e3b83bView commit details -
Merge pull request xapi-project#4807 from psafont/private/paus/print-…
…service-failures xenopsd/xc: Print all information in Service_failed exceptions
Configuration menu - View commit details
-
Copy full SHA for dba379d - Browse repository at this point
Copy the full SHA dba379dView commit details -
Merge pull request xapi-project#4796 from psafont/private/paus/nobios…
…-tpm CP-39744, CA-370858: Block actions depending on unimplemented VTPM functionality
Configuration menu - View commit details
-
Copy full SHA for 30f23a8 - Browse repository at this point
Copy the full SHA 30f23a8View commit details -
Merge pull request xapi-project#4800 from robhoes/open-uri
Add HTTPS support to Open_uri
Configuration menu - View commit details
-
Copy full SHA for 48cc148 - Browse repository at this point
Copy the full SHA 48cc148View commit details
Commits on Oct 5, 2022
-
CP-40753 host.set_https_only updates firewall using firewall_port_con…
…fig_script helper Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5fe7bc4 - Browse repository at this point
Copy the full SHA 5fe7bc4View commit details -
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for d283aa8 - Browse repository at this point
Copy the full SHA d283aa8View commit details -
Update powershell executable path in project debug configuration
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 6136002 - Browse repository at this point
Copy the full SHA 6136002View commit details -
CP-40753 Added change to the firewall-port script to modify the RH-Fi…
…rewall-1-INPUT chain Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0ac90b0 - Browse repository at this point
Copy the full SHA 0ac90b0View commit details -
Update Makefile (un)install targets
The two new libs need to be explicitly mentioned. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0b105da - Browse repository at this point
Copy the full SHA 0b105daView commit details -
Merge pull request xapi-project#4808 from jameshensmancitrix/private/…
…jameshen/host_https_only CP40753 Firewall updates when Host.set_https_only is called
Configuration menu - View commit details
-
Copy full SHA for eee52ae - Browse repository at this point
Copy the full SHA eee52aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6aaabbe - Browse repository at this point
Copy the full SHA 6aaabbeView commit details -
opam: Update Alpine deps for xapi
Changed dep for Alpine to correct xxhash package. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5f8b4b3 - Browse repository at this point
Copy the full SHA 5f8b4b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb13c31 - Browse repository at this point
Copy the full SHA eb13c31View commit details -
Set default value for
AllowAutoRedirect
inSession.cs
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for fba2bc7 - Browse repository at this point
Copy the full SHA fba2bc7View commit details -
Set OS condition for Powershell SDK debug configuration
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 8dd60f4 - Browse repository at this point
Copy the full SHA 8dd60f4View commit details
Commits on Oct 6, 2022
-
CP-40754 The firewall-port script returns true if port 80 is blocked …
…and false if it is closed, this is captured in set_https_only to update the DB based on the tate of the network not the requested setting should there be a failure Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 2e1385b - Browse repository at this point
Copy the full SHA 2e1385bView commit details -
CA-370140: shut down swtpm after qemu
Qemu sends a signal to swtpm to cleanly shut down the guest, this needs Qemu being shut down last Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 21de4bd - Browse repository at this point
Copy the full SHA 21de4bdView commit details -
Merge pull request xapi-project#4811 from jameshensmancitrix/private/…
…jameshen/host_https_only CP-40754 Update host.https_only field in dbsync based on firewall state
Configuration menu - View commit details
-
Copy full SHA for 42d4de9 - Browse repository at this point
Copy the full SHA 42d4de9View commit details -
xenopsd: add verify_cert param to VM.migrate
For the time being, only intra-pool migrations will have certificate checking turned on. The new parameter informs xenopsd about the choice. This only matters if an https URL is specified. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 930b311 - Browse repository at this point
Copy the full SHA 930b311View commit details
Commits on Oct 7, 2022
-
Switch VM.pool_migrate over to HTTPS
This switches the xenopsd-to-xenopsd connection over to HTTPS, if enabled in the config file (currently off by default). Socket keepalives do not work when stunnel is used, as the given fd is the local connection to stunnel, and are not set in HTTPS mode. This is fine, because the stunnel client is already set up with keepalives. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 3910474 - Browse repository at this point
Copy the full SHA 3910474View commit details -
Switch host.migrate_receive over to HTTPS
The host.migrate_receive call returns URLs for the sending host to use in its VM.migrate_send call. HTTPS URLs are returned based on the value of the config option. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for c30fc13 - Browse repository at this point
Copy the full SHA c30fc13View commit details
Commits on Oct 10, 2022
-
Merge pull request xapi-project#4782 from danilo-delbusso/private/dan…
…ilod/sdk CP-40402: Move C# and Powershell SDK Generation to .NET Standard 2.0 / .NET 6.0
Configuration menu - View commit details
-
Copy full SHA for 162efaa - Browse repository at this point
Copy the full SHA 162efaaView commit details
Commits on Oct 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4778c6d - Browse repository at this point
Copy the full SHA 4778c6dView commit details -
Use HTTPS when redirecting storage calls
The function is question redirects a local storage call to another host if the current host does not have access to the SR. This involves rewriting a localhost HTTP URL to a remote URL, which must be an HTTPS URL if storage migration is configured to use HTTPS. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 698f6e7 - Browse repository at this point
Copy the full SHA 698f6e7View commit details -
Use HTTP for local storage calls
Storage calls that are handled by the local host should always use HTTP, and not set up a connecting through stunnel. The SM URL that is passed to VM.migrate_send in the `dest` parameter, which comes from the return value of a call to host.migrate_receive, may be an HTTPS URL to the localhost, which needs to be rewritten upon receiving it. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for da27653 - Browse repository at this point
Copy the full SHA da27653View commit details -
Do not wait for stunnel disconnect
When starting a mirroring process for a disk as part of a storage migration, xapi establishes the connection to the destination, but hands it over to tapdisk to do the actual mirroring over NBD. It is crucial that xapi just hands over the file descriptor and then continues with other business, without waiting for the connection to finish. This is how it works for TCP connections now. When switching to TLS connections, xapi starts an stunnel process as part of the connection setup, and hands over the stunnel fd to tapdisk. By default, this functionality then waits for stunnel to finish after the connection is eventually broken, thus introducing the unwanted blocking. We fix this by telling stunnel to disconnect, but not wait for this to actually happen. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 65f95bd - Browse repository at this point
Copy the full SHA 65f95bdView commit details
Commits on Oct 12, 2022
-
idl/json_backend: decrease verbosity in code
Add shorter synonyms for creating paths and writing files Add empty mli since it should not export any functions Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 42559c8 - Browse repository at this point
Copy the full SHA 42559c8View commit details -
idl/json_backend: Use yojson for generating files
An ad-hoc solution was used until now. The new code generates compact json that is equivalent to the previous output. I've verified this using jq. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 81c6fbd - Browse repository at this point
Copy the full SHA 81c6fbdView commit details -
idl/json_backend: modularise serialization
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e70bd6e - Browse repository at this point
Copy the full SHA e70bd6eView commit details -
idl/gen_json: add modern xapi releases into the release list
Since xapi 1.249, changes have been attached to xapi versions instead of just a xenserver release. Surface this information to the data that gets used to populate the public documentation webpage Currently it uses a locked API, which might not be maintained in the future, and release dates are not populated which would be good for users to know Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5143cc6 - Browse repository at this point
Copy the full SHA 5143cc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d613b5f - Browse repository at this point
Copy the full SHA d613b5fView commit details -
Named arguments in Xapi_vm_migrate.migrate_with_retry
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 7120b89 - Browse repository at this point
Copy the full SHA 7120b89View commit details -
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for a50df66 - Browse repository at this point
Copy the full SHA a50df66View commit details -
Merge pull request xapi-project#4816 from robhoes/https-migration
Migration over HTTPS
Configuration menu - View commit details
-
Copy full SHA for 03d7908 - Browse repository at this point
Copy the full SHA 03d7908View commit details -
Remove unused Http_proxy.http_proxy
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for f0c1b5b - Browse repository at this point
Copy the full SHA f0c1b5bView commit details -
Everything except a test already used the "fast path", so the slow version was virtually unused (and slow). Also removes some other dead code. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for bc2ff45 - Browse repository at this point
Copy the full SHA bc2ff45View commit details -
CA-368579: Limit concurrent connections with semaphore
To add some protection against overloading the server, and running out of file descriptors and other resources, the number of concurrent connections is now limited to 800 by default. Connections coming in when the limit has been reached are put on hold, and not accepted until another connection finishes. There are three separate buckets for connections to the main unix socket, the client-cert (unix) socket and the TCP socket. This also add some more debug logging when connections are accepted and disconnected. This is disabled by default along with other "http" logs, but can be enabled in the conf file. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for f5406c1 - Browse repository at this point
Copy the full SHA f5406c1View commit details -
CA-368579: Receive timeout for TCP connections when first reading HTT…
…P headers When a connection to xapi's TCP socket is established, no authentication has taken place until the HTTP request has been received. We need to treat these connections with some more care until then. To protect against unauthenticated clients holding connections open without actually making any calls, a read timeout (10 seconds by default) is introduced for every read from the socket until all headers have been read. An HTTP 408 "request timeout" response is returned and the connection broken if a timeout occurs. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 440d0ab - Browse repository at this point
Copy the full SHA 440d0abView commit details -
CA-368579: Total timeout for receiving HTTP headers
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5629b37 - Browse repository at this point
Copy the full SHA 5629b37View commit details -
CA-368579: Maximum header length
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 3bd6856 - Browse repository at this point
Copy the full SHA 3bd6856View commit details -
http-svr: switch from select to epoll
The select system call is inefficient and makes it impossible for a process to use more than 1024 file descriptors. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5187883 - Browse repository at this point
Copy the full SHA 5187883View commit details -
Merge pull request xapi-project#4817 from robhoes/http
CA-368579: Mitigations against DoS attacks by unauthenticated clients
Configuration menu - View commit details
-
Copy full SHA for 05c687a - Browse repository at this point
Copy the full SHA 05c687aView commit details
Commits on Oct 13, 2022
-
CA-370947 increase robustness of with-vdi script
/opt/xensource/debug/with-vdi is a script that create a shell environment with a VDI attached, typically to execute a shell. It is not called during normal operations but can be used Increase the robustness of the script: * Use bash * Exit on errors by default * Improve string quoting * Move to $() command substitution Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e664f1d - Browse repository at this point
Copy the full SHA e664f1dView commit details
Commits on Oct 17, 2022
-
Merge pull request xapi-project#4819 from lindig/CA-370947
CA-370947 increase robustness of with-vdi script
Configuration menu - View commit details
-
Copy full SHA for 39f637c - Browse repository at this point
Copy the full SHA 39f637cView commit details -
CA-364194: Add a comment on static-vdis for a timeout enhancement
Because python 2.7 is being used the call to the standard library doesn't support a timeout parameter. In the future this will be useful to protect the script from hanging indefinitely when trying to attach network volumes Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for bf22528 - Browse repository at this point
Copy the full SHA bf22528View commit details -
CA-364194: add timeout parameter to script callers in xapi
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 98b05bf - Browse repository at this point
Copy the full SHA 98b05bfView commit details -
CA-364194: Allow creation of statefiles to time out
Currently enabling HA can stall because the GFS2 calls when adding the HA statefile might stall indefinitely when there are connection issues Now xapi waits a minute before failing, signalling the user that something has gone awry Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 481611b - Browse repository at this point
Copy the full SHA 481611bView commit details
Commits on Oct 18, 2022
-
CA-370578 use subsystemId in NVidia GPU matching
So far, we identified a GPU by its deviceId; this turns out to be ambiguous and vgpuConfig.xml may contain multiple GPUs with identical deviceId, causing us to use more vGPU types than we can actually support. This patch introduces a new abstract type "gpu" in the VENDOR signature such that its Nvidia instance can use more information to identify a GPU. When matching a GPU found on the PCI bus with GPUs listed in vgpuConfig.xml we use: deviceId match and subsystemId match or deviceId match and subsystemId in vgpuConfig is 0 subsystemId=0 is used by Nvidia as a wildcard and thus subsystemId=0 is ignored during a match. The matching for other vendors remains unchanged (and is still based on deviceId). Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for eb855fb - Browse repository at this point
Copy the full SHA eb855fbView commit details -
maintenance: explicitely declare direct dependencies
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 235cc40 - Browse repository at this point
Copy the full SHA 235cc40View commit details -
ci: add xapi-log and xapi-open-uri
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e1b5e71 - Browse repository at this point
Copy the full SHA e1b5e71View commit details -
idl/json_backend: Process unreleased versioned releases
These releases happen when an API change has been introduced and gen_lifecycle is executed before tagging. They are in the form of 22.11.0-next. For ordering the ints are used like before, and the string is only used to compare if the integers are equal. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 29114e0 - Browse repository at this point
Copy the full SHA 29114e0View commit details -
ocaml/idl: make gen_lifecycle compatible with gitless spec building
There were two problems here: the version was not being branded int othe binary, producing lifecycle changes with 0.0.dev. and the parser for the version was not detecting correctly the rpm versions because these changed the dashes for dots. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 052b30c - Browse repository at this point
Copy the full SHA 052b30cView commit details -
idl/json_backend: order releases from latest to oldest
Browsing the changes in the latest version is usually more useful than the first version Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 36498f5 - Browse repository at this point
Copy the full SHA 36498f5View commit details
Commits on Oct 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2da6be4 - Browse repository at this point
Copy the full SHA 2da6be4View commit details -
Merge pull request xapi-project#4789 from liulinC/private/linl/dev
CA-370575: [XSI-1310] Driver disks / supp packs applied at host
Configuration menu - View commit details
-
Copy full SHA for 61a46e1 - Browse repository at this point
Copy the full SHA 61a46e1View commit details -
Merge pull request xapi-project#4826 from lindig/private/christianlin…
…/CA-370578 CA-370578 use subsystemId in NVidia GPU matching
Configuration menu - View commit details
-
Copy full SHA for b6f17fd - Browse repository at this point
Copy the full SHA b6f17fdView commit details
Commits on Oct 20, 2022
-
CA-370082: Block multiple definitions of certificate-chain in xe cli
User were allowed to define more than one certificate-chain when installing a host certificate. The implementation picked the first one, ignoring successive ones. This could lead to a situation where the host served a certificate with certificates missing in their chain of trust, making it unverifiable. Instead detect the situation and block the operation immediately. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5d1601c - Browse repository at this point
Copy the full SHA 5d1601cView commit details -
maintenance: avoid traversing lists twice when reading cli params
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 1f2023a - Browse repository at this point
Copy the full SHA 1f2023aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60856b1 - Browse repository at this point
Copy the full SHA 60856b1View commit details
Commits on Oct 21, 2022
-
exit with error if add_vswitch_port fails
Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 7605423 - Browse repository at this point
Copy the full SHA 7605423View commit details
Commits on Oct 24, 2022
-
Merge pull request xapi-project#4828 from jameshensmancitrix/private/…
…jameshen/xsi-1289 CA-369446
Configuration menu - View commit details
-
Copy full SHA for 91f0d15 - Browse repository at this point
Copy the full SHA 91f0d15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb0e50 - Browse repository at this point
Copy the full SHA 3bb0e50View commit details -
Revert
uuidx
rename ingen_powershell_binding.ml
Breaks PS SDK generation as the mentions were referring to C# code Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 191c18e - Browse repository at this point
Copy the full SHA 191c18eView commit details -
Merge pull request xapi-project#4831 from danilo-delbusso/private/dan…
…ilod/uuid-powershell Revert `uuidx` rename in `gen_powershell_binding.ml`
Configuration menu - View commit details
-
Copy full SHA for 6cf49b2 - Browse repository at this point
Copy the full SHA 6cf49b2View commit details -
xapi-idl: make storage-test be part of a package
Without it packages that don't depend on xapi-idl will fail trying to compile it Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 11cdb69 - Browse repository at this point
Copy the full SHA 11cdb69View commit details -
This allows to build and test the packages when pinning them in an opam switch Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0f0128e - Browse repository at this point
Copy the full SHA 0f0128eView commit details
Commits on Oct 25, 2022
-
xenopsd/dbgring: don't mention xenmmap dependency
There is a mismatch on how this library is called between the xenctrl library used in opam and the one produced by xen, don't mention it for the time being. the names are xenctrl.xenmmap and xenmmap respectively Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 6d215b8 - Browse repository at this point
Copy the full SHA 6d215b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75c2f04 - Browse repository at this point
Copy the full SHA 75c2f04View commit details -
CA-371759: check certificates in xsh
This program is used to sync blobs across hosts in a pool. It should verify certificates, as for other TLS connections within a pool. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 22ea0de - Browse repository at this point
Copy the full SHA 22ea0deView commit details -
Merge pull request xapi-project#4834 from robhoes/xsh
CA-371759: check certificates in xsh
Configuration menu - View commit details
-
Copy full SHA for 75812e6 - Browse repository at this point
Copy the full SHA 75812e6View commit details
Commits on Oct 26, 2022
-
CP-40490: Require --force parameter to destroy VTPMs
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0c9e8eb - Browse repository at this point
Copy the full SHA 0c9e8ebView commit details -
xapi-cli-server/cli_ops: reuse --force message
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 919d4ae - Browse repository at this point
Copy the full SHA 919d4aeView commit details -
xapi: group import error and cause into the same line
Using this more compact representation allows to see more clearly what can be the causes for raising an generic import exception while grepping Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for c1a1652 - Browse repository at this point
Copy the full SHA c1a1652View commit details -
CP-39134: xapi-guard: do not hardcode rpc function - allow for unit t…
…esting Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for bed6893 - Browse repository at this point
Copy the full SHA bed6893View commit details -
CP-39134: xapi-guard: separate code into own library for testability
Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 041d30b - Browse repository at this point
Copy the full SHA 041d30bView commit details -
CP-39134: basic unit test for xapi-guard
Check that basic API calls get forwarded Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for d48358f - Browse repository at this point
Copy the full SHA d48358fView commit details -
CP-39134: xapi-guard: add unit tests for bad values
Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for a6c524a - Browse repository at this point
Copy the full SHA a6c524aView commit details -
CP-39134: varstore-guard: use inotify to wait for the apperance of th…
…e socket This is the socket created by xapi-guard itself through Conduit, but Conduit doesn't currently have an API to notify us when the socket got created and listen()-ed on. And we don't want to return too early to our caller (the unit test or xenopsd) since they may get an ECONNREFUSED if they try to connect too early. Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 092c78d - Browse repository at this point
Copy the full SHA 092c78dView commit details -
Maintenance: xapi-guard: use Lwt.Syntax instead of Lwt.Infix
Instead of `foo () >>= fun result -> ...` use `let* result = foo () in ...`. Instead of `foo () >|= fun result -> ...` use `let+ result = foo () in ...`. Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 21152b9 - Browse repository at this point
Copy the full SHA 21152b9View commit details -
CP-39134: add shutdown unit test
Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e3eb8c7 - Browse repository at this point
Copy the full SHA e3eb8c7View commit details -
Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 546f89d - Browse repository at this point
Copy the full SHA 546f89dView commit details -
xapi-guard/test: Count file descriptors
The test is commented out because under certain conditions which couldn't be replicated at the end there are _less_ file descriptors that at the beginning. Signed-off-by: Edwin Török <edvin.torok@citrix.com> Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for fbc216f - Browse repository at this point
Copy the full SHA fbc216fView commit details -
Merge pull request xapi-project#4830 from psafont/private/paus/destro…
…force CP-40490: Require --force parameter to destroy VTPMs
Configuration menu - View commit details
-
Copy full SHA for d45f4b7 - Browse repository at this point
Copy the full SHA d45f4b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8afaa0a - Browse repository at this point
Copy the full SHA 8afaa0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fd731c - Browse repository at this point
Copy the full SHA 1fd731cView commit details -
CP-41033: install XenAPI to Python 3
Signed-off-by: Mark Syms <mark.syms@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 51811a3 - Browse repository at this point
Copy the full SHA 51811a3View commit details -
CP-41033: update XenAPIPlugin for Python3
Signed-off-by: Mark Syms <mark.syms@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for c340514 - Browse repository at this point
Copy the full SHA c340514View commit details
Commits on Oct 27, 2022
-
idl/ocaml_backend: do not generate empty docstrings
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for b35ddc1 - Browse repository at this point
Copy the full SHA b35ddc1View commit details -
idl/gen_server: Remove custom functions
These can be replaced by functions in the standard library Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for b4f55d3 - Browse repository at this point
Copy the full SHA b4f55d3View commit details -
CA-352073: gen_server: Serialize lists in [ ... ] form
In this form is more difficult to allow a variable number of elements then using .. :: .. :: .. so it's easier to spot possible issues around them When a call has default arguments it's not possible to change the form as these are optional arguments and make the list variable in length Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 2df768f - Browse repository at this point
Copy the full SHA 2df768fView commit details -
CA-352073: Prepare to reuse defaults unmarshalling code
This will allow this code to generate a binding not only for the value with the unmarshalled value, but for the rpc value as well. This is needed to be able to explicitely define the parameter list with the default values embedded into the rbac check Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for f39d142 - Browse repository at this point
Copy the full SHA f39d142View commit details -
CA-352073: Ensure all serialized calls can pass rbac checks
Explicitly define a list of tuples with names and values so the rbac checks can never fail at runtime on differing lengths for these. Instead now the check will fail at build time. Calls with defaults allowed the values list to be shorter as they never bothered to contain the default values. Now the default values are collected to match all the names of the parameters. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for b57f70c - Browse repository at this point
Copy the full SHA b57f70cView commit details -
Merge pull request xapi-project#4836 from MarkSymsCtx/CP-41033
CP-41033: install XenAPI for Python3
Configuration menu - View commit details
-
Copy full SHA for e3511f7 - Browse repository at this point
Copy the full SHA e3511f7View commit details
Commits on Oct 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 406251e - Browse repository at this point
Copy the full SHA 406251eView commit details -
CP-41033: further updates to XenAPIPlugin for Python3
Signed-off-by: Mark Syms <mark.syms@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 52a29bb - Browse repository at this point
Copy the full SHA 52a29bbView commit details
Commits on Oct 31, 2022
-
Merge pull request xapi-project#4838 from MarkSymsCtx/CP-41033
CP-41033: further updates to XenAPIPlugin for Python3
Configuration menu - View commit details
-
Copy full SHA for 3e4a378 - Browse repository at this point
Copy the full SHA 3e4a378View commit details
Commits on Nov 2, 2022
-
CA-342527: Remove unnecessary list traversals on rbac.check
Change the args for Rbac.check to be a pair of lists to be a list of pairs. This removes quite a few error conditions, simplifies the code and reduces the CPU needs of this code. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0e5e9ef - Browse repository at this point
Copy the full SHA 0e5e9efView commit details -
xapi/rbac: Remove the non-"efficient" code path
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0cdd2bb - Browse repository at this point
Copy the full SHA 0cdd2bbView commit details -
xapi/rbac_audit: do not audit rrd_updates
It's the same call as get_rrd_updates, which is ignored Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for f29a219 - Browse repository at this point
Copy the full SHA f29a219View commit details -
CA-371780: Reduce cost of merge_new_dss
xcp-rrdd spends 17% of the time in this function, comparing strings using polymorphic compare. Convert current_dss to a set so querying for membership isn't as costly Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0a6cb0e - Browse repository at this point
Copy the full SHA 0a6cb0eView commit details -
Remove unneeded functions, simplify sexpr serialization Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 2fb2d2e - Browse repository at this point
Copy the full SHA 2fb2d2eView commit details -
CA-372128: halve key lookup time
No need to check whether a key exists and then fetch it, just fetch it Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 3eaad70 - Browse repository at this point
Copy the full SHA 3eaad70View commit details -
CA-372128: avoid stdlib.compare
Instead use specialized comparison functions which have less overhead Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for ba4ed44 - Browse repository at this point
Copy the full SHA ba4ed44View commit details -
CA-372128: Avoid extra comparisons in db_cache_types
Previous code tried to avoid creating memory garbage by trying comparing the old value of a map with the new when updating it. This unfortunately was done using structural equality instead of physical (its memory location). This dominated the runtime of xapi under some conditions. Instead of trying to optimize use directly the standard library which does the right thing (physical equality), this reduces CPU cost by half in systems with thousands of VMs Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 53d035b - Browse repository at this point
Copy the full SHA 53d035bView commit details -
The flag was only turning off the debug message but not the code itself. Indentation now makes it very clear that this is wrong, so lets fix it. Currently this workaround (from the 6.x era is still on in the .conf file, but at some point we may want to turn it off) Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 3b6613b - Browse repository at this point
Copy the full SHA 3b6613bView commit details -
CP-40404: Add C# NuGet specs in its csproj
This edits the project file so that a NuGet package is generated at build time. To achieve this this also: - Adds an icon for the NuGet package - Adds a stripped down version of the `README` (`README-NuGet`) that is shown when the package is viewed through a NuGet package manager. The `README` outputs as a Markdown file because it is a requirement. NuGet.org-like managers are smart enough to read the current format properly, without actually using Markdown syntax. - Modify `windows-line-endsings.sh` so that it doesn't corrupt the package icon. - Updated references of Citrix Hypervisor in the README back to XenServer. Citrix references are still present. In fact, they're also present in other SDKs (see Java for instance) Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 420fa16 - Browse repository at this point
Copy the full SHA 420fa16View commit details -
CP-40404: Move C# SDK samples to .NET 6.0
Project wouldn't build otherwise Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 7b51a2c - Browse repository at this point
Copy the full SHA 7b51a2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bf5f0d - Browse repository at this point
Copy the full SHA 3bf5f0dView commit details
Commits on Nov 3, 2022
-
CP-40190: vTPM - Fix xenopsd to indicate correct state file format to…
… swtpm-wrapper. Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for f6ac1ba - Browse repository at this point
Copy the full SHA f6ac1baView commit details -
Merge pull request xapi-project#4835 from psafont/private/paus/rbaxx
CA-352073, CA-371780, CA-372128: reduce overhead in xapi database and rbac checks; and in xcp-rrdd
Configuration menu - View commit details
-
Copy full SHA for 3cbd112 - Browse repository at this point
Copy the full SHA 3cbd112View commit details -
CP-40747: sparse-dd: remove unused legacy ssl args
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 73579e7 - Browse repository at this point
Copy the full SHA 73579e7View commit details -
CP-40747: Add certificate checking options to sparse_dd and vhd-tool
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for bbaa46d - Browse repository at this point
Copy the full SHA bbaa46dView commit details -
CP-40747: Supply verify args to sparse_dd
Currently, all callers of sparse_dd still set verfification off, so there is no change in behaviour yet. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for c092716 - Browse repository at this point
Copy the full SHA c092716View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ac0c45 - Browse repository at this point
Copy the full SHA 2ac0c45View commit details -
Merge pull request xapi-project#4842 from robhoes/sparse_dd_verify
Add certificate checking to sparse-dd
Configuration menu - View commit details
-
Copy full SHA for fdcce6a - Browse repository at this point
Copy the full SHA fdcce6aView commit details
Commits on Nov 7, 2022
-
CP-33044 define attach/detach IDL calls for gpumon
We want to tell gpumon to attach and detach its NVML library. Extend the RPC interface defined for gpumon with new calls. Futhermore, generate the gpumon-cli to exercise these operations from the command line. This requires a change in xapi.spec: %files -n message-switch %{_unitdir}/message-switch.service %{_sbindir}/message-switch %{_sbindir}/message-cli /usr/bin/gpumon-cli %config(noreplace) /etc/message-switch.conf /etc/xensource/bugtool/message-switch/stuff.xml /etc/xensource/bugtool/message-switch.xml Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 1cb3baf - Browse repository at this point
Copy the full SHA 1cb3bafView commit details
Commits on Nov 8, 2022
-
CA-371780: Port xcp-rrdd tests to alcotest
Provides a far readable output than ounit The strangest thing going around is the change from strings to datasources, the equality comparison still happens only with their names as using Stdlib.(=) fails Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 057ecf0 - Browse repository at this point
Copy the full SHA 057ecf0View commit details -
CA-371780: Reduce overheads in update_rrdds
This function had quadratic costs with all the lists it was using. On top of that all three types of owned datasources were processed in a different way, especially the VMs, which where map from a list of active VMs instead of the owned data sources Further work is needed move collect the datasources into the appropriate datastructure instead of in this function, and extend the datastructures into the used functions isntead of converting them to lists Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 71e8b4e - Browse repository at this point
Copy the full SHA 71e8b4eView commit details
Commits on Nov 14, 2022
-
CP-40823 Edited Vdi.t in xapi/storage_impl.ml to record vm
The change to the structure of the Vdi module allows for the vm associated with a dp on a vdi to be recorded. In the calls DP.destroy and VDI.destroy, a blank quote was given as no vm was available, this has now been remedied by recording and querying this record so there is a valid vm when calling SMAPIv3 interfaces. Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 3fbe94d - Browse repository at this point
Copy the full SHA 3fbe94dView commit details -
CP-40823 Created tests to the modules in storage_impl
Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e2ca18f - Browse repository at this point
Copy the full SHA e2ca18fView commit details -
Merge pull request xapi-project#4832 from jameshensmancitrix/private/…
…jameshen/vdi-destory CP-40823 Corrected blank vm in DP.destroy and VDI.destroy functions
Configuration menu - View commit details
-
Copy full SHA for f709cfd - Browse repository at this point
Copy the full SHA f709cfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 751163d - Browse repository at this point
Copy the full SHA 751163dView commit details -
CP-41028: xapi_services: remove unused module Local
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 7d59d7f - Browse repository at this point
Copy the full SHA 7d59d7fView commit details -
CP-41028: Force callers of transport_of_url to specify verify_cert
Currently, certificate verification is hardcoded off inside this helper function, which is used mostly in storage migration. So far, this parameter has been effectively unused, since the relevant code path use plain HTTP connections. Now that we will start using HTTPS everywhere, verification needs to be controlled and explicitly configured higher up. The value of verify_cert has not yet been modified, so there is no functional change yet. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e1d2fb5 - Browse repository at this point
Copy the full SHA e1d2fb5View commit details -
CP-41028: Refactor rpc function creation for storage migration
The code that constructs rpc functions has been moved to Storage_utils and extended with options to turn on certificate checking of the remote server. The following commits will set those parameters to the right values depending on whether the storage migration takes place within a pool, or cross pool. Also removed the use of the term "local" around this code, as in some cases these weren't actually used for host-local connections. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 4a921c7 - Browse repository at this point
Copy the full SHA 4a921c7View commit details -
CP-41028: Add and use verify_dest option to DATA.MIRROR.start and DAT…
…A.copy(_into) This option controls whether or not to verify the certificate of the remote server. This is enabled only for calls (as part of storage migration) within a pool at the moment. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 3acce12 - Browse repository at this point
Copy the full SHA 3acce12View commit details -
CP-41028: Store and use verification mode in storage migration state
When starting a storage copy or mirror operation, the call now comes with a verify_dest parameter, indicating whether the remote server's certificate must be verified when connecting to it. These calls return an ID for the operation, which is performed asynchronously. Any following calls regarding the same operation, e.g. to stop or cancel, only take this ID as an argument, but may require new connections to the remote. For this reason, a state record with connection details is maintained for every operation. This commit adds the verify_dest parameter to this state, and to all the places in calls that use the state to make connections. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5fe73c9 - Browse repository at this point
Copy the full SHA 5fe73c9View commit details -
CP-41028: Add and use verify_dest option to SR.update_snapshot_info_src
Similar to DATA.MIRROR.start and DATA.copy(_into). Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 8f95af5 - Browse repository at this point
Copy the full SHA 8f95af5View commit details -
CP-41028: xenopsd: pass verify_cert to Xcp_client for remote connection
This is used to export VM metadata to another host during live migration. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 61c5bc4 - Browse repository at this point
Copy the full SHA 61c5bc4View commit details
Commits on Nov 15, 2022
-
CP-40190: Prevent SWTPM from filling dom0 root partition
Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0373161 - Browse repository at this point
Copy the full SHA 0373161View commit details -
CP-41028: Use Stunnel_client in xapi, not in xenopsd
...to decide whether to use certificate checking or not. This module uses a local ref to determine whether checking is enabled on the host. In xapi, this ref is set from a file on startup, and after that it is updated if checking is enabled/disabled through the API. Xenopsd currently does not initialise the ref, so checking is always off. We could initialise the ref on startup, like in xapi, but then xenopsd still won't get updates if the host-level switch is flipped. Instead, let xapi worry about the host-level state, by querying Stunnel_client, and tell xenopsd exactly what to do. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for c9634aa - Browse repository at this point
Copy the full SHA c9634aaView commit details -
CP-41028: xenopsd: consistently use verify_dest (not _cert) for Boole…
…an values We use `verify_dest` to simply indicate whether to verify certicates or not. The name `verify_cert` is used for the more complex type that includes the CA path and SNI, as defined in the Stunnel module. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e2e9a9e - Browse repository at this point
Copy the full SHA e2e9a9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a72998 - Browse repository at this point
Copy the full SHA 5a72998View commit details -
Merge pull request xapi-project#4845 from robhoes/crosscheck
CP-41028: Enforce certificate checking for intra-pool storage migration connections
Configuration menu - View commit details
-
Copy full SHA for bb38ada - Browse repository at this point
Copy the full SHA bb38adaView commit details -
CP-40823 Amended logging for the new functions
Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 1ebc87a - Browse repository at this point
Copy the full SHA 1ebc87aView commit details -
xenopsd: define uncaught-exception handler
This logs the exception and backtrace if the program exits with an uncaught exception. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 652e46c - Browse repository at this point
Copy the full SHA 652e46cView commit details -
Merge pull request xapi-project#4846 from jameshensmancitrix/private/…
…jameshen/vdi-destory
Configuration menu - View commit details
-
Copy full SHA for b373061 - Browse repository at this point
Copy the full SHA b373061View commit details -
CA-369444: Ensure xenopsd still starts if VM state upgrade fails
There may be a problem with some VMs, but we must always let xenopsd start. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for def684e - Browse repository at this point
Copy the full SHA def684eView commit details -
Merge pull request xapi-project#4847 from robhoes/upgrade-state
CA-369444: Ensure xenopsd still starts if VM state upgrade fails
Configuration menu - View commit details
-
Copy full SHA for f4bbe7a - Browse repository at this point
Copy the full SHA f4bbe7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b164fd - Browse repository at this point
Copy the full SHA 9b164fdView commit details
Commits on Nov 16, 2022
-
CA-371419: Always log exceptions when responding with 500 Internal Error
By default, logs from the http server are supressed, because it would log far too much. However, it would be valuable to always log the exception that has led to a 500 response, because this error condition is often due to a bug. Logging for these cases is done under a separate name, which is enabled by default. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for eab28b1 - Browse repository at this point
Copy the full SHA eab28b1View commit details -
Merge pull request xapi-project#4844 from lindig/private/christianlin…
…/CP-33044 CP-33044 define attach/detach IDL calls for gpumon
Configuration menu - View commit details
-
Copy full SHA for 67353c5 - Browse repository at this point
Copy the full SHA 67353c5View commit details -
Merge pull request xapi-project#4848 from robhoes/log500
CA-371419: Always log exceptions when responding with 500 Internal Error
Configuration menu - View commit details
-
Copy full SHA for 34ec94f - Browse repository at this point
Copy the full SHA 34ec94fView commit details
Commits on Nov 17, 2022
-
CA-369690: Prioritize loglines when backing up RRDs
By default xcp-rrdd does not log debug lines, elevate two messages so it's easier to know when this operation starts happening and when it fails. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e56cf2e - Browse repository at this point
Copy the full SHA e56cf2eView commit details -
CA-369690: Reduce logging produced by xmlrpc_client
Two loglines per call removed: one is not really useful since the first logline already contains the most important information about the stunnel configuration and the one about the cache is not important as the code is known to work as intended. The main logline about stunnel has been changed to make it obvious there has been a change in the area about logging when triaging with logs Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 9bb5ea7 - Browse repository at this point
Copy the full SHA 9bb5ea7View commit details -
Debug: remember previous log names per thread in a stack
The module ThreadLocalTable uses a Map data structure to keep track of the name to use for a thread in the logs. A name is normally registered through a call to `Debug.with_thread_associated`, soon after a thread is created. However, each time a new context is created through a function like `Server_helpers.exec_with_new_task`, `Debug.with_thread_associated` is called as well, which then overwrites the name for the current thread. When the inner task exits, the old name is not restore, but simply left blank. The result is the useful information end up missing from the first part of log lines. For example. we see this [error||128 ||xenops] rather than [error||128 |xapi events D:4f8a44d7e8d1|xenops] In the past, there was a Hashtbl instead of a Map here, which does remember all previous bindings in the table. The Hashtbl was removed in order to avoid taking the lock in `find`. This patchs adds a list inside each Map value to model a stack, which behaves like Hashtbl, but in a pure functional way. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 169734e - Browse repository at this point
Copy the full SHA 169734eView commit details -
Do not log out session in xapi events loop to re-register VMs
The session.logout was used to interrupt the call to `event.from`, so that is can be called again with a new list of VMs to watch, in case a VM started, stopped etc. The trouble is, that each such re-register event led to SESSION_INVALID being logged, with stack trace, three times. This caused many people looking at the logs unnecessary worries, while in reality the behaviour is completely normal. This replaces the register mechanism by adding the event loop's task into the watch list for `event.from`, and injecting an event on the task to interrupt the call and recompute the VM list. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 65b6012 - Browse repository at this point
Copy the full SHA 65b6012View commit details
Commits on Nov 18, 2022
-
CP-41213: swtpm-wrapper should not fiddle with cgroups
Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0b37358 - Browse repository at this point
Copy the full SHA 0b37358View commit details -
Merge pull request xapi-project#4851 from robhoes/event-logout
Eliminate unnecessarily scary log lines
Configuration menu - View commit details
-
Copy full SHA for 8f4c4e5 - Browse repository at this point
Copy the full SHA 8f4c4e5View commit details -
CA-366735: Silence warning about duplicate sources
This is generating a lot of spam which is interfering with testing. blocking releases. The root cause of duplication will be targeted in another PR Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 1623639 - Browse repository at this point
Copy the full SHA 1623639View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ac2c9e - Browse repository at this point
Copy the full SHA 0ac2c9eView commit details -
Enable HTTPS for storage migration on the source
This is currently set on the destination, in host.migrate_receive. However, all recent changes to make HTTPS migration work were on the source host. Migration is allowed from older to newer software versions, so it is possible that the destination is HTTPS capable, while the source is not. This may result in the source receiving HTTPS URLs, which is cannot handle, breaking this upgrade case. Instead, let the source decide whether to switch to HTTPS or not, depending on the config key (to be made the default later). Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 7e440d6 - Browse repository at this point
Copy the full SHA 7e440d6View commit details -
Merge pull request xapi-project#4852 from robhoes/https-upgrade
Enable HTTPS for storage migration on the source host
Configuration menu - View commit details
-
Copy full SHA for 36b59bc - Browse repository at this point
Copy the full SHA 36b59bcView commit details
Commits on Nov 21, 2022
-
CP-40404: Do not specify assembly info in
AssemblyInfo.cs
This allows the MSBuild CLI to specify assembly version at build time Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for c5ebeb8 - Browse repository at this point
Copy the full SHA c5ebeb8View commit details -
CP-40404: Build C# SDK to .NET Framework 4.5
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for ec1517f - Browse repository at this point
Copy the full SHA ec1517fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58316b7 - Browse repository at this point
Copy the full SHA 58316b7View commit details
Commits on Nov 23, 2022
-
CA-372785 make with-vdi more robust
The vbd-plug call in with-vdi may fail after a VBD was already created. The errexit option would cause the script to fail before the VBD would be destroyed. So make sure we destroy the VBD if vbd-plug fails. Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0256bea - Browse repository at this point
Copy the full SHA 0256beaView commit details -
Merge pull request xapi-project#4855 from lindig/private/christianlin…
…/CA-372785 CA-372785 make with-vdi more robust
Configuration menu - View commit details
-
Copy full SHA for cb7a8c9 - Browse repository at this point
Copy the full SHA cb7a8c9View commit details
Commits on Nov 24, 2022
-
CP-40404: Replace deprecated module manifest member with
RootModule
`ModuleToProcess` has been deprecated Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 45280be - Browse repository at this point
Copy the full SHA 45280beView commit details -
Fix missing
Reference
value in PS SDK cmdlets outputSigned-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 4256e16 - Browse repository at this point
Copy the full SHA 4256e16View commit details
Commits on Nov 25, 2022
-
Modify Xenctrlext to use its own libxc handle
Xenopsd's _H() in xenctrlext_stubs blindly reaches sideways into the internals of a different libray (specifically, Xenctrl from upstream Xen). This violates many API/ABI rules. It also breaks now that upstream Xen has switched Xenctrl to using a Custom block. Have Xenctrlext open its own libxc handle, to disentangle it from Xenctrl. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 91ff68f - Browse repository at this point
Copy the full SHA 91ff68fView commit details
Commits on Nov 28, 2022
-
Merge pull request xapi-project#4858 from andyhhp/xcext
Modify Xenctrlext to use its own libxc handle
Configuration menu - View commit details
-
Copy full SHA for 222a35b - Browse repository at this point
Copy the full SHA 222a35bView commit details
Commits on Nov 29, 2022
-
CP-40404: Do not specify PS SDK assembly info in
AssemblyInfo.cs
Also fix some whitespace Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 6e48fb9 - Browse repository at this point
Copy the full SHA 6e48fb9View commit details -
CP-40404: Update Powershell and C# SDK READMEs
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 4d21f73 - Browse repository at this point
Copy the full SHA 4d21f73View commit details
Commits on Nov 30, 2022
-
CP-41348: Convert swtpm-wrapper to Python 3
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 26df50b - Browse repository at this point
Copy the full SHA 26df50bView commit details
Commits on Dec 1, 2022
-
Redirect fileserver towards https
- Add `location` to `Http.Request.Hdr` - Add `response_redirect` method to `http-svr` - When `GET` is received by the fileserver and `website-https-only` is true: - if `host` is filled in the request, redirect towards the same URI but in HTTPS - if `host` is not present, reply with a forbidden as before Solves xapi-project#4856 Signed-off-by: BenjiReis <benjamin.reis@vates.fr>
Configuration menu - View commit details
-
Copy full SHA for df511a3 - Browse repository at this point
Copy the full SHA df511a3View commit details -
CA-371790: Restrict the permissions on pool tokens
Signed-off-by: Steven Woods <steven.woods@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 53215ea - Browse repository at this point
Copy the full SHA 53215eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7eea2c - Browse repository at this point
Copy the full SHA c7eea2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34eae31 - Browse repository at this point
Copy the full SHA 34eae31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3867203 - Browse repository at this point
Copy the full SHA 3867203View commit details
Commits on Dec 5, 2022
-
This got removed from Xen 4.18. We only use a global, so switch to using Xenctrl.with_intf. (We can't use a single global 'xc' value, because that might cause some unit tests to fail since initializing xenctrl outside of a Xen system is not possible, so delaying initialization is still needed). Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for ac7602a - Browse repository at this point
Copy the full SHA ac7602aView commit details
Commits on Dec 6, 2022
-
Merge pull request xapi-project#4861 from edwintorok/private/edvint/intf
Xenctrl: drop interface_close
Configuration menu - View commit details
-
Copy full SHA for c697869 - Browse repository at this point
Copy the full SHA c697869View commit details
Commits on Dec 7, 2022
-
CP-41279: add migration_compression pool option
Signed-off-by: Steven Woods <steven.woods@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 7128e63 - Browse repository at this point
Copy the full SHA 7128e63View commit details -
Merge pull request xapi-project#4864 from snwoods/private/stevenwo/CP…
…-41279 CP-41279: add migration_compression pool option
Configuration menu - View commit details
-
Copy full SHA for f00d920 - Browse repository at this point
Copy the full SHA f00d920View commit details -
Merge pull request xapi-project#4840 from danilo-delbusso/private/dan…
…ilod/sdk CP-40404: Add C# NuGet specs in its csproj and Move C# SDK samples to .NET 6.0
Configuration menu - View commit details
-
Copy full SHA for 4adbf80 - Browse repository at this point
Copy the full SHA 4adbf80View commit details
Commits on Dec 9, 2022
-
Update lifecycle for pool.migration_compression
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for cde2822 - Browse repository at this point
Copy the full SHA cde2822View commit details
Commits on Dec 12, 2022
-
CA-373551: register for host events rather than task in events_from_xapi
A recent change registered for events on the task that was used by the events_from_xapi thread in xapi_xenops. This is so that the event loop can be woken up by injecting an event into this task, without the need to logout its session (as previously done). The problem is that this introduced a task in the DB that is forever "pending", which has unwanted side-effects. For example, it gets GC'ed after 24 hours, and also gets destroyed if the coordinator is restarted. Switch to registering the host object for the localhost instead, which should be more stable. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 6568cab - Browse repository at this point
Copy the full SHA 6568cabView commit details -
Merge pull request xapi-project#4870 from robhoes/master
CA-373551: register for host events rather than task in events_from_xapi
Configuration menu - View commit details
-
Copy full SHA for 2784cf6 - Browse repository at this point
Copy the full SHA 2784cf6View commit details
Commits on Dec 14, 2022
-
CP-40357: Enable computation of correct API lifecycles
This allows to enforce lifecycles to all fields and messages and xapi to know it, especially when loading the database from a file. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for a92f2f3 - Browse repository at this point
Copy the full SHA a92f2f3View commit details -
CP-40357: Patch invalid lifecycles
These we all removed without being deprecated. These would be all rejected by the lifecycle automaton. Only with the SSL legacy it's clear at which released the message got deprecated (as soon as it was introduced) For the rest I used an easily-recognisable message that happens before and at the same release as the removal. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 03f8ec7 - Browse repository at this point
Copy the full SHA 03f8ec7View commit details -
CP-40357: Statically parse all the datamodel lifecycles
This will block any unsafe transitions from happening in the API Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 86d4908 - Browse repository at this point
Copy the full SHA 86d4908View commit details -
CP-40357: separate schema modules into xapi-schema package
This allows the database library to be able to depend on the datamodel one, while the latter now depends only the schema library The database library needs to depend on the datamodel one to be able to know when a field is a prototype one Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 9c95d1e - Browse repository at this point
Copy the full SHA 9c95d1eView commit details -
database / idl: reduce code complexity
No functional changes, the changes try to reduce the complexity of reading the code and reuse code for brevity Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 320d834 - Browse repository at this point
Copy the full SHA 320d834View commit details -
CP-40357: Change comment on failure to load db row
The comment is misleading since it refers to behaviour that has long been forgotten Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for af93d0d - Browse repository at this point
Copy the full SHA af93d0dView commit details -
CP-40357: Avoid loading removed fields into the database
This allows dropping values that were only prototyped, or deprecated from the database Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for a5c23d9 - Browse repository at this point
Copy the full SHA a5c23d9View commit details -
xapi_version: extract "git_id" from version
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 544d1a5 - Browse repository at this point
Copy the full SHA 544d1a5View commit details -
CP-40357: Remove oss_deprecation_since:None
This is the default value and serves no purpose Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 68490ae - Browse repository at this point
Copy the full SHA 68490aeView commit details -
CP-40357: Integrate state into the datamodel's lifecycle
This enables build the state at compile time without ad-hoc processing as this is done in the datamodel itself. For example to block removed fields from database constructors when autogenerating their code. This information is encapsulated in Lifecycle.t which is a private record. This makes it easy to deconstruct while forces its construction using the function Lifecycle.from. This prevents inconsistent Lifecycles from being created. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for d2f7e71 - Browse repository at this point
Copy the full SHA d2f7e71View commit details -
CP-40357: Purge all removed fields from the database and clients
Now the database schema and most of the code generation are filtering these. In the case where the documentation about removal is still needed, the old method is used, albeit with a new name for the avoidance of doubt. This change means that it's impossible to create objects with removed fields, introducing quite a bit of churn. The most salient issues here are: the host metrics drop the free memory, which was still being maintained and used for estimating evacuation time. This is now done using total memory consumed by VMs instead; the removal of metrics in VIFs and VBDs, which makes it impossible to delete these objects from the database; and the removal of vmpp-related fields. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for bd8b650 - Browse repository at this point
Copy the full SHA bd8b650View commit details -
CP-40357 (idl/json): Only show latest entity change in a release
This change affects the public documentation only. When a field is published and deprecated on the same release, only the the deprecation notice is shown. Similarly when a message is deprecated and removed in the same release, only the removal gets shown. Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Configuration menu - View commit details
-
Copy full SHA for ad1e634 - Browse repository at this point
Copy the full SHA ad1e634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ec6be9 - Browse repository at this point
Copy the full SHA 4ec6be9View commit details
Commits on Dec 15, 2022
-
opam: synchronize opam metadata with xs-opam
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Configuration menu - View commit details
-
Copy full SHA for d398723 - Browse repository at this point
Copy the full SHA d398723View commit details -
xapi-storage{,-script}: explicitely use python2 instead of python
Other distributions other than Xenserver are used for testing the installation of packages, and they have removed python as an alias for python2. Being explicit doesn't break compatibility on Xenserver, and allows us to keep newer versions of Ubuntu for testing in github Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
Configuration menu - View commit details
-
Copy full SHA for 2b627d5 - Browse repository at this point
Copy the full SHA 2b627d5View commit details
Commits on Dec 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c010662 - Browse repository at this point
Copy the full SHA c010662View commit details
Commits on Dec 21, 2022
-
Switch from Xenctrl.hvm_check_pvdriver to Xenctrl.hvm_param_get
The former is technical debt in the hypervisor patchqueue, while the latter is an upstream binding. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 5466603 - Browse repository at this point
Copy the full SHA 5466603View commit details
Commits on Jan 4, 2023
-
Merge pull request xapi-project#4879 from andyhhp/master
Switch from Xenctrl.hvm_check_pvdriver to Xenctrl.hvm_param_get
Configuration menu - View commit details
-
Copy full SHA for c047bab - Browse repository at this point
Copy the full SHA c047babView commit details
Commits on Jan 5, 2023
-
xenopsd: use uuid instead of deprecated uuidm functions
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 2acdc29 - Browse repository at this point
Copy the full SHA 2acdc29View commit details -
message-switch: conform to new APIs in jst libs
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for e833182 - Browse repository at this point
Copy the full SHA e833182View commit details -
xapi-storage-script: conform to new APIs in jst libs
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 80ee829 - Browse repository at this point
Copy the full SHA 80ee829View commit details -
xen-api-client: conform to new APIs in jst libs
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 2ee0819 - Browse repository at this point
Copy the full SHA 2ee0819View commit details -
stream_vdi, import: conform to new APIs in tar
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 0604f31 - Browse repository at this point
Copy the full SHA 0604f31View commit details -
gencert: conform to new APIs in x509
Now keys using elliptical curve cryptography need to be taken into account. Keep the same behaviour as previously by rejecting them Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 2ce7645 - Browse repository at this point
Copy the full SHA 2ce7645View commit details -
xapi-guard, xen-api-client: conform to new APIs in conduit
The context is now is lazy-loaded, so force it's loading. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 8b4d026 - Browse repository at this point
Copy the full SHA 8b4d026View commit details -
message-switch, vhd-tool: drop io-page-unix
Now io-page is compiled using dune and it's not split into two. Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for bb1e9ec - Browse repository at this point
Copy the full SHA bb1e9ecView commit details -
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 661d682 - Browse repository at this point
Copy the full SHA 661d682View commit details -
session_check: add action name in the error returned
Makes it easier to spot which call failed this check when triaging related issues Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for efe5654 - Browse repository at this point
Copy the full SHA efe5654View commit details
Commits on Jan 10, 2023
-
vhd-tool/direct_copy_stubs: fix setting of O_DIRECT flag
If a file descriptor is open in the normal way then its flags will be 0, and the code here that attempts to enable O_DIRECT will do nothing. This appears to have been an incorrect way of inverting an error condition `ret < 0`, the negation of which is `ret >= 0`, and not `ret > 0`. We open the file with O_DIRECT elsewhere though (in vhd-format), but fix this code to avoid confusion. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for b60bcb6 - Browse repository at this point
Copy the full SHA b60bcb6View commit details -
Makefile: add a rule to write out a compile_flags.txt
compile_flags.txt (or compile_commands.json) can be used by C language servers, like 'clangd' to provide in-editor feedback about C code compile warnings/errors (similar to ocaml-lsp). By default it wouldn't know where to find the OCaml includes and show a lot of warnings/errors when editing C stubs, and with this file it works. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 13fed48 - Browse repository at this point
Copy the full SHA 13fed48View commit details -
direct_copy_stubs.c: uerror is available in caml/unixsupport.h
There is no need to declare it by hand (it also has a slightly different prototype taking a 'const char*' as argument). Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 4f4ae41 - Browse repository at this point
Copy the full SHA 4f4ae41View commit details -
add .editorconfig: use spaces instead of tabs in C files
Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for cf862d5 - Browse repository at this point
Copy the full SHA cf862d5View commit details -
tuntap_stubs.c: raise Unix.error instead of failwith
Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 908095b - Browse repository at this point
Copy the full SHA 908095bView commit details -
xenctrlext_stubs.c: xc_get_last_error is not thread safe, use just er…
…rno which is It is usually set to XC_INTERNAL_ERROR, except in xenguest, but we have no bindings for that. This API might get deleted in upstream Xen too: the error code is stored in the xenctrl handle, but we made that global per process, and shared among all threads. Which means that xenctrl calls from different threads can overwrite each-others' error code. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 1b50aa1 - Browse repository at this point
Copy the full SHA 1b50aa1View commit details -
xa_auth_stubs.c: move free inside the blocking section
This is a C call, and might benefit from a bit more parallelism if it inside the blocking section. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 851d67c - Browse repository at this point
Copy the full SHA 851d67cView commit details -
xenctrlext_stubs.c: add missing enter/leave blocking section
Most of these calls pass only integers or pointers allocated in C, so it is safe to release the OCaml runtime lock. Replace direct passing of Xfm_val/Caml_ba_data_val with storing in a temporary local variable (the result of Xfm_val or Caml_ba_data_val won't move since they are C pointers, but the OCaml value passed in as params to these macros might!) Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for d725112 - Browse repository at this point
Copy the full SHA d725112View commit details -
unixpwd_stubs.c: factor out common code and use enter/leave blocking …
…section where possible unshadow is not thread safe, but the other ones should be. TODO: double check all C API calls in unixpwd.c with the MT-safe portion of the manpage Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 4c5bc5a - Browse repository at this point
Copy the full SHA 4c5bc5aView commit details -
C stubs: add and use .clang-format
We may intend to upstream the xenctrlext stubs to Xen, so it should follow the Xen CODING_STYLE. the .clang-format here is based on the version I sent upstream that tries to follow that coding style. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 6f545c9 - Browse repository at this point
Copy the full SHA 6f545c9View commit details -
dbgring: switch from Xenmmap to Gnt + Io_page
Xenmmap.read is being removed from Xen, use upstream mirage libs to access this instead. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for 25c467b - Browse repository at this point
Copy the full SHA 25c467bView commit details -
XXX: Nested virt now broken Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for a7643fa - Browse repository at this point
Copy the full SHA a7643faView commit details -
xe-toolstack-restart: stop and start all services at once
Starting all services at once is what happens on boot, so this should work. We currently stop services one at a time, and if they get stuck (e.g. due to waiting on a network filesystem that is stuck) then each has to hit the 1m30s timeout in systemd before they get killed, which is a minimum of ~32m before the toolstack is stopped. Which is a lot higher than the default 2 minute HA timeout, and even if the XAPI watcher would attempt recovery by restarting XAPI (or the toolstack), it would be stuck waiting for this 30m process to complete first. Stop all services at once and then start all needed ones at once. (Don't attempt to restart all in a single command since that might result in some services restarting and immediately seeing another service being restarted, interrupting communication and potentially leading to errors). Systemd can then use existing service dependencies to order the restarts. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for b2b2816 - Browse repository at this point
Copy the full SHA b2b2816View commit details -
schematest: add better instructions
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Configuration menu - View commit details
-
Copy full SHA for df79e35 - Browse repository at this point
Copy the full SHA df79e35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c11926 - Browse repository at this point
Copy the full SHA 8c11926View commit details -
Configuration menu - View commit details
-
Copy full SHA for d943af7 - Browse repository at this point
Copy the full SHA d943af7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bfbf7a - Browse repository at this point
Copy the full SHA 2bfbf7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e16e3a0 - Browse repository at this point
Copy the full SHA e16e3a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48610f9 - Browse repository at this point
Copy the full SHA 48610f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82ff16d - Browse repository at this point
Copy the full SHA 82ff16dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03bc081 - Browse repository at this point
Copy the full SHA 03bc081View commit details -
Configuration menu - View commit details
-
Copy full SHA for 364d59b - Browse repository at this point
Copy the full SHA 364d59bView commit details -
tools/ocaml: register exceptions always
Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Configuration menu - View commit details
-
Copy full SHA for 28e6982 - Browse repository at this point
Copy the full SHA 28e6982View commit details -
Configuration menu - View commit details
-
Copy full SHA for b477423 - Browse repository at this point
Copy the full SHA b477423View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbcc36f - Browse repository at this point
Copy the full SHA dbcc36fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10ba394 - Browse repository at this point
Copy the full SHA 10ba394View commit details -
Configuration menu - View commit details
-
Copy full SHA for 345519a - Browse repository at this point
Copy the full SHA 345519aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96bb874 - Browse repository at this point
Copy the full SHA 96bb874View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12aa88c - Browse repository at this point
Copy the full SHA 12aa88cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e7cf5b - Browse repository at this point
Copy the full SHA 2e7cf5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b23effb - Browse repository at this point
Copy the full SHA b23effbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6a3098 - Browse repository at this point
Copy the full SHA b6a3098View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfbe303 - Browse repository at this point
Copy the full SHA cfbe303View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14dca5f - Browse repository at this point
Copy the full SHA 14dca5fView commit details