Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Private/edvint/static #1

Merged
merged 10,000 commits into from
Jan 10, 2023
Merged

Private/edvint/static #1

merged 10,000 commits into from
Jan 10, 2023
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 4, 2022

  1. Remove Newtonsoft.Json.CH.dll reference from PS SDK

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    7a75d53 View commit details
    Browse the repository at this point in the history
  2. Use NuGet for System.Management.Automation

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    200837e View commit details
    Browse the repository at this point in the history
  3. Remove redundant or useless properties in PS module manifest

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    779ca2a View commit details
    Browse the repository at this point in the history
  4. 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)
    jameshensmancitrix authored Oct 4, 2022
    Configuration menu
    Copy the full SHA
    b180ec2 View commit details
    Browse the repository at this point in the history
  5. Merge pull request xapi-project#4804 from psafont/old-certs

    Revert "Add a fallback system for auth files belonging to RPMs"
    robhoes authored Oct 4, 2022
    Configuration menu
    Copy the full SHA
    bc71c05 View commit details
    Browse the repository at this point in the history
  6. idl: update datamodel_lifecycle after tag

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    11e422a View commit details
    Browse the repository at this point in the history
  7. 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>
    psafont committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    6aae998 View commit details
    Browse the repository at this point in the history
  8. 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>
    psafont committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    56925e2 View commit details
    Browse the repository at this point in the history
  9. 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>
    psafont committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    bb67668 View commit details
    Browse the repository at this point in the history
  10. 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>
    psafont committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    9c43b22 View commit details
    Browse the repository at this point in the history
  11. 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>
    psafont committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    2e3b83b View commit details
    Browse the repository at this point in the history
  12. Merge pull request xapi-project#4807 from psafont/private/paus/print-…

    …service-failures
    
    xenopsd/xc: Print all information in Service_failed exceptions
    robhoes authored Oct 4, 2022
    Configuration menu
    Copy the full SHA
    dba379d View commit details
    Browse the repository at this point in the history
  13. Merge pull request xapi-project#4796 from psafont/private/paus/nobios…

    …-tpm
    
    CP-39744, CA-370858: Block actions depending on unimplemented VTPM functionality
    robhoes authored Oct 4, 2022
    Configuration menu
    Copy the full SHA
    30f23a8 View commit details
    Browse the repository at this point in the history
  14. Merge pull request xapi-project#4800 from robhoes/open-uri

    Add HTTPS support to Open_uri
    robhoes authored Oct 4, 2022
    Configuration menu
    Copy the full SHA
    48cc148 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2022

  1. CP-40753 host.set_https_only updates firewall using firewall_port_con…

    …fig_script helper
    
    Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
    jameshensmancitrix committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    5fe7bc4 View commit details
    Browse the repository at this point in the history
  2. Some refactoring.

    Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
    kc284 authored and danilo-delbusso committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    d283aa8 View commit details
    Browse the repository at this point in the history
  3. Update powershell executable path in project debug configuration

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    6136002 View commit details
    Browse the repository at this point in the history
  4. 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>
    jameshensmancitrix committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    0ac90b0 View commit details
    Browse the repository at this point in the history
  5. Update Makefile (un)install targets

    The two new libs need to be explicitly mentioned.
    
    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    0b105da View commit details
    Browse the repository at this point in the history
  6. Merge pull request xapi-project#4808 from jameshensmancitrix/private/…

    …jameshen/host_https_only
    
    CP40753 Firewall updates when Host.set_https_only is called
    jameshensmancitrix authored Oct 5, 2022
    Configuration menu
    Copy the full SHA
    eee52ae View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6aaabbe View commit details
    Browse the repository at this point in the history
  8. opam: Update Alpine deps for xapi

    Changed dep for Alpine to correct xxhash package.
    
    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    Bobberty authored and psafont committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    5f8b4b3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    eb13c31 View commit details
    Browse the repository at this point in the history
  10. Set default value for AllowAutoRedirect in Session.cs

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    fba2bc7 View commit details
    Browse the repository at this point in the history
  11. Set OS condition for Powershell SDK debug configuration

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Oct 5, 2022
    Configuration menu
    Copy the full SHA
    8dd60f4 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2022

  1. 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>
    jameshensmancitrix committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    2e1385b View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    21de4bd View commit details
    Browse the repository at this point in the history
  3. 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
    jameshensmancitrix authored Oct 6, 2022
    Configuration menu
    Copy the full SHA
    42d4de9 View commit details
    Browse the repository at this point in the history
  4. 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>
    robhoes committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    930b311 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2022

  1. 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>
    robhoes committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    3910474 View commit details
    Browse the repository at this point in the history
  2. 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>
    robhoes committed Oct 7, 2022
    Configuration menu
    Copy the full SHA
    c30fc13 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2022

  1. 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
    robhoes authored Oct 10, 2022
    Configuration menu
    Copy the full SHA
    162efaa View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. Configuration menu
    Copy the full SHA
    4778c6d View commit details
    Browse the repository at this point in the history
  2. 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>
    robhoes committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    698f6e7 View commit details
    Browse the repository at this point in the history
  3. 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>
    robhoes committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    da27653 View commit details
    Browse the repository at this point in the history
  4. 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>
    robhoes committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    65f95bd View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. 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>
    psafont committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    42559c8 View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    81c6fbd View commit details
    Browse the repository at this point in the history
  3. idl/json_backend: modularise serialization

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    e70bd6e View commit details
    Browse the repository at this point in the history
  4. 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>
    psafont committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    5143cc6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d613b5f View commit details
    Browse the repository at this point in the history
  6. Named arguments in Xapi_vm_migrate.migrate_with_retry

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    7120b89 View commit details
    Browse the repository at this point in the history
  7. Named arguments in Xn.migrate

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    a50df66 View commit details
    Browse the repository at this point in the history
  8. Merge pull request xapi-project#4816 from robhoes/https-migration

    Migration over HTTPS
    robhoes authored Oct 12, 2022
    Configuration menu
    Copy the full SHA
    03d7908 View commit details
    Browse the repository at this point in the history
  9. Remove unused Http_proxy.http_proxy

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    f0c1b5b View commit details
    Browse the repository at this point in the history
  10. http-svr: remove "slow path"

    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>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    bc2ff45 View commit details
    Browse the repository at this point in the history
  11. 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>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    f5406c1 View commit details
    Browse the repository at this point in the history
  12. 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>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    440d0ab View commit details
    Browse the repository at this point in the history
  13. CA-368579: Total timeout for receiving HTTP headers

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    5629b37 View commit details
    Browse the repository at this point in the history
  14. CA-368579: Maximum header length

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    3bd6856 View commit details
    Browse the repository at this point in the history
  15. 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>
    robhoes committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    5187883 View commit details
    Browse the repository at this point in the history
  16. Merge pull request xapi-project#4817 from robhoes/http

    CA-368579: Mitigations against DoS attacks by unauthenticated clients
    robhoes authored Oct 12, 2022
    Configuration menu
    Copy the full SHA
    05c687a View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2022

  1. 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>
    lindig committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    e664f1d View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2022

  1. Merge pull request xapi-project#4819 from lindig/CA-370947

    CA-370947 increase robustness of with-vdi script
    lindig authored Oct 17, 2022
    Configuration menu
    Copy the full SHA
    39f637c View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    bf22528 View commit details
    Browse the repository at this point in the history
  3. CA-364194: add timeout parameter to script callers in xapi

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    98b05bf View commit details
    Browse the repository at this point in the history
  4. 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>
    psafont committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    481611b View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. 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>
    lindig committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    eb855fb View commit details
    Browse the repository at this point in the history
  2. maintenance: explicitely declare direct dependencies

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    235cc40 View commit details
    Browse the repository at this point in the history
  3. ci: add xapi-log and xapi-open-uri

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    e1b5e71 View commit details
    Browse the repository at this point in the history
  4. 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>
    psafont committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    29114e0 View commit details
    Browse the repository at this point in the history
  5. 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>
    psafont committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    052b30c View commit details
    Browse the repository at this point in the history
  6. 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>
    psafont committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    36498f5 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2022

  1. Configuration menu
    Copy the full SHA
    2da6be4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request xapi-project#4789 from liulinC/private/linl/dev

    CA-370575: [XSI-1310] Driver disks / supp packs applied at host
    robhoes authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    61a46e1 View commit details
    Browse the repository at this point in the history
  3. Merge pull request xapi-project#4826 from lindig/private/christianlin…

    …/CA-370578
    
    CA-370578 use subsystemId in NVidia GPU matching
    lindig authored Oct 19, 2022
    Configuration menu
    Copy the full SHA
    b6f17fd View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2022

  1. 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>
    psafont committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    5d1601c View commit details
    Browse the repository at this point in the history
  2. maintenance: avoid traversing lists twice when reading cli params

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    1f2023a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60856b1 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2022

  1. exit with error if add_vswitch_port fails

    Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
    jameshensmancitrix committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    7605423 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2022

  1. Merge pull request xapi-project#4828 from jameshensmancitrix/private/…

    …jameshen/xsi-1289
    
    CA-369446
    robhoes authored Oct 24, 2022
    Configuration menu
    Copy the full SHA
    91f0d15 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3bb0e50 View commit details
    Browse the repository at this point in the history
  3. Revert uuidx rename in gen_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>
    danilo-delbusso committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    191c18e View commit details
    Browse the repository at this point in the history
  4. Merge pull request xapi-project#4831 from danilo-delbusso/private/dan…

    …ilod/uuid-powershell
    
    Revert `uuidx` rename in `gen_powershell_binding.ml`
    robhoes authored Oct 24, 2022
    Configuration menu
    Copy the full SHA
    6cf49b2 View commit details
    Browse the repository at this point in the history
  5. 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>
    psafont committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    11cdb69 View commit details
    Browse the repository at this point in the history
  6. opam: update metadata

    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>
    psafont committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    0f0128e View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2022

  1. 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>
    psafont committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    6d215b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75c2f04 View commit details
    Browse the repository at this point in the history
  3. 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>
    robhoes committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    22ea0de View commit details
    Browse the repository at this point in the history
  4. Merge pull request xapi-project#4834 from robhoes/xsh

    CA-371759: check certificates in xsh
    robhoes authored Oct 25, 2022
    Configuration menu
    Copy the full SHA
    75812e6 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2022

  1. CP-40490: Require --force parameter to destroy VTPMs

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    0c9e8eb View commit details
    Browse the repository at this point in the history
  2. xapi-cli-server/cli_ops: reuse --force message

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    919d4ae View commit details
    Browse the repository at this point in the history
  3. 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>
    psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    c1a1652 View commit details
    Browse the repository at this point in the history
  4. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    bed6893 View commit details
    Browse the repository at this point in the history
  5. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    041d30b View commit details
    Browse the repository at this point in the history
  6. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    d48358f View commit details
    Browse the repository at this point in the history
  7. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    a6c524a View commit details
    Browse the repository at this point in the history
  8. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    092c78d View commit details
    Browse the repository at this point in the history
  9. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    21152b9 View commit details
    Browse the repository at this point in the history
  10. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    e3eb8c7 View commit details
    Browse the repository at this point in the history
  11. CP-39134: quality gate fixups

    Signed-off-by: Edwin Török <edvin.torok@citrix.com>
    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    546f89d View commit details
    Browse the repository at this point in the history
  12. 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>
    edwintorok authored and psafont committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    fbc216f View commit details
    Browse the repository at this point in the history
  13. Merge pull request xapi-project#4830 from psafont/private/paus/destro…

    …force
    
    CP-40490: Require --force parameter to destroy VTPMs
    robhoes authored Oct 26, 2022
    Configuration menu
    Copy the full SHA
    d45f4b7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8afaa0a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1fd731c View commit details
    Browse the repository at this point in the history
  16. CP-41033: install XenAPI to Python 3

    Signed-off-by: Mark Syms <mark.syms@citrix.com>
    MarkSymsCtx committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    51811a3 View commit details
    Browse the repository at this point in the history
  17. CP-41033: update XenAPIPlugin for Python3

    Signed-off-by: Mark Syms <mark.syms@citrix.com>
    MarkSymsCtx committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    c340514 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2022

  1. idl/ocaml_backend: do not generate empty docstrings

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    b35ddc1 View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    b4f55d3 View commit details
    Browse the repository at this point in the history
  3. 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>
    psafont committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    2df768f View commit details
    Browse the repository at this point in the history
  4. 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>
    psafont committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    f39d142 View commit details
    Browse the repository at this point in the history
  5. 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>
    psafont committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    b57f70c View commit details
    Browse the repository at this point in the history
  6. Merge pull request xapi-project#4836 from MarkSymsCtx/CP-41033

    CP-41033: install XenAPI for Python3
    robhoes authored Oct 27, 2022
    Configuration menu
    Copy the full SHA
    e3511f7 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2022

  1. Configuration menu
    Copy the full SHA
    406251e View commit details
    Browse the repository at this point in the history
  2. CP-41033: further updates to XenAPIPlugin for Python3

    Signed-off-by: Mark Syms <mark.syms@citrix.com>
    MarkSymsCtx committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    52a29bb View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2022

  1. Merge pull request xapi-project#4838 from MarkSymsCtx/CP-41033

    CP-41033: further updates to XenAPIPlugin for Python3
    robhoes authored Oct 31, 2022
    Configuration menu
    Copy the full SHA
    3e4a378 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2022

  1. 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>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    0e5e9ef View commit details
    Browse the repository at this point in the history
  2. xapi/rbac: Remove the non-"efficient" code path

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    0cdd2bb View commit details
    Browse the repository at this point in the history
  3. 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>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    f29a219 View commit details
    Browse the repository at this point in the history
  4. 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>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    0a6cb0e View commit details
    Browse the repository at this point in the history
  5. rbac_audit: refactor module

    Remove unneeded functions, simplify sexpr serialization
    
    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    2fb2d2e View commit details
    Browse the repository at this point in the history
  6. 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>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    3eaad70 View commit details
    Browse the repository at this point in the history
  7. CA-372128: avoid stdlib.compare

    Instead use specialized comparison functions which have less overhead
    
    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    ba4ed44 View commit details
    Browse the repository at this point in the history
  8. 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>
    psafont committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    53d035b View commit details
    Browse the repository at this point in the history
  9. CA-140252: fix flag handling

    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>
    edwintorok committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    3b6613b View commit details
    Browse the repository at this point in the history
  10. 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>
    danilo-delbusso committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    420fa16 View commit details
    Browse the repository at this point in the history
  11. 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>
    danilo-delbusso committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    7b51a2c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3bf5f0d View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. CP-40190: vTPM - Fix xenopsd to indicate correct state file format to…

    … swtpm-wrapper.
    
    Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
    xennifer committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    f6ac1ba View commit details
    Browse the repository at this point in the history
  2. 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
    robhoes authored Nov 3, 2022
    Configuration menu
    Copy the full SHA
    3cbd112 View commit details
    Browse the repository at this point in the history
  3. CP-40747: sparse-dd: remove unused legacy ssl args

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    73579e7 View commit details
    Browse the repository at this point in the history
  4. CP-40747: Add certificate checking options to sparse_dd and vhd-tool

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    bbaa46d View commit details
    Browse the repository at this point in the history
  5. 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>
    robhoes committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    c092716 View commit details
    Browse the repository at this point in the history
  6. Update quality gate

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    2ac0c45 View commit details
    Browse the repository at this point in the history
  7. Merge pull request xapi-project#4842 from robhoes/sparse_dd_verify

    Add certificate checking to sparse-dd
    robhoes authored Nov 3, 2022
    Configuration menu
    Copy the full SHA
    fdcce6a View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2022

  1. 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>
    lindig committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    1cb3baf View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. 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>
    psafont committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    057ecf0 View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    71e8b4e View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. 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>
    jameshensmancitrix committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    3fbe94d View commit details
    Browse the repository at this point in the history
  2. CP-40823 Created tests to the modules in storage_impl

    Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
    jameshensmancitrix committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    e2ca18f View commit details
    Browse the repository at this point in the history
  3. Merge pull request xapi-project#4832 from jameshensmancitrix/private/…

    …jameshen/vdi-destory
    
    CP-40823 Corrected blank vm in DP.destroy and VDI.destroy functions
    jameshensmancitrix authored Nov 14, 2022
    Configuration menu
    Copy the full SHA
    f709cfd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    751163d View commit details
    Browse the repository at this point in the history
  5. CP-41028: xapi_services: remove unused module Local

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7d59d7f View commit details
    Browse the repository at this point in the history
  6. 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>
    robhoes committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    e1d2fb5 View commit details
    Browse the repository at this point in the history
  7. 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>
    robhoes committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    4a921c7 View commit details
    Browse the repository at this point in the history
  8. 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>
    robhoes committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    3acce12 View commit details
    Browse the repository at this point in the history
  9. 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>
    robhoes committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    5fe73c9 View commit details
    Browse the repository at this point in the history
  10. 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>
    robhoes committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    8f95af5 View commit details
    Browse the repository at this point in the history
  11. 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>
    robhoes committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    61c5bc4 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. CP-40190: Prevent SWTPM from filling dom0 root partition

    Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
    xennifer committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    0373161 View commit details
    Browse the repository at this point in the history
  2. 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>
    robhoes committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    c9634aa View commit details
    Browse the repository at this point in the history
  3. 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>
    robhoes committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    e2e9a9e View commit details
    Browse the repository at this point in the history
  4. Update quality-gate

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    5a72998 View commit details
    Browse the repository at this point in the history
  5. Merge pull request xapi-project#4845 from robhoes/crosscheck

    CP-41028: Enforce certificate checking for intra-pool storage migration connections
    robhoes authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    bb38ada View commit details
    Browse the repository at this point in the history
  6. CP-40823 Amended logging for the new functions

    Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
    jameshensmancitrix committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    1ebc87a View commit details
    Browse the repository at this point in the history
  7. 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>
    robhoes committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    652e46c View commit details
    Browse the repository at this point in the history
  8. Merge pull request xapi-project#4846 from jameshensmancitrix/private/…

    …jameshen/vdi-destory
    psafont authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    b373061 View commit details
    Browse the repository at this point in the history
  9. 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>
    robhoes committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    def684e View commit details
    Browse the repository at this point in the history
  10. Merge pull request xapi-project#4847 from robhoes/upgrade-state

    CA-369444: Ensure xenopsd still starts if VM state upgrade fails
    robhoes authored Nov 15, 2022
    Configuration menu
    Copy the full SHA
    f4bbe7a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9b164fd View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2022

  1. 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>
    robhoes committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    eab28b1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request xapi-project#4844 from lindig/private/christianlin…

    …/CP-33044
    
    CP-33044 define attach/detach IDL calls for gpumon
    lindig authored Nov 16, 2022
    Configuration menu
    Copy the full SHA
    67353c5 View commit details
    Browse the repository at this point in the history
  3. Merge pull request xapi-project#4848 from robhoes/log500

    CA-371419: Always log exceptions when responding with 500 Internal Error
    robhoes authored Nov 16, 2022
    Configuration menu
    Copy the full SHA
    34ec94f View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. 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>
    psafont committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    e56cf2e View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    9bb5ea7 View commit details
    Browse the repository at this point in the history
  3. 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>
    robhoes committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    169734e View commit details
    Browse the repository at this point in the history
  4. 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>
    robhoes committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    65b6012 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. CP-41213: swtpm-wrapper should not fiddle with cgroups

    Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
    xennifer committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    0b37358 View commit details
    Browse the repository at this point in the history
  2. Merge pull request xapi-project#4851 from robhoes/event-logout

    Eliminate unnecessarily scary log lines
    robhoes authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    8f4c4e5 View commit details
    Browse the repository at this point in the history
  3. 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>
    psafont committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    1623639 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0ac2c9e View commit details
    Browse the repository at this point in the history
  5. 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>
    robhoes committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    7e440d6 View commit details
    Browse the repository at this point in the history
  6. Merge pull request xapi-project#4852 from robhoes/https-upgrade

    Enable HTTPS for storage migration on the source host
    robhoes authored Nov 18, 2022
    Configuration menu
    Copy the full SHA
    36b59bc View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. 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>
    danilo-delbusso committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    c5ebeb8 View commit details
    Browse the repository at this point in the history
  2. CP-40404: Build C# SDK to .NET Framework 4.5

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    ec1517f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    58316b7 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2022

  1. 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>
    lindig committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    0256bea View commit details
    Browse the repository at this point in the history
  2. Merge pull request xapi-project#4855 from lindig/private/christianlin…

    …/CA-372785
    
    CA-372785 make with-vdi more robust
    lindig authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    cb7a8c9 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. CP-40404: Replace deprecated module manifest member with RootModule

    `ModuleToProcess` has been deprecated
    
    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    45280be View commit details
    Browse the repository at this point in the history
  2. Fix missing Reference value in PS SDK cmdlets output

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    4256e16 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. 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>
    andyhhp committed Nov 25, 2022
    Configuration menu
    Copy the full SHA
    91ff68f View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Merge pull request xapi-project#4858 from andyhhp/xcext

    Modify Xenctrlext to use its own libxc handle
    robhoes authored Nov 28, 2022
    Configuration menu
    Copy the full SHA
    222a35b View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2022

  1. 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>
    danilo-delbusso committed Nov 29, 2022
    Configuration menu
    Copy the full SHA
    6e48fb9 View commit details
    Browse the repository at this point in the history
  2. CP-40404: Update Powershell and C# SDK READMEs

    Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
    danilo-delbusso committed Nov 29, 2022
    Configuration menu
    Copy the full SHA
    4d21f73 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2022

  1. CP-41348: Convert swtpm-wrapper to Python 3

    Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
    rosslagerwall committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    26df50b View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2022

  1. 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>
    benjamreis committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    df511a3 View commit details
    Browse the repository at this point in the history
  2. CA-371790: Restrict the permissions on pool tokens

    Signed-off-by: Steven Woods <steven.woods@citrix.com>
    snwoods committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    53215ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c7eea2c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    34eae31 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3867203 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. Xenctrl: drop interface_close

    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>
    edwintorok committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    ac7602a View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2022

  1. Merge pull request xapi-project#4861 from edwintorok/private/edvint/intf

    Xenctrl: drop interface_close
    edwintorok authored Dec 6, 2022
    Configuration menu
    Copy the full SHA
    c697869 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2022

  1. CP-41279: add migration_compression pool option

    Signed-off-by: Steven Woods <steven.woods@citrix.com>
    snwoods committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    7128e63 View commit details
    Browse the repository at this point in the history
  2. Merge pull request xapi-project#4864 from snwoods/private/stevenwo/CP…

    …-41279
    
    CP-41279: add migration_compression pool option
    robhoes authored Dec 7, 2022
    Configuration menu
    Copy the full SHA
    f00d920 View commit details
    Browse the repository at this point in the history
  3. 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
    danilo-delbusso authored Dec 7, 2022
    Configuration menu
    Copy the full SHA
    4adbf80 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. Update lifecycle for pool.migration_compression

    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    cde2822 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. 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>
    robhoes committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    6568cab View commit details
    Browse the repository at this point in the history
  2. Merge pull request xapi-project#4870 from robhoes/master

    CA-373551: register for host events rather than task in events_from_xapi
    robhoes authored Dec 12, 2022
    Configuration menu
    Copy the full SHA
    2784cf6 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2022

  1. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    a92f2f3 View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    03f8ec7 View commit details
    Browse the repository at this point in the history
  3. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    86d4908 View commit details
    Browse the repository at this point in the history
  4. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    9c95d1e View commit details
    Browse the repository at this point in the history
  5. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    320d834 View commit details
    Browse the repository at this point in the history
  6. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    af93d0d View commit details
    Browse the repository at this point in the history
  7. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    a5c23d9 View commit details
    Browse the repository at this point in the history
  8. xapi_version: extract "git_id" from version

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    544d1a5 View commit details
    Browse the repository at this point in the history
  9. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    68490ae View commit details
    Browse the repository at this point in the history
  10. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    d2f7e71 View commit details
    Browse the repository at this point in the history
  11. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    bd8b650 View commit details
    Browse the repository at this point in the history
  12. 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>
    psafont committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    ad1e634 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4ec6be9 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. opam: synchronize opam metadata with xs-opam

    Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
    psafont committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    d398723 View commit details
    Browse the repository at this point in the history
  2. 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>
    psafont committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    2b627d5 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Configuration menu
    Copy the full SHA
    c010662 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. 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>
    andyhhp committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    5466603 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Merge pull request xapi-project#4879 from andyhhp/master

    Switch from Xenctrl.hvm_check_pvdriver to Xenctrl.hvm_param_get
    edwintorok authored Jan 4, 2023
    Configuration menu
    Copy the full SHA
    c047bab View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. xenopsd: use uuid instead of deprecated uuidm functions

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    2acdc29 View commit details
    Browse the repository at this point in the history
  2. message-switch: conform to new APIs in jst libs

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    e833182 View commit details
    Browse the repository at this point in the history
  3. xapi-storage-script: conform to new APIs in jst libs

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    80ee829 View commit details
    Browse the repository at this point in the history
  4. xen-api-client: conform to new APIs in jst libs

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    2ee0819 View commit details
    Browse the repository at this point in the history
  5. stream_vdi, import: conform to new APIs in tar

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    0604f31 View commit details
    Browse the repository at this point in the history
  6. 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>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    2ce7645 View commit details
    Browse the repository at this point in the history
  7. 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>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    8b4d026 View commit details
    Browse the repository at this point in the history
  8. 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>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    bb1e9ec View commit details
    Browse the repository at this point in the history
  9. nbd: change ocaml-nbd usage

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    661d682 View commit details
    Browse the repository at this point in the history
  10. 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>
    psafont committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    efe5654 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    b60bcb6 View commit details
    Browse the repository at this point in the history
  2. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    13fed48 View commit details
    Browse the repository at this point in the history
  3. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    4f4ae41 View commit details
    Browse the repository at this point in the history
  4. add .editorconfig: use spaces instead of tabs in C files

    Signed-off-by: Edwin Török <edvin.torok@citrix.com>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    cf862d5 View commit details
    Browse the repository at this point in the history
  5. tuntap_stubs.c: raise Unix.error instead of failwith

    Signed-off-by: Edwin Török <edvin.torok@citrix.com>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    908095b View commit details
    Browse the repository at this point in the history
  6. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    1b50aa1 View commit details
    Browse the repository at this point in the history
  7. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    851d67c View commit details
    Browse the repository at this point in the history
  8. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    d725112 View commit details
    Browse the repository at this point in the history
  9. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    4c5bc5a View commit details
    Browse the repository at this point in the history
  10. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    6f545c9 View commit details
    Browse the repository at this point in the history
  11. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    25c467b View commit details
    Browse the repository at this point in the history
  12. Fix build with Xen 4.18

    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>
    andyhhp authored and edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    a7643fa View commit details
    Browse the repository at this point in the history
  13. 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>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    b2b2816 View commit details
    Browse the repository at this point in the history
  14. schematest: add better instructions

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    psafont authored and edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    df79e35 View commit details
    Browse the repository at this point in the history
  15. WIP: PVH

    Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    8c11926 View commit details
    Browse the repository at this point in the history
  16. WiP

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    d943af7 View commit details
    Browse the repository at this point in the history
  17. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    2bfbf7a View commit details
    Browse the repository at this point in the history
  18. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    e16e3a0 View commit details
    Browse the repository at this point in the history
  19. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    48610f9 View commit details
    Browse the repository at this point in the history
  20. cstubs

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    82ff16d View commit details
    Browse the repository at this point in the history
  21. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    03bc081 View commit details
    Browse the repository at this point in the history
  22. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    364d59b View commit details
    Browse the repository at this point in the history
  23. tools/ocaml: register exceptions always

    Signed-off-by: Edwin Török <edwin.torok@cloud.com>
    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    28e6982 View commit details
    Browse the repository at this point in the history
  24. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    b477423 View commit details
    Browse the repository at this point in the history
  25. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    dbcc36f View commit details
    Browse the repository at this point in the history
  26. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    10ba394 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    345519a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    96bb874 View commit details
    Browse the repository at this point in the history
  29. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    12aa88c View commit details
    Browse the repository at this point in the history
  30. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    2e7cf5b View commit details
    Browse the repository at this point in the history
  31. wip

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    b23effb View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    b6a3098 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    cfbe303 View commit details
    Browse the repository at this point in the history
  34. fix SARIF path

    edwintorok committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    14dca5f View commit details
    Browse the repository at this point in the history