| Commit message (Collapse) | Author | Age |
... | |
| |
|
|
|
|
| |
Use correct names in comments
|
| |
|
| |
|
|
|
|
| |
by other packages, and that stutters; consider calling this Network
|
|
|
|
| |
other packages, and that stutters; consider calling this Domain
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
with punctuation or a newline
|
| |
|
|
|
|
| |
name of the function
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Fix libvirt ovmf firmware integration test on non-Ubuntu
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
add some basic comments for exported function(fixing golint)
|
|/ |
|
|
|
| |
Current behavior is to set the source path to empty string, which blocks the Guest Agent from working correctly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
Full support for arch,machine & emulator settings
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
We have to `free()` the stream once they are no longer used.
|
|
|
|
| |
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
|
|
|
| |
Network addresses when trying to format the prefix as an int,
while it is a string
Fixes: #160
|
|
|
|
|
|
|
| |
Use `<host/>` instead of `<NetworkDHCPHost/>` as libvirt complains
about the latter.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
|
|
| |
This fixes #135.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
|
|
|
|
| |
Use the correct cloudinit ID if things have changed.
This fixes #145.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
| |
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
| |
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Make sure to only then free volumes if there are no errors.
This fixes #151.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
| |
|
|
|
|
|
|
|
| |
When specifying a console port, it won't panic because of an invalid
interface conversion.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
|
|
|
|
|
|
|
| |
Replace the custom XML structs with libvirt's offcial ones.
This resolves #143.
Signed-off-by: Thomas Hipp <thipp@suse.de>
|
| |
|