-
Notifications
You must be signed in to change notification settings - Fork 262
Conversation
Hi @ijc25 !
|
The new code doesn't set any defaults, that's true. I could add them if you think it is useful, neither the hyperkit nor packet instance plugins seem to do that though.
There are valid VM configurations which do not boot a kernel directly, for example ones which boot BIOS or UEFI firmware and a bootloader on the disk so there would be no kernel given in that case.
This PR switches to v3.3.0 which is the latest release, there has only been that one commit (c3209e4 which you referenced) since and it is to do with go 1.5 compat in the lxc backend so probably not too interesting to us. |
CI failure is:
which might be down to the new commit in libvirt-go: libvirt/libvirt-go@c3209e4. I'll add a patch to update to that and see. |
Please sign your commits following these rules: $ git clone -b "libvirt-updates" git@github.com:ijc25/infrakit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354025144
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
@ijc25 Thank you for the reply.
I understood, thanks. |
It's not impossible that there is one at the libvirt level. I actually don't know. I think it probably makes sense to leave it to libvirt to have defaults, rather than add a second layer of potentially contradictory defaults on top. |
@ijc25 - there are errors with the tests
Can you have a look? |
Sure, I somehow missed that in the logs. In hindsight it is rather suspicious that |
Codecov Report
@@ Coverage Diff @@
## master #552 +/- ##
==========================================
- Coverage 56.55% 56.52% -0.03%
==========================================
Files 57 57
Lines 3977 3945 -32
==========================================
- Hits 2249 2230 -19
+ Misses 1440 1433 -7
+ Partials 288 282 -6
Continue to review full report at Codecov.
|
@chungers fixed and force pushed. I added a test case for that specific failure as well as for another I found having fixed the first one. |
Amongst other changes this fixed Domain.ListAllInterfaceAddresses() when there are multiple interfaces. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
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>
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>
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>
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>
Rebased, passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Waiting for the tests to pass before merging...
@chungers tests have passed ;-) |
Two updates:
spec.Properties.Domain
, allowing for more flexibility.instance.Description
if asked too (properties == true
).