1. 11 Jun, 2018 1 commit
  2. 08 Jun, 2018 3 commits
  3. 04 Jun, 2018 4 commits
  4. 06 Mar, 2018 3 commits
  5. 09 Feb, 2018 3 commits
  6. 08 Feb, 2018 2 commits
    • Laine Stump's avatar
      Use $net->get_dhcp_leases() when available · 433f7f78
      Laine Stump authored
      Newer versions of libvirt no longer let dnsmasq create a leases file,
      they keep track of it themselves and provide an API to retrieve the
      current list of leases. Use that to get the guest's IP address when
      it's available.
      Signed-off-by: 's avatarLaine Stump <laine@laine.org>
      Reviewed-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
      433f7f78
    • Laine Stump's avatar
      create vms that use virt-builder images with no graphics and virtio-net · 2299d168
      Laine Stump authored
      This is consistent with what is used to create the disk image supplied
      by virt-builder. It doesn't currently affect the outcome of the test,
      but it's possible that in the future it could.
      
      In particular, the network device name changes depending on whether or
      not there is a graphics device (due to change in PCI address). The
      virt-builder image is create by installing Fedora on a guest that has
      no graphics card, so it sees the network device as "ens2" and creates
      an appropriate ifcfg-ens2, but if you boot the image with a graphics
      card, then the network device will be named "ens3". It turns out that
      NetworkManager is enabled by default on the virt-builder images, and
      NetworkManager will listen for dhcp on *all* interfaces (not just
      those with a configuration file), so networking still functions on the
      guest, but if a test script were to try to use "ifdown ens3" (for
      example) that wouldn't work.
      
      The best solution may be to have the image set "biosdevnames=0
      net.ifnames=0" on the kernel commandline (so that the netdev is always
      called "eth0" regardless of its PCI address), but that would also need
      to be done in the kickstart file used to create the image, which is
      done offline by libguestfs people, so it's not something we have
      control over here.
      Signed-off-by: 's avatarLaine Stump <laine@laine.org>
      Reviewed-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
      2299d168
  7. 06 Feb, 2018 1 commit
  8. 11 Aug, 2016 1 commit
  9. 29 Jul, 2016 3 commits
  10. 29 Sep, 2015 4 commits
  11. 27 Jan, 2015 2 commits
    • Mike Latimer's avatar
      Prevent list_snapshots from causing test cleanup failure · d8afa058
      Mike Latimer authored
      When TCK cleans up a test domain, existing snapshots are deleted. However,
      not all drivers (e.g. libxl) support snapshots. When such a driver is
      involved, the following error is reported and the testkit fails to cleanup
      the domain:
      
        libvirt error code: 3, message: this function is not supported by the
        connection driver: virDomainSnapshotNum
      
      Rather than erroring out, list_snapshots should be protected using eval. In
      the event the underlying driver does not support snapshots, an empty list is
      returned, and no snapshot deletion is attempted. (Note - It is the listing
      of snapshots that is causing the error, not the attempt to delete them.)
      d8afa058
    • Mike Latimer's avatar
      Ensure uri_transport is defined before using it · ab63f84b
      Mike Latimer authored
      Under some environments (such as Xen), there may not be a uri_transport
      defined. As this is not required, ensure the value is defined before
      attempting to use it
      ab63f84b
  12. 31 Mar, 2014 1 commit
  13. 28 Mar, 2014 6 commits
  14. 27 Mar, 2014 1 commit
    • Mike Latimer's avatar
      Prefer kvm domains if multiple domain types exist · 776ec8b5
      Mike Latimer authored
      When matching capabilities of a guest, if multiple domain types exist (for
      example, 'qemu' and 'kvm') the order in which they are returned can change.
      
      To avoid unpredictable test results, this patch prefers kvm if that domain
      type exists. If not, the behavior matches what existed before, and the first
      domain type is returned.
      776ec8b5
  15. 07 Mar, 2014 1 commit
    • Mike Latimer's avatar
      libvirt-tck: Update hook syntax for libvirt 0.9.0+ · 7f80a173
      Mike Latimer authored
      Starting with libvirt 0.9.0+, hook scripts can be called from several new
      locations. These locations must also be reflected in the expected logs of
      the hook tests.
      
      The final test in 052-domain-hook.t intentionally produces a failed start,
      which should show the first stage in the startup hook process, followed by
      all the stages in the destroy process.
      
      In addition to the above changes, libvirtd init scripts can return daemon
      status in several different ways (due to distribution differences,
      sysvinit vs. systemd, etc). This patch allows for 'running|active', and
      'stopped|unused|inactive' responses which the hook tests rely on.
      7f80a173
  16. 20 Oct, 2012 1 commit
  17. 02 Aug, 2012 1 commit
  18. 31 Jul, 2012 1 commit
    • Kyla Zhang's avatar
      Add listen type for graphic · 0f127fa9
      Kyla Zhang authored
      For default domain build there is no graphic listen type so it will
      report error. This patch will fix it with adding default type with
      "address"
      0f127fa9
  19. 14 Oct, 2011 1 commit