Cole Robinson
08a72a4aec
connection: Clean up stable_defaults, improve test coverage
2015-03-23 16:49:32 -04:00
Cole Robinson
0273ee2fac
tests: Move some test suite hacks into the code, increase coverage
2015-03-23 16:25:31 -04:00
Cole Robinson
8220e4c60f
virtinst: Drop unused stable_defaults field
2015-03-23 16:17:07 -04:00
Giuseppe Scrivano
31836e2b5d
virtinst: add support for <disk> sgio attribute
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-03-16 20:32:40 +01:00
Giuseppe Scrivano
478ba6d885
Use virtio-net only when it is supported
...
Do not use the model specified by the OS if it is "virtio-net" and
virtionet is not supported.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1177113
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-02-25 15:32:54 +01:00
Giuseppe Scrivano
00aea929ef
tests: check that vmvga is not used on RHEL
...
And fix typo in last commit
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-02-24 19:03:59 +01:00
Cole Robinson
c7c772b200
virt-install: Default to --boot uefi
...
Try to use --boot uefi if the user hasn't already specified loader params,
or a kernel to boot. If we can't determine a UEFI setup, just print a
warning.
2015-02-22 10:25:51 -05:00
Cole Robinson
a04307cd70
virt-install: Add --boot uefi
...
Will enable UEFI if we know libvirt + hypervisor support it, and libvirt
is advertising a suitable UEFI binary.
2015-02-22 10:25:47 -05:00
Cole Robinson
4efc814d7f
connection: Add domain caps handling for fake URIs
...
Allows us to pass in custom domcaps content for testing purposes
2015-02-22 10:25:47 -05:00
Anatoly Belikov
e44b95149b
devicedisk: fix source name attribute for gluster volumes
...
(crobinso: Small code tweak, and add test cases)
2015-01-29 11:31:43 -05:00
Giuseppe Scrivano
dc169c1406
tests: check that HYPER-V is not enabled on win7 guest with UEFI
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-01-27 20:52:06 +01:00
Cole Robinson
5018233f63
tests: Test --channel none
2015-01-09 10:52:59 -05:00
Cole Robinson
aa772f01e1
guest: Prefer virtio-scsi for arm mach-virt
...
Since it gives us disk hotplug, and CDROM devices, etc.
This requires fairly recent patches to UEFI/OVMF/AAVMF
2014-12-17 15:23:05 -05:00
Chen Hanxiao
08007d56fe
test_urls: remove commented fedora21 alpha urls
...
Discoverd by pep8 '# ' style.
introduced by 92b443df
We forgot to delete it.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-12-12 10:10:17 +08:00
Chen Hanxiao
5d0c68cc0c
clitest: replace DIR from current pwd to '/var'
...
Introduced by f16dc4dd34
This will cause test case failure on different machines.
Use '/var' to replace it.
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-12-12 10:05:40 +08:00
Cole Robinson
92b443df55
test_urls: Update
2014-12-10 13:39:18 -05:00
Cole Robinson
0370d3b796
devicedisk: Never raise error for missing TYPE_VOLUME
...
We can't predict when it's expected or not, so just never raise the
error and let libvirt error if the user is trying do things at
create time.
2014-12-10 13:22:42 -05:00
Cole Robinson
9ae3dbe05b
virt-install: Fix --disk pool=NETPOOL,size=... creation
2014-12-10 13:22:42 -05:00
Cole Robinson
cb124bccbd
testdriver: Add more gluster examples
2014-12-10 13:22:42 -05:00
Cole Robinson
e1ab165b1a
cli: Don't try to create storage with source_pool + size
2014-12-10 13:22:42 -05:00
Cole Robinson
117cbfe12f
devicedisk: Don't set driver name=unknown for rbd vols
2014-12-10 13:22:42 -05:00
Cole Robinson
f16dc4dd34
tests: clitest: Lots of house cleaning
...
Drop redundant tests, organize things better, add more tests where we
can stick new cli device options and view the output, since that's the
most common extension.
2014-12-10 13:22:42 -05:00
Martin Kletzander
2890d70a79
tests/testdriver: Don't use invalid uid values
...
The value 4294967295 used in the testdriver for sheepdog volume is not
valid on 32bit systems as it won't fit in uid_t and libvirt will fail
parsing that.
Running "./setup.py test" then fails with:
raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: XML error: malformed owner element
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2014-12-10 10:06:54 +01:00
Cole Robinson
464ebabc5a
virt-install: Wire up --disk vol= for network volumes
...
This involves convering pool/vol XML to disk source bits
2014-12-09 18:23:22 -05:00
Cole Robinson
214872498d
test: Set volume type in testdriver XML
2014-12-09 17:50:16 -05:00
Cole Robinson
e61311fc8a
storage: More support for network pools
...
Including parsing multiple hosts, filling reasonably defaults, making
sure the createpool wizard does the correct thing, etc.
2014-12-09 16:12:47 -05:00
Cole Robinson
838d7f015c
tests: Drop a bunch of redundant xmlconfig tests
...
These are mostly covered by clitests. Keep the important ones around
for code coverage.
2014-12-09 13:19:56 -05:00
Cole Robinson
9952764dda
virt-install: Make --disk $URL 'just work'
...
If VirtualDisk.path is set to a URL, parse it and fill in all the
source_* values automagically.
2014-12-09 10:45:26 -05:00
Cole Robinson
3ac272e635
uri: Add unit tests, fix some bugs
2014-12-09 10:15:53 -05:00
Cole Robinson
81009caa54
tests: clitest: Drop explict readonly file testing
...
This was originally to hit certain code paths in virtinst that are long
gone, and was causing issues for running the test suite in certain
situations:
http://www.redhat.com/archives/virt-tools-list/2014-December/msg00010.html
2014-12-09 07:13:27 -05:00
Cole Robinson
cd305da3f8
virt-install: support network --disk's
...
Handle type=network in devicedisk.py, and wire up all the network fields
for virt-install --disk. Right now it requires manually spelling out
all the protocol, name, host/port etc fields.
The one 'magic' bit is that VirtualDisk.path will be a pretty URL when
all those network fields are specified. This is keeps things mostly
working in various parts of the code where we expect 'path' to be an
identifier for a VirtualDisk.
2014-12-06 21:00:51 -05:00
Cole Robinson
c5f5827499
tests: xmlparse: Simplify disk lookup
2014-12-06 21:00:07 -05:00
Cole Robinson
86682c8c54
virt-install: Support --disk source_pool,source_volume
...
For setting type=volume disks. This requires some reworking of
devicedisk bits
2014-12-06 17:14:16 -05:00
Cole Robinson
7e7b1bdd4e
tests: Order disks in same order libvirt shows them
2014-12-06 16:43:53 -05:00
Cole Robinson
7b8e850bc0
clitest: Sanitize diff output some more
2014-12-06 16:32:10 -05:00
Cole Robinson
cf0206a58c
devicedisk: Break apart set_create_storage
...
And break about the vol_install vs local clone storage creators. And
just generally delete a lot of code. The commit aint pretty but it works
and deletes a ton of hacks
2014-12-05 23:28:53 -05:00
Cole Robinson
40a5ec75b7
tests: Switch away from set_create_storage
2014-12-05 21:49:10 -05:00
Cole Robinson
2acbf52ce3
cli: If creating storage, always build vol_install
...
This is the start of moving this logic out of devicedisk
2014-12-05 20:00:11 -05:00
Cole Robinson
0389ab23a7
diskbackend: Remove backing by pool object
...
It just muddles things up for a minor edge case. The autopoolify logic
should catch all practical cases we care about.
2014-12-04 19:45:00 -05:00
Cole Robinson
a75aa47daf
devicedisk: Use consistent capitalization for property names
2014-12-04 16:30:18 -05:00
Cole Robinson
e71e5cd9dd
devicedisk: Open code _xmlpath handling
...
Rather than depend on xmlbuilder infrastructure. We will need to extend
this logic for network disks, and it's easier this way.
2014-12-04 15:28:14 -05:00
Cole Robinson
e992cc15b2
virt-xml: Disable clearxml= for devices
...
It doesn't work in the general case, and users can just --remove and
--add devices as needed for the same effect
2014-12-04 15:28:14 -05:00
Cole Robinson
8d6ffafa1b
tests: testdriver: More network storage examples
2014-12-04 13:06:20 -05:00
Cole Robinson
899bff4c4d
tests: Quiet things with non-latest libvirt
2014-12-04 13:04:02 -05:00
Giuseppe Scrivano
d2e6271337
Revert "tests: fix tests suite with last libvirt version"
...
This reverts commit 9477f06376
.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-12-01 18:00:16 +01:00
Giuseppe Scrivano
9477f06376
tests: fix tests suite with last libvirt version
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-12-01 17:02:22 +01:00
Giuseppe Scrivano
51e5a47120
virt-manager: reset vgamem for video when changing device type
...
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1169295
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-12-01 17:02:22 +01:00
Giuseppe Scrivano
9d633879b1
tests: fix failures with libvirt upstream version
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-11-25 10:42:51 +01:00
Cole Robinson
26828b52cc
guest: Use virtio-scsi for arm machvirt CDROM
...
Since it's the only option we have to actually use the CDROM
2014-11-20 11:27:09 -05:00
Cole Robinson
60e62e2676
osdict: Add back compat 'virtio26' entry
...
We used to have that in the old osdict. Map it to fedora10 which gives
virtio net/block but nothing else, which matches the old behavior.
2014-11-17 10:22:37 -05:00