Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Libvirt updates #552

Merged
merged 6 commits into from
May 31, 2017
Merged

Libvirt updates #552

merged 6 commits into from
May 31, 2017

Commits on May 30, 2017

  1. Bump libvirt bindings from v3.2.0 to v3.3.0

    Amongst other changes this fixed Domain.ListAllInterfaceAddresses() when there
    are multiple interfaces.
    
    Signed-off-by: Ian Campbell <ian.campbell@docker.com>
    Ian Campbell committed May 30, 2017
    Configuration menu
    Copy the full SHA
    d541a47 View commit details
    Browse the repository at this point in the history
  2. libvirt: Pass entire domain configuration in spec.Properties.Domain

    This maps directly to the libvirtxml.Domain object which allows the user much
    more flexibility and is more in line with other instance plugins.
    
    Switch the example configuration to yml which is a little more readable.
    
    Signed-off-by: Ian Campbell <ian.campbell@docker.com>
    Ian Campbell committed May 30, 2017
    Configuration menu
    Copy the full SHA
    4261487 View commit details
    Browse the repository at this point in the history
  3. Expose network device's ip addresses in DescribeInstances.

    Thus tries the qemu guest agent first (if it is running) and falls back to
    interrogating the libvirt leases database (which is not available with
    `qemu://session`).
    
    Filters devices which have no addresses on them.
    
    Modify the example configuration to add a network interface and the necessary
    stanza to setup the virtio channel which is used by the guest agent.
    
    Signed-off-by: Ian Campbell <ian.campbell@docker.com>
    Ian Campbell committed May 30, 2017
    Configuration menu
    Copy the full SHA
    c7cbbb7 View commit details
    Browse the repository at this point in the history
  4. vendor.conf: Update to latest libvirt-go

    This pulls in a single commit since v3.3.0
    libvirt/libvirt-go@c3209e4
    which improves compatibility with Go 1.5 resolving:
    
    vendor/github.com/libvirt/libvirt-go/lxc.go:63: cannot use cfdlist (type *C.int) as type unsafe.Pointer in argument to func literal
    vendor/github.com/libvirt/libvirt-go/lxc.go:85: cannot use coldfdlist (type *C.int) as type unsafe.Pointer in argument to func literal
    
    Signed-off-by: Ian Campbell <ian.campbell@docker.com>
    Ian Campbell committed May 30, 2017
    Configuration menu
    Copy the full SHA
    c932422 View commit details
    Browse the repository at this point in the history
  5. libvirt: Use the logical ID as the MAC for the first network interface.

    This is easier to work with in the context of libvirt than trying to assign IP
    addresses. The network object should be configured with static mappings.
    
    Signed-off-by: Ian Campbell <ian.campbell@docker.com>
    Ian Campbell committed May 30, 2017
    Configuration menu
    Copy the full SHA
    760b5b5 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'master' into libvirt-updates

    David Chung committed May 30, 2017
    Configuration menu
    Copy the full SHA
    fed472d View commit details
    Browse the repository at this point in the history