aboutsummaryrefslogtreecommitdiff
path: root/libvirt
Commit message (Collapse)AuthorAge
* Travis: fix errorFlavio Castelli2018-02-19
| | | | Fix linting error, ensure tests are actually run
* Ensure libvirt connection is releasedFlavio Castelli2018-02-19
| | | | | | | | Deallocate the libvirt connect object before exit. Fixes issue #266 Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* sort importsThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* remove dead/unreachable codeThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* refactor cloudinitThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* refactor resourceLibvirtDomainCreateThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* refactor schemasThomas Hipp2018-02-19
| | | | | | | | * use boolean where it makes sense * do not use schema.TypeMap, but schema.TypeList with MaxItems=1 * do not split domain schema Signed-off-by: Thomas Hipp <thipp@suse.de>
* fix difference detection when using an existing bridge networkmluu2018-01-14
| | | | | | | | | | | | | | | given the terraform: ```json resource "libvirt_domain" "myvm" { network_interface { bridge = "some-bridge" network_name = "existing-bridge-network" } } ``` `terraform plan` would always think it needs to re-apply the domain
* Modify cloudinit to use 'mkisofs' instead of 'genisoimage'.night199uk2018-01-14
| | | | | genisoimage was debian's fork of mkisofs so the two are compatible, but mkisofs is available on more OS' (e.g. macOS via brew).
* domain: honor arch, machine, and emulator settingsThomas Hipp2017-12-22
| | | | | | | | | | The settings 'arch', 'machine', and 'emulator' should be honored. The default values have been removed. Instead, if not provided, the values are determined by consulting libvirt directly. This fixes #262. Signed-off-by: Thomas Hipp <thipp@suse.de>
* Add new method to get information on domain interfacesEamonn O'Toole2017-12-14
| | | | | | | | | | | | | | | | | | | We've found that, when executing destroy/create cycles on a domain where the virtual network(s) to which it is attached are persisted across these cycles then we get network failures on recreation of the domain since the old entries for the domain are still present in the virtual network(s). This issue should (hopefully) be fixed by commit a20d2a92668b2d5e077267c50074bf853ef371d. We've also found that, on occasion, we don't get complete information on a domain's interfaces from ListAllInterfaceAddresses. This patch implements a new method getDomainInterfacesFromNetworks which is called from domainGetIfacesInfo after the qemu agent method has been used if the qemu agent method doesn't return any information. This new method builds the interface information from information collected from the networks themselves. Change-Id: I5271ee191db93b2b1a0f14dc226d0b945f77a901
* Merge pull request #258 from monstermunchkin/support-cdromsThomas Hipp2017-12-08
|\ | | | | support local cdroms
| * support local cdromsThomas Hipp2017-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Local cdroms can now be added directly to the domain. See the following example: ```hcl resource "libvirt_domain" "test-domain" { name = "test" disk { file = "path/to/file.iso" } } ``` Furthermore, a small Tiny Core Linux (TCL) ISO image has been added to the testdata. This can be used for testing purposes. Signed-off-by: Thomas Hipp <thipp@suse.de>
* | Merge pull request #256 from monstermunchkin/unique-volume-nameThomas Hipp2017-12-08
|\ \ | | | | | | check uniqueness of storage volume name
| * | check uniqueness of storage volume nameThomas Hipp2017-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | The storage volume name needs to be unique. If this is not the case, the storage volume will be overwritten which is not problematic itself. However, `terraform destroy` will fail since it will try and delete the same storage volume twice. Signed-off-by: Thomas Hipp <thipp@suse.de>
* | | Make add/updateHost a bit more resilientChristian Simon2017-12-02
| |/ |/| | | | | | | * provide a updateOrAddHost method that first will try to update an existing one, before adding a host entry
* | Merge pull request #255 from MalloZup/remove-runningThomas Hipp2017-11-30
|\ \ | |/ |/| remove running property in net and domain
| * remove running property in net and domainDario Maiocchi2017-11-28
| |
* | tests: format hcl stringsThomas Hipp2017-11-27
|/ | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* Simplify the wait_for_leases mechanismAlvaro Saurin2017-11-27
|
* Retry the query about interfaces to the qemu-agentAlvaro Saurin2017-11-27
|
* adding documentation about network autostartDario Maiocchi2017-11-27
|
* add test for autostart optionDario Maiocchi2017-11-27
|
* Init first backportDario Maiocchi2017-11-27
|
* Remove intermediate variables in map iterationDuncan Mac-Vicar P2017-11-24
|
* Simplify for loopDuncan Mac-Vicar P2017-11-24
|
* Type not needed in literal anymoreDuncan Mac-Vicar P2017-11-24
|
* No need to make a 0 len sliceDuncan Mac-Vicar P2017-11-24
|
* Do not choke on empty kernel cmdlineDuncan Mac-Vicar P2017-11-24
|
* Split kernel cmdline testDuncan Mac-Vicar P2017-11-24
|
* Read back cmdline, initrd and kernel attributes from the resourceDuncan Mac-Vicar P2017-11-24
|
* Fix tests by adding fixture for kernel and initrdDuncan Mac-Vicar P2017-11-24
|
* Add support for kernel/initrd/cmdlineDuncan Mac-Vicar P2017-11-24
|
* don't allocate memory with 0 make variablesMalloZup2017-11-24
|
* remove duplicata declaration and simplify code.Dario Maiocchi2017-11-24
| | | | This fix is with the cmd "gofmt -w -s *"
* use poolMutexKV for locking resources.Dario Maiocchi2017-11-22
|
* init govet on travisDario Maiocchi2017-11-22
|
* golint: Url -> URLDuncan Mac-Vicar P2017-11-19
|
* Document disks from urlDuncan Mac-Vicar P2017-11-19
|
* Reuse newDefDisk()Duncan Mac-Vicar P2017-11-19
|
* Add support for remote http disks (qemu http curl backend)Duncan Mac-Vicar P2017-11-19
|
* add volume cloud_init test checkDario Maiocchi2017-11-16
|
* add geniso to travis_guestDario Maiocchi2017-11-16
|
* Add AcceptTest for CloudInitDario Maiocchi2017-11-16
|
* golint on resource_libvirt_domain_test.goDario Maiocchi2017-11-16
| | | | Use correct names in comments
* common string constant for errmsg lvirtconn is nilDario Maiocchi2017-11-16
|
* golint on various filesDario Maiocchi2017-11-16
|
* Type name will be used as libvirt.LibVirtNetworkDario Maiocchi2017-11-16
| | | | by other packages, and that stutters; consider calling this Network
* type name will be used as libvirt.LibVirtDomain byDario Maiocchi2017-11-16
| | | | other packages, and that stutters; consider calling this Domain
* golinting on various filesDario Maiocchi2017-11-16
|