Commits on Jul 25, 2016
  1. @robhoes

    Merge pull request #2712 from xapi-project/revert-2709-CP-18173

    Revert "CP-18173 add check to vm lifecycle: no migration when using nested virt"
    robhoes committed on GitHub Jul 25, 2016
  2. @robhoes

    Revert "CP-18173 add check to vm lifecycle: no migration when using n…

    …ested virt"
    robhoes committed on GitHub Jul 25, 2016
Commits on Jul 22, 2016
  1. @lindig

    CP-18173 add check to vm lifecycle: no migration when using nested vi…

    …rt (#2709)
    
    * CP-18173 add check to vm lifecycle: no migration when using nested virt
    
    The check is a little more exhaustive: Migration, suspension, and
    checkpointing must be blocked if either nested virtualisation is active
    or platform:nomigrate is true. This can be overridden with --force.
    The commit contains unit tests.
    
    This commit will be updated to use a library function that interprets
    boolean values from platform flags.
    
    Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
    
    * CP-18173 use common def of "is_true" for platform flag; improve naming
    
    The xapi_vm_lifecycle module cannot use ocaml/xapi/xapi_xenops.ml where
    Platform.is_true is defined as it would create a dependency cycle. The
    code is currently dublicated here.
    
    Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
    
    * CP-18173 factor out Xapi_xenops.Platform module; update call sites
    
    The platform module is now called vm_platform.ml (Vm_platform).
    
    This commit factors out Xapi_xenops.Platform to break a dependency cycle
    with Xapi_vm_lifecycle that should be able to use it. Now
    Xapi_vm_lifecycle.is_mobile can use it.
    
    Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
    lindig committed on GitHub Jul 22, 2016
  2. @robhoes

    Merge pull request #2688 from sharady/CA-201728

    CA-201728: VLAN.create must fail if VLAN is in use by FCoE
    robhoes committed on GitHub Jul 22, 2016
Commits on Jul 20, 2016
  1. @jonludlam

    Merge pull request #2710 from robhoes/dns

    PAR-164: Validate DNS addresses in PIF.reconfigure_ip(v6)
    jonludlam committed on GitHub Jul 20, 2016
  2. @sharady

    CA-201728: VLAN.create and PIF.plug must fail if VLAN is in use by ke…

    …rnel
    
    1) VLAN.create : Call XCP-Networkd `has_vlan` function to identify vlan is in use
    by kernel. If vlan is in use by kernel then raise an API error `vlan_in_use`.
    2) PIF.plug : Fail with an API error `vlan_in_use` if XCP-Networkd raise
    an exception `Vlan_in_use`.
    
    Signed-off-by: sharad yadav <sharad.yadav@citrix.com>
    sharady committed Jun 30, 2016
Commits on Jul 19, 2016
  1. @robhoes

    Merge pull request #2707 from jonludlam/CP-18172

    CP-18172: Add license checks for nested-virt
    robhoes committed on GitHub Jul 20, 2016
  2. @robhoes

    PAR-164: Validate DNS addresses in PIF.reconfigure_ip(v6)

    Also fix an error message.
    
    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Jul 19, 2016
  3. @jonludlam

    Dead code elimination.

    Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
    jonludlam committed Jul 19, 2016
  4. @jonludlam

    CP-18172: Check the license key on VM start

    Add tests for it too.
    
    Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
    jonludlam committed Jul 14, 2016
  5. @jonludlam

    CP-18172: Add a Nested_virt feature flag

    Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
    jonludlam committed Jul 14, 2016
Commits on Jul 14, 2016
  1. @robhoes

    Merge pull request #2706 from kc284/master

    CA-215078: Added branding for the publicly available post-creedence releases.
    robhoes committed on GitHub Jul 14, 2016
  2. @kc284

    CA-215078: Added branding for the publicly available post-creedence r…

    …eleases.
    
    Also removed unreachable breaks.
    
    Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
    kc284 committed Jul 14, 2016
  3. @johnelse

    Merge pull request #2705 from johnelse/typos

    Fix typos
    johnelse committed on GitHub Jul 14, 2016
  4. @johnelse

    Fix typos

    Signed-off-by: John Else <john.else@citrix.com>
    johnelse committed Nov 13, 2015
Commits on Jul 13, 2016
  1. @jonludlam

    Merge pull request #2699 from kc284/master

    CA-215578: Fixed issue where halted control domains were deleted from…
    jonludlam committed on GitHub Jul 13, 2016
  2. @kc284

    CA-215578: Reworked issue where halted control domains were deleted f…

    …rom the database after a pool restore.
    
    Added a basic unit test - the latter revealed also a use of Rrdd.archive_rrd
    which was not wrapped in an exception logger like elsewhere in the codebase.
    
    Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
    kc284 committed Jul 13, 2016
  3. @robhoes

    Merge pull request #2703 from johnelse/ca-216244

    CA-216244: Handle unicode characters in static VDI config
    robhoes committed on GitHub Jul 13, 2016
  4. @johnelse

    CA-216244: Handle unicode characters in static VDI config

    The static VDI config file includes the SR's device_config, the contents
    of which is dependent on the SR type. This change allows the static-vdi
    script to handle unicode characters in device_config.
    
    Signed-off-by: John Else <john.else@citrix.com>
    johnelse committed Jul 8, 2016
