Commit Graph

123 Commits

Author SHA1 Message Date
Ben LeMasurier
d556125e20 Add support for undefining a domain 2016-09-28 15:37:06 -06:00
Ben LeMasurier
d473469e69 Merge pull request #11 from digitalocean/migrate-padding
migrate: insert required request structure padding
2016-09-28 11:26:01 -06:00
Ben LeMasurier
73ac0f5012
migrate: insert required request structure padding
Further testing reveals we need some additional padding on the request
passed to libvirt when performing migrations. I believe this is due to
the structure alignment normally provided automatically by the compiler.

In testing, this fixes an error I was seeing: "Unable to decode message
paylaod", returned from libvirt when performing migrations.
2016-09-28 11:07:03 -06:00
Matt Layher
754c709cd3 Merge pull request #9 from digitalocean/mdl-travis-go17
travis: use Go 1.7
2016-08-31 17:09:20 -04:00
Matt Layher
594b5ab909
travis: use Go 1.7 2016-08-31 16:58:56 -04:00
Matt Layher
016a7d47c3 Merge pull request #8 from cdrage/update-docs
Add note to constants
2016-08-31 16:34:22 -04:00
Charlie Drage
22e7211e58 Add cdrage to authors 2016-08-31 16:30:10 -04:00
Charlie Drage
4603ca308d Add note to constants
Adds a small note to the constants.go file for creating a new api call
within libvirt.go
2016-08-31 13:34:49 -04:00
Ben LeMasurier
0417eacbef Merge pull request #7 from digitalocean/migrations
Add support for domain migrations
2016-08-22 07:21:06 -06:00
Ben LeMasurier
128bc7d448
Add support for domain migrations
This adds basic support for domain migrations from one hypervisor to
another. Migration options, e.g., live, tunneled, compressed, etc..,
are specified by the constants described `constants.Migrate*`.

Two unknowns remain, Libvirt specifies `RemoteParameters` and `CookieIn`.
In testing both values are always set to 0 by `virsh` and the source
does not provide clear definitions of their purpose. For now, using
the same zero'd values used by `virsh` will be Good Enough.
2016-08-21 09:10:30 -06:00
r-medina
0b294fc010 Merge pull request #6 from digitalocean/rm/add-to-authors-file
added Ricky Medina to AUTHORS
2016-08-04 14:55:40 -04:00
ricky
ff0d37f436 added Ricky Medina to AUTHORS 2016-08-04 14:52:33 -04:00
r-medina
ff6bc69191 Merge pull request #5 from digitalocean/rm/add-migrate-set-speed
adding `virsh migrate-setspeed`
2016-08-04 14:36:44 -04:00
ricky
92abb8c314 adding virsh migrate-setspeed 2016-08-04 14:29:29 -04:00
Ben LeMasurier
a8acb825b1 Merge pull request #4 from digitalocean/qemu-errors
check for QEMU response errors
2016-07-19 10:53:51 -06:00
Ben LeMasurier
759a8c0337
check for QEMU response errors
When performing QEMU monitor commands, libvirt will return StatusOK even
when the underlying QEMU process fails to perform the command.

This modifies Run() to check for QEMU errors.

I'm not entirely happy with the hacky modifications to the test library
to handle this scenario. The test framework is in obvious need for a
complete refactor. For now this will have to work.
2016-07-19 10:40:47 -06:00
Ben LeMasurier
beeb8df345 Merge pull request #3 from digitalocean/report-card-link
README: fixes broken go report card link
2016-06-27 13:19:07 -06:00
Ben LeMasurier
fc88e157af Merge pull request #2 from digitalocean/fix-buffer-overwrite
fixes response overwrite bug
2016-06-27 13:19:02 -06:00
Ben LeMasurier
81b4c37b63
README: fixes broken go report card link 2016-06-27 12:59:01 -06:00
Ben LeMasurier
e99de2e999
fixes response overwrite bug
This fixes a bug in truncated response payload handling. Payloads
requiring more than one call to `Read()` were overwiting the previous
Read()'s buffer contents. Because we know the response payload size, we
can simply call `io.ReadAll()` rather than looping over calls to
`Read()`.
2016-06-27 12:40:39 -06:00
Ben LeMasurier
d57bbc34c4 Merge pull request #1 from digitalocean/test-pkg
Adds test package
2016-05-20 14:46:07 -06:00
Ben LeMasurier
65d878e075 Adds test package
This splits out the mock libvirt server for testing within
other packages. Constants from the main libvirt package
have been moved to a separate package, constants, for shared access.
2016-05-20 10:50:10 -06:00
Ben LeMasurier
2ccd33a8df Initial Commit 2016-05-19 19:40:34 -06:00