summaryrefslogtreecommitdiff
path: root/libvirt
Commit message (Collapse)AuthorAge
...
* 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
|
* don't export oui variableDario Maiocchi2017-11-16
|
* fix golint on coreos_ingition_def.goDario Maiocchi2017-11-16
|
* fix golint on stream and volume_def.goDario Maiocchi2017-11-16
|
* Fix IP golint issues (style)Dario Maiocchi2017-11-16
|
* fix golint on utils_net.goDario Maiocchi2017-11-16
|
* fix golint issues on utils.goDario Maiocchi2017-11-16
|
* Fix golint on test cloudinitDario Maiocchi2017-11-16
|
* error strings should not be capitalized or endDario Maiocchi2017-11-16
| | | | with punctuation or a newline
* fix golint on cloudinit_def.goDario Maiocchi2017-11-16
|
* comment on exported function should Start withDario Maiocchi2017-11-16
| | | | name of the function
* don't use underscores in Go namesDario Maiocchi2017-11-16
|
* fix golint on libvirt/utils_volume.goDario Maiocchi2017-11-16
|
* fix golinting libvirt/resource_libvirt_domain_testDario Maiocchi2017-11-16
|
* Dont print debug info it tests are okMalloZup2017-11-14
|
* Merge pull request #226 from dmacvicar/fix_firmware_test_suseThomas Hipp2017-11-10
|\ | | | | Fix libvirt ovmf firmware integration test on non-Ubuntu
| * make golint happyDuncan Mac-Vicar P2017-11-10
| |
| * make the firmware file consistent with the docsDuncan Mac-Vicar P2017-11-10
| |
| * Fix libvirt ovmf firmware integration test on non-UbuntuDuncan Mac-Vicar P2017-11-10
| | | | | | | | | | | | | | | | On SUSE systems, these paths are different. In order to reuse the code that looks for the right files, we make the template and no-template case sub-tests of the main test containing the lookup code. Also, if the files are not there, skip the test.
* | Uri should be named URIMalloZup2017-11-08
| | | | | | | | add some basic comments for exported function(fixing golint)
* | add gofmt check for pkg(libvirt and main)MalloZup2017-11-07
|/
* Bugfix: let libvirt populate channel sourceSilvio Moioli2017-10-17
| | | Current behavior is to set the source path to empty string, which blocks the Guest Agent from working correctly.
* update Terraform and Go versionThomas Hipp2017-09-22
| | | | | | | | | | | | | | This updates Terraform to the latest version. Travis will build with go1.9 from now on, since Terraform > 0.10.2 doesn't support go1.8. Glide was run with `--strip-vendor` which removes a lot of unnecessary files. Tests and Docs regarding `ignition` have been updated. This resolves #194. Signed-off-by: Thomas Hipp <thipp@suse.de>
* Merge pull request #180 from deasmi/machinearchupdateThomas Hipp2017-09-22
|\ | | | | Full support for arch,machine & emulator settings
| * Full support for arch,machine & emulator settingsDean Smith2017-09-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add emulator setting support Completes support from arch and machine when reading current status Adds a new function newDomainDefForConnection that takes a domainDef and populates with defaults from the current host which is more sensible than guessing across distributions Maps canonical machine types <> actual to avoid changes Due to the way libvirt works if you specific machine types like pc,isapc or q35 these get translated into 'canonical' forms, ie. the latest version When quering terraform will notice a change, as it would still be looking for pc and will get something like pc-i440fx-2.9. Code has been added to assume that if we see 'pc-i440fx-2.9' and it is canonical for pc then we translate back to pc for terraform. This could cause issues if you are specifically using pc-i440fx-2.9 as the machine type in your terraform file.
* | Remove redundant hostname checkRavi Shekhar Jethani2017-09-20
| | | | | | | | | | | | | | | | | | | | Currently while creating domain we are checking whether hostname has been set or not. But from the code it's clear that hostname will _always_ be set. Hostname will be set to domain name by default which maybe overridden via the optional hostname attribute of the network interface definition. Hence removing the unnecessary check.
* | FIX waitForLeases invalid key issueRavi Shekhar Jethani2017-09-16
|/ | | | | | | | | | | | | | We are modifying network interface object after adding it as key to waitForLeases map. This makes the interface object stored in the key invalid when it is used in functions like hasNetworkAddress() later. As a result of this the code does not wait for the interface to get the lease even after specifying `wait_for_lease = true` in the tf file. To fix this we move the code to add interface struct object to waitForLeases map only after all modifications are done i.e. near to the end of for loop.
* domain: Add support for BootDevice.Sam Batschelet2017-09-06
|
* Adding tests for machine and arch domain attributes from #166Dean Smith2017-08-30
|
* Adding support for arch and machine typeDean Smith2017-08-29
| | | | | | This adds support for setting the architecture and machine type of the created virtual machine by adding two new attributes machine and arch to the domain definition
* Ensure libvirt stream are cleaned up properlyFlavio Castelli2017-08-11
| | | | We have to `free()` the stream once they are no longer used.
* use libvirt-go-xml for volumesThomas Hipp2017-08-11
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* Fix string format of network addressesGraham Hayes2017-08-10
| | | | | | | Network addresses when trying to format the prefix as an int, while it is a string Fixes: #160
* fix XML name of DHCP host elementThomas Hipp2017-08-08
| | | | | | | Use `<host/>` instead of `<NetworkDHCPHost/>` as libvirt complains about the latter. Signed-off-by: Thomas Hipp <thipp@suse.de>
* cloudinit: show user_data in .tfstate fileThomas Hipp2017-08-08
| | | | | | This fixes #135. Signed-off-by: Thomas Hipp <thipp@suse.de>
* cloudinit: handle changes correctlyThomas Hipp2017-08-08
| | | | | | | | Use the correct cloudinit ID if things have changed. This fixes #145. Signed-off-by: Thomas Hipp <thipp@suse.de>
* fix importThomas Hipp2017-08-08
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* vendor: depend on terraform v0.10.0Thomas Hipp2017-08-08
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* network: ensure networks are recreatedThomas Hipp2017-08-08
| | | | | | | | | | Ensure that networks are only free'd if there are no errors. Furthermore, make sure that networks are recreated if they cannot be found on the remote. This fixes #74. Signed-off-by: Thomas Hipp <thipp@suse.de>
* ensure volumes are free'd if there are no errorsThomas Hipp2017-08-08
| | | | | | | | Make sure to only then free volumes if there are no errors. This fixes #151. Signed-off-by: Thomas Hipp <thipp@suse.de>
* Added support for specifying NVRAM templates when using UEFI images.J. Eduardo2017-08-01
|
* fix failing console port conversionThomas Hipp2017-07-31
| | | | | | | When specifying a console port, it won't panic because of an invalid interface conversion. Signed-off-by: Thomas Hipp <thipp@suse.de>
* use github.com/libvirt-go-xmlThomas Hipp2017-07-27
| | | | | | | | Replace the custom XML structs with libvirt's offcial ones. This resolves #143. Signed-off-by: Thomas Hipp <thipp@suse.de>
* Fix crash occuring when domain is in state file but doesn't exist in libvirt.Zbigniew Kostrzewa2017-07-15
|