Rauno Väli
582c1d3ded
devicedisk: copy all rbd pool host and auth for volume
...
(crobinso: add test suite coverage, fix some pylint)
2018-01-30 11:30:22 -05:00
Menno Lageman
ae5239358a
virtinst: Add NUMA distance support
...
Now that libvirt has support for administration of distances between NUMA cells
it would be nice to be able to set those with virt-install directly instead of
having to 'virsh edit' the domain XML manually after installation.
For example
--cpu cell0.memory=1234,cell0.cpus=0-3,cell1.memory=5678,cell1.cpus=4-7,\
cell0.distances.sibling0.id=0,cell0.distances.sibling0.value=10,\
cell0.distances.sibling1.id=1,cell0.distances.sibling1.value=21,\
cell1.distances.sibling0.id=0,cell1.distances.sibling0.value=21,\
cell1.distances.sibling1.id=1,cell1.distances.sibling1.value=10
would generate the following XML:
<cpu>
<numa>
<cell cpus="0-3" memory="1234">
<distances>
<sibling id="0" value="10"/>
<sibling id="1" value="21"/>
</distances>
</cell>
<cell cpus="4-7" memory="5678">
<distances>
<sibling id="0" value="21"/>
<sibling id="1" value="10"/>
</distances>
</cell>
</numa>
</cpu>
Signed-off-by: Menno Lageman <menno.lageman@oracle.com>
(crobinso: rework cli format, drop some validation, drop man changes)
2018-01-30 11:19:54 -05:00
Cole Robinson
bcdf7c8922
tests: inject: Fix some pylint
2018-01-27 16:27:41 -05:00
Cole Robinson
5e70cee128
tests: urls: Fix pylint
2018-01-27 16:12:11 -05:00
Cole Robinson
e9b4d35dd0
tests: inject: Small updates
...
Fix output, better debugging, update URL list
2018-01-27 15:28:19 -05:00
Cole Robinson
1f23d60725
tests: urls: Tweak output and logging a bit
2018-01-27 15:28:12 -05:00
Cole Robinson
526d62a0e0
tests: Add 'magicuri' helper
...
Command line helper for generatin virtinst MagicURI-style URIs, like
we use in the test suite.
2018-01-21 15:08:16 -05:00
Cole Robinson
f7c50ebe07
uitests: Add a test for command line errors
2018-01-21 14:42:44 -05:00
Cole Robinson
4a4207189f
uitests: Add a live hotplug and media change test
2018-01-21 14:42:44 -05:00
Cole Robinson
ab36d429d6
console: Add a basic spice GL + usbredir test
2018-01-21 14:42:44 -05:00
Cole Robinson
808f9975aa
uitests: xml: drop hardcoded emulator path
2018-01-21 14:42:44 -05:00
Cole Robinson
a10fda6b5c
uitests: console: Add live lxc serial test
2018-01-21 14:42:44 -05:00
Cole Robinson
d774d01e1c
uitests: Add live console tests
...
Using transient VMs connecting to real qemu:///system. uitests are
already system invasive so I think this is okay
2018-01-21 14:42:44 -05:00
Cole Robinson
2fdf0c7ebe
uitests: prefs: Move helper functions to util
2018-01-21 14:42:44 -05:00
Cole Robinson
2bfd2f28c1
uitests: More details config tweaking
2018-01-21 14:42:44 -05:00
Cole Robinson
c68cd7bb00
uitests: Add details editing tests
2018-01-21 14:42:44 -05:00
Cole Robinson
d3137419d0
uitests: Add manager related tests
2018-01-21 10:02:08 -05:00
Cole Robinson
c87bb3937d
uitests: Add dbus remote cli test
2018-01-21 10:02:08 -05:00
Cole Robinson
3ccb947ce3
uitests: Add choosecd dialog tests
2018-01-21 10:02:08 -05:00
Cole Robinson
a6c3fca7a7
uitests: Basic migration tests
2018-01-21 10:02:08 -05:00
Cole Robinson
a9ba930936
uitests: newvm: Add a customize->addhardware test
2018-01-21 10:02:08 -05:00
Cole Robinson
f1468cf1c7
uitests: addhardware error dialog tests
2018-01-21 10:02:08 -05:00
Cole Robinson
114cfb3479
uitests: addhardware controller tests
2018-01-21 10:02:08 -05:00
Cole Robinson
dc3c0b29f7
uitests: addhardware storage/disk testing
2018-01-21 10:02:08 -05:00
Cole Robinson
c620e7405c
uitests: addhardware: add network tests
2018-01-21 10:02:08 -05:00
Cole Robinson
72f006ae8b
utils: Have find 'name' match labeller text too
...
Simplifies API callers
2018-01-21 10:02:05 -05:00
Cole Robinson
d3b6df8e9a
uitests: s/find_pattern/find/g
2018-01-19 11:05:23 -05:00
Cole Robinson
9232a51d55
uitests: Add a bunch of addhardware testing
2018-01-19 11:04:44 -05:00
Cole Robinson
be03382e25
uitests: Add snapshot tests
2018-01-18 16:56:07 -05:00
Cole Robinson
e7c822bf8f
uitests: connect: Fix failure case to always fail
2018-01-15 09:57:33 -05:00
Cole Robinson
d8d71bddfb
ui: Add createnet/pool/vol/interface tests
2018-01-11 21:02:34 -05:00
Cole Robinson
570ee90c4d
uitests: Centralize object list smoketest handling
2018-01-11 10:27:48 -05:00
Cole Robinson
a4e1b64f1a
uitests: Move helper functions into the Node wrapper class
2018-01-11 08:24:58 -05:00
Cole Robinson
9c4c9aeb8f
uitests: Wait for windows to become 'active'
...
If we wait for windows to become active in the window manager before
we try to do any clickyclicky, this solves a lot of the race
conditions I was trying to work around widget by widget
2018-01-10 18:41:55 -05:00
Cole Robinson
8d7440fbde
uitests: Add 'open connection' testing
2018-01-10 13:52:53 -05:00
Cole Robinson
dc344fc8ee
error: Add accessible strings for error dialogs
...
Makes UI testing easier
2018-01-09 17:58:55 -05:00
Cole Robinson
09dd1596e2
uitests: Add preferences dialog tests
2018-01-09 17:41:20 -05:00
Cole Robinson
c073fc2a7e
ui: about: Bump copyright year
2018-01-09 17:41:20 -05:00
Cole Robinson
7a12899b44
uitests: Add test for 'about' dialog
2018-01-09 17:41:20 -05:00
Cole Robinson
4b4f532417
uitests: Wire up --coverage
...
Need to launch the external coverage process to actually measure
things
2018-01-09 13:51:53 -05:00
Cole Robinson
b4a2c46f6a
virt-manager: If --connect passed, wait for it to init
...
...before showing the UI. This helps the UI test suite be less
racy at least.
2018-01-09 13:51:53 -05:00
Cole Robinson
0c615497b1
uitests: Drop sleeps from newvm tests
...
Adds a few new uiutils options to facilitate watching for the expected
result, rather than depending on hardcoded sleeps
2018-01-09 13:51:53 -05:00
Cole Robinson
4fbffc4086
uitests: Drop redundant sleeps
...
All these cases have sleep+backoff built into the dogtail logic,
so we don't need to manually sleep
2018-01-09 12:04:49 -05:00
Cole Robinson
8030e0a35c
uitests: Centralize app shutdown
...
Try a graceful shutdown, wait for app to respond, before trying SIGKILL.
2018-01-09 12:04:43 -05:00
Cole Robinson
acfd59f22b
uitests: Split out UITestCase class
2018-01-09 10:06:26 -05:00
Cole Robinson
044d93d471
tests: Rework how we pass command line objects down to test data
2018-01-08 17:05:55 -05:00
Cole Robinson
89945118df
uitests: Make unittest.installHandler work as expected
...
And ctrl-c exiting in general.
2018-01-08 09:21:42 -05:00
Cole Robinson
0198db6d3f
tests: cli: Skip iso test if isoinfo isn't installed
2018-01-06 15:08:23 -05:00
Cole Robinson
c9ca8ab7ce
tests: test_urls: Simplify adding in local tests
...
I'll use this to scoop up local ISOs for comprehensive testing
locally.
2018-01-06 14:04:34 -05:00
Cole Robinson
c7ed34de63
tests: test_urls: Big rework
...
Move all the test cases to an .ini file. Various cleanups and
minor improvements throughout
2018-01-06 14:04:34 -05:00
Cole Robinson
23c9dd3ee7
tests: clitest: Add an actual stub iso for --location testing
...
And add an explicit nfs URL test
2018-01-06 14:01:44 -05:00
Scott Garfinkle
249ff1ed36
virtio-scsi by default on power
...
Power architecture guests should default to virtio-scsi rather than spapr-scsi
Signed-off-by: Scott Garfinkle <scottgar@linux.vnet.ibm.com>
2017-12-20 13:30:45 -05:00
Cole Robinson
4224b0926e
tests: Remove storage UUID hackery
...
In several cases we were trying to define two different pools with
the same UUID. Libvirt used to accept that but as of a recent
commit it started rejecting it for the test driver.
The UUID stuff isn't adding anything so drop it from all the test
cases and data.
2017-12-14 12:45:01 -05:00
Cole Robinson
5ac933e98a
guest: Set default rendernode= if spice gl requested
...
Since this is required to work out of the box with qemu:///system
2017-11-25 17:29:02 -05:00
Cole Robinson
9b58ea4e51
tests: test_urls: Update URL list
2017-11-22 17:32:20 -05:00
Lin Ma
bbd6a8fd98
testdriver: add missing addrStr for scsi disk
...
Signed-off-by: Lin Ma <lma@suse.com>
2017-11-21 17:39:00 -05:00
Cole Robinson
6fb5baf8a8
tests: xmlparse: explain AddRemoveDevice cases
2017-10-26 12:02:03 +02:00
Lin Ma
9e0e0dfb08
testdriver: Add vhostuser example
...
Signed-off-by: Lin Ma <lma@suse.com>
2017-10-26 11:52:26 +02:00
Chen Hanxiao
4897615a1e
pylint: Replace deprecated assertEquals with assertEqual
...
pylint complain:
Using deprecated method assertEquals() (deprecated-method)
https://docs.python.org/3.3/library/unittest.html#deprecated-aliases
Method Name Deprecated alias Deprecated alias
assertEqual() failUnlessEqual assertEquals
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
2017-10-22 19:24:29 +08:00
Cole Robinson
10246e0caa
tests: uitests: wire up --debug option
2017-10-21 19:41:33 -04:00
Cole Robinson
be7db97ecf
uitests: launch UI with same python executable
...
As the tests were launched with
2017-10-21 19:41:33 -04:00
Chen Hanxiao
7f1b4cee82
pycodestyle: fix all E125 warnings
...
Fix all E125:
Continuation line with same indent as next logical line
Also remove ignore options of E125
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
2017-10-21 23:26:16 +08:00
Cole Robinson
d2648d81cc
virtconv: Don't implicitly depend on dict hash order
2017-10-20 16:13:04 -04:00
Cole Robinson
b8fa0c6b67
xmlnsqemu: Order XML output like libvirt does
...
args before env
2017-10-20 16:13:04 -04:00
Cole Robinson
e4aed23427
tests: Convert file()->open() usage
...
One snuck in recently
2017-10-20 16:13:04 -04:00
Radostin Stoyanov
44de92b772
Use reload() from imp module
...
In Python 3 the reload() function [1] has been moved in the imp
module. [2]
[1] https://docs.python.org/2/library/functions.html#reload
[2] https://docs.python.org/3/library/importlib.html#importlib.reload
2017-10-20 13:18:31 -04:00
Radostin Stoyanov
a2bcd6c43a
Do not compare between None and int
...
In Python 2 comparison between int and None is allowed but in
Pyhton 3 it is not.
Example:
Pyhton 2
>>> None > 0
False
Python 3
>>> None > 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'
2017-10-20 13:18:31 -04:00
Radostin Stoyanov
75210ed37c
Replace StringIO with io.(StringIO or BytesIO)
...
StringIO and cStringIO modules no longer exists in Python 3. [1]
Use either io.StringIO [2] for text or io.BytesIO [3] for bytes.
[1] http://docs.python.org/3.0/whatsnew/3.0.html
[2] https://docs.python.org/3/library/io.html#text-i-o
[3] https://docs.python.org/3/library/io.html#binary-i-o
2017-10-20 13:18:31 -04:00
Radostin Stoyanov
08a58d6145
pycodestyle: Remove description of fixed errors
2017-10-20 11:49:14 -04:00
Radostin Stoyanov
63fce081ed
pycodestyle: Use isinstance() for type checking
...
This is E721 in pycodestyle [1]:
"do not compare types, use ‘isinstance()’"
The main differece between "type() is" and "isinstance()" is that
isinstance() supports inheritance. [1]
This can be seen in the example below:
>>> type(True) is int
False
>>> isinstance(True, int)
True
As we can see in python 'bool' a subclass of 'int'.
[1] https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
[2] https://docs.python.org/2/library/functions.html#isinstance
2017-10-20 11:49:13 -04:00
Cole Robinson
f0987ed9b8
tests: Add more hostkeymap tests
2017-10-18 18:42:50 -04:00
Jim Fehlig
9a9f9ecd2c
virtinst: ignore comments in keymap conf files
...
On a host system with keyboard configured to en-US, it was noticed
that virt-install created install XML with keymap='de'. The host
system did not have /etc/vconsole.conf, so /etc/sysconfig/keyboard
was the next file to check, which contained the following
KEYTABLE=""
Currently the parsing code does not ignore comments and incorrectly
parsed a 'de' keymap. Fix by ignoring any lines that start with '#'
after trimming whitespace.
2017-10-18 17:46:41 -04:00
Cole Robinson
09a53eb2a3
tests: Add basic hostkeymap test
...
To validate an upcoming bugfix
2017-10-18 17:44:29 -04:00
Lin Ma
6dfc4de125
network: add support for parsing/formatting SR-IOV VFs
...
Signed-off-by: Lin Ma <lma@suse.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-10-09 10:22:48 +02:00
Cole Robinson
2d27142c9c
tests: urls: check for latest ubuntu LTS
2017-09-19 19:55:57 -04:00
Pavel Hrdina
8e0303059e
cloner: get original XML with security informations
...
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1455491
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-18 09:04:35 +02:00
Cole Robinson
6b8f0b6e1a
tests: uitests: Add a delay for nvram rename test
...
Seems to fail a bit otherwise
2017-09-15 19:42:40 -04:00
Cole Robinson
cc1a0f8b0a
tests: Add multi <panic> example
2017-09-15 19:33:22 -04:00
Lin Ma
40f70d4fe5
virt-install: add param cache.mode and cache.level for option '--cpu'
...
libvirt supports guest CPU cache by commit df13c0b, So add this feature
to virt-install to configure cpu L3 cache mode.
Currently, The valid values are 'passthrough', 'emulate' or 'disable'.
say:
--cpu host-passthrough,cache.mode=passthrough
or
--cpu $CPU,cache.mode=emulate,cache.level=3
or
--cpu $CPU,cache.mode=disable
Signed-off-by: Lin Ma <lma@suse.com>
2017-09-14 18:54:01 -04:00
Pavel Hrdina
af91d51fc8
cli: introduce snapshot_policy parameter for disk device
...
This allows to configure snapshot behavior for each disk.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1430642
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-12 08:58:31 +02:00
Chen Hanxiao
04e35b2d85
pycodestyle: fix all E124 warnings
...
Fix all E124:
Closing bracket does not match visual indentation
Also remove ignore options of E124
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
2017-09-09 23:21:42 +08:00
Pavel Hrdina
4b108a8c75
tests: fix pylint
...
Commit g785352ea removed unused variable and felt unused import.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:55:47 +02:00
Pavel Hrdina
d718f1a516
graphics: introduce listens.socket parameter
...
Add support to configure socket path for socket listen type.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:11:42 +02:00
Pavel Hrdina
fe6c5067c0
graphics: introduce listens.{type|address|network} parameters
...
Using "listens.*" allows better configuration of listen elements for
graphics devices. Currently the only way how to configure a listen
type is to abuse "listen" parameter and there is no way how to configure
exact "network".
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:11:42 +02:00
Pavel Hrdina
ccaef8c16a
graphics: set default port only for correct listen types
...
The default port and tlsPort should be configured only if no listen
type was specified or the listen type is "address" or "network".
For other listen types the port and tlsPort doesn't make sense.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:11:42 +02:00
Pavel Hrdina
9f191da5c5
devicepanic: add all models supported by libvirt
...
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:09:46 +02:00
Pavel Hrdina
48604bfb37
devicepanic: don't set default iobase
...
This is not required and it's correctly handled by libvirt and QEMU.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:09:46 +02:00
Pavel Hrdina
36230c9a18
devicepanic: use model instead of address.type
...
There are multiple models of the panic device, the address type is only
one and is valid only for "isa" model.
To not break the virt-install/virt-xml the command line parser needs to
be updated. Before this patch there was only one parameter that
configured the "iobase". Now the first parameter configures a model
but to keep it backward compatible it follows these rules:
1. there is only one parameter and it matches known model:
--panic isa
<panic model='isa'>
<address iobase='0x505' type='isa'/>
</panic>
2. there is only one parameter and it doesn't match any model:
--panic 0x505
<panic model='isa'>
<address iobase='0x505' type='isa'/>
</panic>
3. there are two parameters:
--panic isa,iobase=0x505
<panic model='isa'>
<address iobase='0x505' type='isa'/>
</panic>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:09:46 +02:00
Cole Robinson
170a169fcc
test_urls: Remove dead link
2017-09-08 16:58:45 -04:00
Cole Robinson
785352ea60
tests: Fix pylint
2017-09-08 16:55:49 -04:00
Cole Robinson
f0e36d52e7
tests: bypass cache hacking for test:///default
...
To allow us to test the standard code in some cases. Would have caught
the previous issue
2017-08-30 10:36:37 -04:00
Cole Robinson
427592bc7b
tests: test_urls: Add debian s390x example
2017-08-29 11:57:45 -04:00
Cole Robinson
9cffcef66e
tests: test_urls: Update
...
And only have one ftp test, since ftp is sloooow
2017-08-29 11:57:14 -04:00
Cole Robinson
d71ef83942
tests: test_urls: Rework to better handle multiple archs
2017-08-29 11:57:14 -04:00
Chen Hanxiao
b44aa0e3bb
pycodestyle: fix all E131 warnings
...
Fix all E131:
Continuation line unaligned for hanging indent
Also remove ignore options of E131
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
2017-08-26 20:03:21 +08:00
Chen Hanxiao
c92aade081
pycodestyle: fix all E203 warnings
...
Fix all E203 whitespace before ':'
Also remove E203 ignore option of pycodestyle
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
2017-08-11 00:01:38 +08:00
Radostin Stoyanov
b93cc3bbc9
pycodestyle: Do not use bare 'except:'
...
A bare 'except:' catches all exceptions [1], including SystemExit,
KeyboardInterrupt, and GeneratorExit (which is not an error and should
not normally be caught by user code). In situations where you need to
catch all “normal” errors, you can catch the base class for all normal
exceptions, Exception [2].
[1] https://docs.python.org/2/howto/doanddont.html#except
[2] https://docs.python.org/2/library/exceptions.html#Exception
2017-08-02 13:57:43 -04:00
Radostin Stoyanov
2fd6d9aa32
tests: Upgrade pep8 to pycodestyle
...
The PEP8 [1] project has been renamed to pycodestyle [2].
[1] https://github.com/codeclimate/pep8
[2] https://github.com/pycqa/pycodestyle
2017-08-02 13:23:20 -04:00
Cole Robinson
6f8206dc55
uitests: newvm: Fix after CPU UI tweaks
2017-07-20 17:54:11 -04:00
Cole Robinson
1a09a05dc7
tests: Add a clone test for importing nvram directory
...
Need to use some callback magic to fake it like there's a file in
an existing directory
2017-07-20 17:51:06 -04:00
Cole Robinson
6b586e2bed
tests: Rework connection caching
...
Drop the callbacks and instead prime the connection's internal cache.
This will simplify upcoming changes
2017-07-20 17:28:38 -04:00
Cole Robinson
5b51c98ae5
storage: Check for pool name collisions against the pool cache
...
Rather than using storagePoolLookupByName. This will save some API
calls, but the main benefit is that it can help shake out cache
issues.
2017-07-20 17:28:38 -04:00
Cole Robinson
55aa23b400
connection: Return copys of cached object lists
...
Incase any users manipulate the lists, we don't want that to affect
our caching. Could prevent future mistakes
2017-07-20 17:28:38 -04:00
Cole Robinson
4e4a6c817f
connection: Rework cache function layout slightly
...
Have the internal polling functions not touch the connection cache.
This let's us not worry about the connection cache in the test suite,
where clear_cache wasn't 100% correct.
2017-07-20 17:28:38 -04:00
Cole Robinson
e241f4c957
tests: Open a new connection for each test
...
To ensure we are testing each time from a clean state. Isn't causing
obvious issues in practice at the moment but it may with future
changes
2017-07-20 17:27:22 -04:00
Cole Robinson
d3074141c8
cloner: Remove redundant setup() method
...
The functional callers use the individual setup methods, let's drop the
helper function and adjust the test suite
2017-07-20 17:27:22 -04:00
Cole Robinson
1e3e9a9fc4
uitests: Add 'host' window smoke tests
2017-07-20 17:27:22 -04:00
Cole Robinson
ca56f74ed7
capabilities: Fix model list caching for different archs (bz 1451113)
...
We could return cached x86_64 results for aarch64 VMs
https://bugzilla.redhat.com/show_bug.cgi?id=1451113
2017-07-17 11:47:01 -04:00
Cole Robinson
2eaf084b04
capabilities: Drop cpu_map.xml handling
...
We've had getCPUModelNames in libvirt for years now, and this
functionality isn't critical anyways, so drop the fallback
2017-07-17 11:47:01 -04:00
Cole Robinson
c6fdfbf3c3
cli: disk: add driver_detect_zeroes= support
2017-07-15 13:39:04 -04:00
Cole Robinson
f41844f3f2
guest: Use usb3 qemu-xhci for machvirt
...
This is what libvirt will default to nowadays for those configs,
so let's match it.
2017-07-10 19:46:13 -04:00
Cole Robinson
a51929fcd3
snapshots: Handle XML chars in snapshot name (bz 1468912)
...
https://bugzilla.redhat.com/show_bug.cgi?id=1468912
2017-07-10 17:51:04 -04:00
Cole Robinson
0633055fb9
guest: Drop old os type=linux back compat
...
We don't support libvirt versions that require this anymore
2017-07-10 09:34:38 -04:00
Cole Robinson
6d625ae45f
guest: Enable spice sound on more arches
...
If spice is enabled, just assume sound devices will work as well
2017-06-28 16:28:25 -04:00
Cole Robinson
a07a874497
guest: If graphics enabled, add usb tablet/keyboard for machvirt
2017-06-28 16:22:23 -04:00
Cole Robinson
2cabc2e386
guest: Don't add default ps2 or xen mouse
...
libvirt drivers have added these by default for a long time, so
its redudnant here
2017-06-28 16:17:50 -04:00
Cole Robinson
f2de47cee2
guest: Add USB3 controller for machvirt by default
...
...if libvirt is new enough to do machvirt PCI by default. We can
just use usb3 since all guest OS that support aarch64 are new enough
to support it
2017-06-28 15:35:07 -04:00
Cole Robinson
225d53c511
guest: Default to video type=virtio for machvirt
...
That's basically the only working config on KVM
2017-06-28 15:13:44 -04:00
Cole Robinson
0fe76d321b
guest: Enable default virtio-rng for pseries and machvirt
...
arm guys confirmed virtio-rng should be fine. pseries guys didn't
but I think it will be okay
2017-06-28 15:12:00 -04:00
Cole Robinson
47b127b49f
guest: Use virtio more for ppc64 pseries, and s390
...
qemu s390x is virtio only nowadays, and on ppc64 pseries is preferred,
and all relevant OS are going to support it for that case
2017-06-28 15:02:23 -04:00
Cole Robinson
4e7cd661ee
guest: Only add input devices if graphics are specified
2017-06-28 12:05:14 -04:00
Cole Robinson
5a1f2f7b66
tests: add aarch64 graphics test
2017-06-28 11:54:41 -04:00
Cole Robinson
1600ac39f0
fsdetails: Fix displaying filesystem type=ram devices
...
And add a test XML example to demonstrate it
2017-06-27 14:08:44 -04:00
Radostin Stoyanov
795a9d2d44
Set default Filesystem type for LXC to "Mount"
2017-06-20 16:14:17 -04:00
Radostin Stoyanov
0dfc371f18
Keep the value of filesystem/source when attribute is changed
...
When the attribute of filesystem/source is changed the old value was
not assigned to the new attribute.
2017-06-20 16:14:17 -04:00
Yuri Arabadji
4be3d030b5
cli: Add --disk logical/physical_block_size
2017-06-16 13:28:25 -04:00
Cole Robinson
4e7a6ad728
tests: pylint: Silence/fix a bunch of new warnings
2017-06-16 12:54:56 -04:00
Cole Robinson
c75b3a99b1
tests: pylint: Slim down the configuration file
...
Only list things that we change defaults for, or may want to in the future
2017-06-15 08:12:06 -04:00
Pavel Hrdina
b690908aa4
virtinst: enable secure feature together with smm for UEFI
...
The secure feature actually enforce the secure boot if Secure Boot
Mode is configured.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1387479
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-06-07 20:49:45 +02:00
Cole Robinson
1c22105a54
tests: inject: Update URL list
2017-06-07 12:40:46 -04:00
Cole Robinson
1d0b4a0a9e
connect: Handle \ in username
...
We need to quote URL values in the username, that's what libvirt expects.
Unquote the values before caching them in the URI object, so console
connections continue to work
https://bugzilla.redhat.com/show_bug.cgi?id=1452389
2017-06-01 14:26:46 -04:00
Pavel Hrdina
4f8e795c6a
virtinst: if required by UEFI enable SMM feature and set q35 machine type
...
If we detect that the UEFI image is build to require SMM feature we
should configure the guest to enable SMM feature and set q35 machine
type. Without this user wouldn't be able to boot the guest.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1387479
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-06-01 09:58:46 +02:00
Pavel Hrdina
24f9d05329
virt-install: add support for loader secure attribute
...
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-06-01 09:58:46 +02:00
Pavel Hrdina
f38c56c971
virt-install: add support for SMM feature
...
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-06-01 09:58:46 +02:00
Cole Robinson
69f19ca614
tests: test_urls: Update
2017-05-16 17:16:59 -04:00
Cole Robinson
f551d7e55d
Replace file() usage with open()
...
Same semantics, but the latter is needed for python3
2017-05-05 14:53:12 -04:00
Cole Robinson
55288c4551
Convert to python3 style print() syntax
...
Use __future__ imports to keep this working for python2
2017-05-05 14:52:37 -04:00
Cole Robinson
62feeb02a8
Switch to python3 style 'except X as Y' notation
...
Which also works with python2.7
2017-05-05 14:52:11 -04:00
Cole Robinson
fcebefd3bb
tests: Stop using deprecated assertEquals
...
The recommended way is assertEqual
2017-05-05 12:40:52 -04:00
Pavel Hrdina
a2985f07e6
virtinst: add support for memory device
...
This is the actual memory device that is used to hot(un)plug memory
to(from) a guest.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-05-05 12:20:52 +02:00
Pavel Hrdina
3ebbeef80e
virtinst: introduce support for <maxMemory> element
...
This element controls hot(un)plugable memory for the guest in
addition to the initial memory configured by <memory> element.
One has to configure <maxMemory> and guest numa nodes using <numa>
element to enable hot(un)plug of memory modules.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-05-05 11:49:27 +02:00
Lin Ma
ea85a3c680
tests: add test for network forward mode 'open'
...
Signed-off-by: Lin Ma <lma@suse.com>
2017-05-03 14:08:42 -04:00
Lin Ma
be6566a134
testdriver: Add network example of open network forward mode
...
Signed-off-by: Lin Ma <lma@suse.com>
2017-05-03 14:08:38 -04:00
Cole Robinson
7a4acfcd0c
devicedisk: Raise proper error on invalid source_volume (bz 1445198)
...
https://bugzilla.redhat.com/show_bug.cgi?id=1445198
2017-04-27 15:44:46 -04:00
Cole Robinson
8181e86098
guest: Only use define+start logic for vz
...
Handling this for qemu, which may need UNDEFINE_NVRAM flags to do
the cleanup, is a pain, so move this logic to only apply to vz
driver which doesn't support createXML
Mentioned on list: https://www.redhat.com/archives/virt-tools-list/2017-April/msg00037.html
2017-04-27 14:59:41 -04:00
Cole Robinson
4c4d31d67d
tests: Fix after vmvga change
2017-04-19 14:08:04 -04:00
Cole Robinson
ff3b4dc5b0
cli: Don't overwrite install bootorder with manual --boot (bz 1438946)
...
--boot should be for post-install bootorder only
https://bugzilla.redhat.com/show_bug.cgi?id=1438946
2017-04-04 18:22:15 -04:00
Lin Ma
fe9588d438
tests: add test for network of SR-IOV VF pool
...
Signed-off-by: Lin Ma <lma@suse.com>
2017-04-03 19:09:08 -04:00
Lin Ma
17ac04a62b
testdriver: Add missing net dev to match pci dev for SR-IOV network test
...
Add missing net device to match pci device for network ui test of the
SR-IOV VF pool.
Signed-off-by: Lin Ma <lma@suse.com>
2017-04-03 19:09:02 -04:00
Venkat Datta N H
66435cb03d
virt-install:support --features hyperv_synic=(on/off)
2017-03-30 14:19:06 -04:00
venkat
935c93812f
virt-install: support --features hyperv_reset=(on/off)
2017-03-27 17:50:35 -04:00
Lin Ma
7c8005b999
testdriver: Add network example of a pool of SRIOV VFs
...
Signed-off-by: Lin Ma <lma@suse.com>
2017-03-27 17:27:14 -04:00
Lin Ma
262376d16f
nodedev: Parse PCI capability_type for SR-IOV device
...
This will be used in the following patch to recognize SR-IOV capable
device.
Signed-off-by: Lin Ma <lma@suse.com>
2017-03-27 17:15:17 -04:00
Lin Ma
899f53b993
testdriver: Add SR-IOV example
...
Signed-off-by: Lin Ma <lma@suse.com>
2017-03-27 17:15:07 -04:00
Charles d'Hondt
b545201617
Added OpenVSwitch Network Detection
...
Small patch to allow VMM to detect OpenVSwitch
Signed-off-by: Charles d'Hondt <charles.dhondt@gmail.com>
2017-03-24 16:42:45 -04:00
Cole Robinson
24a073a9bc
testdriver: Add openvswitch <network> example
2017-03-24 16:27:46 -04:00
Mikhail Feoktistov
3f59906af6
Add GUI test for Virtuozzo containers
2017-03-22 11:00:50 -04:00
Cole Robinson
fd048e4c1c
tests: Add msgfmt validation for pofiles
2017-03-21 19:23:29 -04:00
Cole Robinson
6715ed6be9
tests: Minor cleanups to ui version file test
2017-03-20 17:04:54 -04:00
Mikhail Feoktistov
c25ea6537b
Tune default device list for Virtuozzo containers
...
Virtuozzo supports virtio NIC.
Also add default VNC graphics.
Privnet feature and emulator device have no sense for vz containers.
2017-03-17 13:36:15 -04:00
Mikhail Feoktistov
d86792fe0a
Add VM capabilities to vz.xml
2017-03-17 13:27:04 -04:00
Cole Robinson
d62e975568
guest: Add default virtio-rng /dev/urandom (bz 1212082)
...
For guests that support it, per libosinfo, and new enough libvirt
to handle /dev/urandom. See the bug for discussion
https://bugzilla.redhat.com/show_bug.cgi?id=1212082
2017-03-08 17:26:19 -05:00
Cole Robinson
e58b1fc95f
uitests: Add details->rename tests
2017-03-08 13:22:09 -05:00
Pavel Hrdina
5e2b63c1ff
virt-clone: add support to clone nvram VARS
...
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1243335
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-03-07 13:06:20 +01:00
Cole Robinson
191896d0dc
cli: Add --qemu-commandline option
2017-03-06 22:15:46 -05:00
Cole Robinson
e7e9369989
util: Catch libxml2 stderr messages
...
Similar to what we do with libvirt. Was never really relevant before,
but some of the namespace XML stuff can be a bit noisy even though it
doesn't have any functional impact that I can tell
2017-03-06 22:15:46 -05:00
Cole Robinson
581e5b2ee8
uitests: Add clone wizard tests
2017-03-06 22:15:46 -05:00
Cole Robinson
ceedece2ca
tests: delete test-clone-halffull VM definition
...
And the associated pool. Neither are that useful.
2017-03-06 22:15:46 -05:00
Cole Robinson
ed92e03f39
tests: make test-clone VMs offline by default
...
Simplifies test cases
2017-03-06 22:15:46 -05:00
Cole Robinson
84d8cd9896
tests: Rename clone test VMs to have a common "test-clone" prefix
2017-03-06 22:05:35 -05:00
Cole Robinson
8a00e493b5
tests: Add mpath and scsi pool to testdriver.xml
2017-03-06 14:51:50 -05:00
Cole Robinson
a2df53db21
guest: Reorder XML output to match libvirt output
2017-03-05 21:04:34 -05:00
Cole Robinson
1757e394bb
virt-install: Support --video vram64= (bz 1377080)
2017-03-05 14:51:25 -05:00
Cole Robinson
d31e933f24
virt-install: support --network trustGuestRxFilters= (bz 1427600)
2017-03-05 14:43:31 -05:00
Cole Robinson
8ebed65459
guest: Only add default usb redirdev for x86
...
Since we only attempt to add a default USB controller for x86, match
it by only trying to add redir devices on x86 as well. Fixes a uitests
failure for ppc testing, since the test:/// driver doesn't add an
implied USB controller, and libvirt now validates that one was provided.
2017-03-05 14:32:14 -05:00
Mikhail Feoktistov
3870001fd2
virtinst: Add tests for Virtuozzo hypervisor
2017-03-01 15:45:24 -05:00
Cole Robinson
fc6778108b
guest: Don't set any defaults for on_*
...
Currently we hardcode these defaults for installing VMs:
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
And these for post-install config:
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
But this has some issues. on_crash=restart is problematic in that most
configs don't support it, and some like virtuozzo actively reject it.
Additionally this we should leave as much to libvirt defaults as we
can, which are more sensible in this case.
Drop everything except setting on_reboot=destroy for the install time
case (which is required for our config changes). Since on_poweroff
and on_crash already default to 'destroy', the install time config
is unchanged, and the post-install config now on_crash=destroy instead
of 'restart'.
The s390 on_crash=preserve workaround is dropped, which was intended
to avoid a reboot loop caused by on_crash=reboot
2017-03-01 14:17:51 -05:00
Cole Robinson
0055798d21
tests: Move __init__ logic into functions, for clarity
2017-02-23 18:47:57 -05:00
Marc-André Lureau
dffb2aaa2d
virtinst/cli: add spice rendernode argument
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-02-23 18:31:43 -05:00
Marc-André Lureau
ae3cc58369
virtinst: remove unnecessary autoport when listen=none
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-02-23 18:31:42 -05:00
Marc-André Lureau
35e6003ba5
nodedev: add DRMDevice
...
drm capability has been proposed for libvirt 3.1, it provide Direct
Rendering Manager (DRM) devices.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-02-23 18:30:00 -05:00
Marc-André Lureau
a861629f0c
nodedev: add DevNode children and helper
...
<devnode> have been proposed for libvirt 3.1, it provides device /dev/
path when available.
The get_devnode() helper will return the by-path/ path preferably, as
they should be stable.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-02-23 16:30:44 -05:00
Marc-André Lureau
806bbbb4ea
tests/nodedev: make compare recursive
...
This will allow to have nested dict for childrens. See the following
commits.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-02-23 16:30:44 -05:00
Cole Robinson
cd2ade9fd7
tests: Fix with latest osinfo-db output
2017-02-22 14:40:49 -05:00
Pavel Hrdina
b4239b7538
tests: fix virt-xml test
...
Broken by commit b1c0a1c2d9
.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-01-17 17:47:46 +01:00
Cole Robinson
e369580450
tests: test_urls: update data
2016-12-13 14:36:24 -05:00
Cole Robinson
a7d3949080
pylint: disable wrong-import-position
...
We need it in some cases, and it's a minor style issue
2016-12-13 11:49:03 -05:00
Charles Arnold
a3206f89c8
virtinst: Add the --sysinfo option
...
Allow passing SMBios information to the guest using the new sysinfo
option. Also update the appropriate files with test cases.
2016-09-08 11:36:59 -04:00
Chen Hanxiao
c859d39428
virt-install: introduce vhostuser interface
...
Add support to interface type 'vhostuser' by:
--network vhostuser,source_type=unix,source_path=/tmp/vhost1.sock,source_mode=server,model=virtio
Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
2016-09-02 18:58:47 -04:00
Kothapally Madhu Pavan
d107762880
Error out cleanly when autoclone or destination file is not specified
...
When virt-clone is used without autoclone or destination file, libvirt
errors with message "ERROR missing source information for device vda".
This doesn't convey what is missing. This patch will indicate which
options to use.
Signed-off-by: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
2016-09-02 14:10:17 -04:00
Cole Robinson
c84c2cfd58
devicechar: Support source_master and source_slave
...
Needed for type=nvdm for *bsd
https://bugzilla.redhat.com/show_bug.cgi?id=1369803
2016-08-24 16:37:36 -04:00
Cole Robinson
4c759ad23d
util: Move default_* network bits to deviceinterface
2016-08-24 16:14:33 -04:00
Cole Robinson
64c286e68b
tests: Fix pep8 issue
2016-08-16 20:04:08 -04:00
Cole Robinson
cf1b820e19
tests: urls: Update fedora24 test
2016-08-16 19:05:54 -04:00
Cole Robinson
137a6c4600
tests: urls: Add centos ppc64le URL
2016-08-16 18:52:09 -04:00
Tristan Helmich
27703ca379
storage: Enable creation of zfs storave volumes
2016-08-09 11:48:34 -04:00
Cole Robinson
322d212516
cli: Add --serial log.file= and log.append=
...
And for other character devices --console, --parallel, --channel
2016-07-18 15:04:40 -04:00
Cole Robinson
fb6548d344
tests: testdriver: add <sysinfo> example
2016-07-18 14:46:50 -04:00
Pavel Hrdina
1bed021a00
tests.xmlparse: fix network test
...
Device <interface type='ethernet'/> doesn't support <source dev=''/> attribute.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2016-07-08 18:01:35 +02:00
Pavel Hrdina
ad133796b5
tests.testdriver: add usb controller if usbredir is used
...
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2016-07-08 16:00:13 +02:00