Commits on Jul 11, 2016
  1. @jonludlam

    Merge pull request #2701 from johnelse/ca-214975

    CA-214975: don't reset VDIs on assume-failed
    jonludlam committed on GitHub Jul 11, 2016
  2. @jjd27 @johnelse

    CA-214975: don't reset VDIs on assume-failed

    Since xapi's DB GC's logic to determine whether a host has failed takes a while
    to see the first heartbeat from each host, it calls the
    host-post-declare-scripts with reason="assume-failed" on each host.
    
    This means that the "assume-failed" logic is called for every slave after every
    toolstack start on the master.
    
    Even if "assume-failed" is used on appropriate occasions, resetting the VDIs is
    still dangerous because any VMs running on a slave will be treated as not being
    attached, which can cause the SM layer to make invalid assumptions, possibly
    leading to data loss and corruption.
    
    Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
    Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
    Reviewed-by: Alex Brett <alex.brett@citrix.com>
    jjd27 committed with johnelse Jul 4, 2016
  3. @jonludlam

    Merge pull request #2698 from johnelse/ca-207577

    CA-207577: clear scheduled_to_be_resident_on if create_vgpus fails
    jonludlam committed on GitHub Jul 11, 2016
  4. @kc284

    CA-215578: Fixed issue where halted control domains were deleted from…

    … the database after a pool restore.
    
    Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
    kc284 committed Jul 11, 2016
Commits on Jul 8, 2016
  1. @johnelse

    CA-207577: clear scheduled_to_be_resident_on if create_vgpus fails

    create_vgpus could fail if vGPU is not licensed. The VM must not be
    left marked as scheduled_to_be_resident_on a host, or it will be
    considered to be taking up space on that host.
    
    Signed-off-by: John Else <john.else@citrix.com>
    johnelse committed Jul 8, 2016
  2. @johnelse

    Move clear_scheduled_to_be_resident_on

    Signed-off-by: John Else <john.else@citrix.com>
    johnelse committed Jul 8, 2016
  3. @johnelse

    Merge pull request #2695 from kc284/master

    Bumped API version for Dundee Plus. Exposed existing field in the CLI.
    johnelse committed on GitHub Jul 8, 2016
Commits on Jul 7, 2016
  1. @kc284

    Exposed Host.resident_VMs field in the CLI

    Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
    kc284 committed Jul 7, 2016
Commits on Jul 6, 2016
  1. @thomassa

    Merge pull request #2694 from phusl/CA-213035

    CA-213035: Rename disable_ssl_legacy_switch to restrict_ssl_legacy_switch
    thomassa committed on GitHub Jul 6, 2016
  2. @phusl

    CA-213035: Rename disable_ssl_legacy_switch to restrict_ssl_legacy_sw…

    …itch
    
    Signed-off-by: Phus Lu <phus.lu@citrix.com>
    phusl committed Jul 6, 2016
  3. @thomassa

    Merge pull request #2693 from phusl/CA-213035

    CA-213035: feature-flag for ssl_legacy control switch
    thomassa committed on GitHub Jul 6, 2016
  4. @kc284

    The API version for Dundee plus will be 2.6

    Also bumped XenCenter min and max version.
    
    Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
    kc284 committed Jul 5, 2016
Commits on Jul 5, 2016
  1. @thomassa @phusl

    CA-213035: feature-flag for ssl_legacy control switch

    Add a feature to indicate the availability of this functionality.
    
    Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
    (cherry picked from commit faf9340)
    Signed-off-by: Phus Lu <phus.lu@citrix.com>
    thomassa committed with phusl Jun 13, 2016
Commits on Jul 4, 2016
  1. @jonludlam

    Merge pull request #2683 from simonjbeaumont/platform-version

    version: Lookup platform_version and platform_name in the Inventory
    jonludlam committed on GitHub Jul 4, 2016
Commits on Jul 1, 2016
  1. @johnelse

    Merge pull request #2692 from simonjbeaumont/ca-202267

    CA-202267: Clarify error message for Pool.join
    johnelse committed on GitHub Jul 1, 2016
  2. @johnelse

    Merge pull request #2691 from simonjbeaumont/ca-105021

    CA-105021: Set Console.location to empty if Host.address is empty
    johnelse committed on GitHub Jul 1, 2016