Cole Robinson
d3dbbe9f54
xmlbuilder: Add explicit support for refreshing an XML prop
2013-07-14 16:34:54 -04:00
Cole Robinson
c12327cbd1
Guest: Switch memory units to KB to match default XML
2013-07-13 23:07:01 -04:00
Cole Robinson
69e1d66b53
xmlbuilder: Few misc cleanups and streamlinings
2013-07-13 22:51:54 -04:00
Cole Robinson
7d75a43e33
XMLProperty: Add convenience param is_int
2013-07-13 21:49:32 -04:00
Cole Robinson
5f58d05051
VirtualDisk: Convert more XMLProperties to the new world order
2013-07-13 21:40:54 -04:00
Cole Robinson
41afdfd9aa
hostkeymap: Globally cache the host lookup
...
Rather than make the callers worry about it
2013-07-13 20:58:09 -04:00
Cole Robinson
ed826315a5
xmlbuilder: Simplify free'ing xpath contexts
2013-07-13 20:47:19 -04:00
Cole Robinson
02f35628fb
VirtualDisk: Make get_xml_config not have side effects
...
Move all the defaults setting to a set_defaults function, wire it
up to Guest.get_xml_config.
2013-07-13 20:22:19 -04:00
Cole Robinson
e7b518cbff
Guest: Drop validate_parms, it's not useful
2013-07-13 20:01:07 -04:00
Cole Robinson
e04dfdd4ff
virtinst: Test rhel defaults, and make sure it doesn't break test suite
2013-07-13 20:01:07 -04:00
Cole Robinson
b152e83fef
virtinst: Rename XMLBuilderDomain.py -> xmlbuilder.py
...
And XMLBuilderDomain -> XMLBuilder
And _xml_property -> XMLProperty
2013-07-13 18:57:24 -04:00
Cole Robinson
4d5ca0ae5a
XMLBuilder: Simplify is_multi handling
2013-07-13 18:57:20 -04:00
Cole Robinson
d8c68e3495
XMLBuilder: Split up massive get/set helpers
...
This should be a no-op, just a big cleanup
2013-07-13 17:54:46 -04:00
Cole Robinson
c78c358662
tests: Drop validation.py, largely useless at this point.
2013-07-13 16:52:03 -04:00
Cole Robinson
4ce1774d53
VirtualDisk: Rework provisioning and validation behavior
...
We separate all the provisioning bits to diskbackend.py. VirtualDisk
users now need to explicitly opt in to storage creation by using
set_create_storage().
validation is no longer done automatically, users must call the
validation() command.
__init__ drops all extra parameters.
This will eventually get us to a point where we can unify the manual
XML building and XML parsing machinery, and get consistent validation
behavior between devices.
2013-07-13 16:37:33 -04:00
Cole Robinson
d6f5c3a729
setup.py: Add test --only option
...
Allows running only tests that match the passed string.
2013-07-13 16:33:14 -04:00
Cole Robinson
5962fde3e6
VirtualConnection: Fix uri helpers when we use the default empty URI
2013-07-13 16:32:21 -04:00
Cole Robinson
38fa89fe9f
uihelpers: Don't error checking host space if default pool is busy
2013-07-13 16:32:21 -04:00
Cole Robinson
2540c5dc9a
virt-install: Fix use of removed get_uri API
2013-07-13 16:32:21 -04:00
Cole Robinson
fbf2d9ee40
VirtualDisk: Convert simple props to unified parse/get/set
2013-07-12 15:26:51 -04:00
Cole Robinson
ce243314c0
tests: Verify that every new style XML prop is exercised
...
coverage isn't going to help us much here, so add some hacky infrastructure
to ensure that xmlparse.py is touching every new style xmlprop.
2013-07-12 15:19:37 -04:00
Cole Robinson
dcd632da80
XMLBuilder: Provide default fget and fset impls
...
This is the first step towards unifying the XML handling split between
parsing and creating from scratch. Demonstrate it with VirtualDisk.iotune
bits.
2013-07-12 14:41:29 -04:00
Cole Robinson
f620b317b9
tests: Make sure all XML use " for quoting
...
This is what libxml outputs with, and it's going to mess up
test output with upcoming tests.
2013-07-12 14:19:54 -04:00
Cole Robinson
0d5fe93048
Centralize XML helpers in virtinst/util.py
2013-07-12 13:10:23 -04:00
Cole Robinson
534e613d40
VirtualNetworkInterface: Absord MAC generating routines
2013-07-12 13:10:23 -04:00
Cole Robinson
b26fd8fa3e
tests: Minor cleanup in xmlparse
2013-07-12 13:10:23 -04:00
Cole Robinson
f1b55090d2
VirtualDisk: Drop cache and io from __init__
...
They are barely used and can be specified separately.
2013-07-12 13:10:23 -04:00
Cole Robinson
57d4fcab33
VirtualDisk: Drop the volName parameter, it's not needed
2013-07-12 13:10:22 -04:00
Cole Robinson
c151b75896
XMLBuilder: Remove largely unused validation helpers
...
They aren't adding much value
2013-07-12 13:10:22 -04:00
Cole Robinson
fcc82e8f9d
virt-manager: Fix --show-* options
2013-07-12 13:10:05 -04:00
Cole Robinson
d09bc39a2b
serialcon: Fix copy+paste
2013-07-11 13:32:41 -04:00
Cole Robinson
318ba7e474
VirtualConnection: Deal with Guest objects, not raw XML
...
We already do XML parsing, no need to open code it elsewhere
2013-07-10 20:09:51 -04:00
Cole Robinson
97264a3dfe
VirtualConnection: Some reorganizing to avoid circular references
2013-07-10 20:09:51 -04:00
Cole Robinson
3d1b1735ee
XMLBuilder: Simplify XML deference
...
As long as we carry around a reference for every time we lookup
a sub node and use a wrapper class to do the free'ing, we should
be fine.
2013-07-10 20:09:51 -04:00
Cole Robinson
2f43fb68d9
man: Drop all AUTHORS section
...
They aren't really maintainable.
2013-07-10 17:49:45 -04:00
Leonardo Garcia
ddcd29bfeb
Improve virt-manager man page.
...
Clarify the usage of --show-* options.
2013-07-10 12:55:36 -04:00
Leonardo Garcia
297fd32046
Make virt-manager man page consistent.
2013-07-10 12:55:36 -04:00
Cole Robinson
5f497cba41
console: Don't double create spice display
...
I can't reproduce, but a couple gentoo users have issues that this
fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=981975
2013-07-09 17:50:05 -04:00
Cole Robinson
2ca9e364a5
uihelpers: Drop global error dialog
...
Just have callers pass one in.
2013-07-09 09:20:43 -04:00
Martin Kletzander
f08313513b
Use proper disk targets.
...
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=968878
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2013-07-09 09:12:53 -04:00
Cole Robinson
bbf54d7a08
uihelpers: Fix error showing dialog if default pool isn't started
2013-07-09 09:12:26 -04:00
Cole Robinson
194cb715a3
console: A few tweaks to usbredir code
...
- Make sure to set menu item to unsensitive when console closes
- Avoid dep on latest spice-gtk git for channel_type_from_string
- Create usbwidget every time it's requested, like virt-viewer does
- Minor style fixes
2013-07-08 19:13:52 -04:00
Cole Robinson
e826de7c73
storagebrowse: Only tick if we actually have a pool
2013-07-08 14:20:15 -04:00
Cole Robinson
0ee5ddbf54
create: Drop host storage timer
...
It's kind of needy to be doing a pool.refresh every 3 seconds, and really
I'm fine with telling people they have to close and reopen the wizard to
get up2date host size reporting.
2013-07-07 19:00:57 -04:00
Cole Robinson
7a2caee6e1
VirtualConnection: Allow using virt-manager object caches
...
So when we call into virtinst it doesn't do a whole round of object
lookup and XML fetching.
2013-07-07 18:54:08 -04:00
Cole Robinson
9f3e17d270
uihelpers: Don't do raw libvirt calls when checking if net is active
2013-07-07 16:57:00 -04:00
Cole Robinson
d386ba5d62
VirtualConnection: Add option to cache fetch_* results
...
We use this in the CLI tools since there's no point in repeatedly updating
the VM list if the whole process only takes a few seconds.
2013-07-07 16:38:11 -04:00
Cole Robinson
9d560f7d9a
VirtualDisk: Always return VM names from is_conflict_disk
2013-07-07 16:34:46 -04:00
Cole Robinson
d5dc06148d
virtinst: Move fetch_all_guests to connection object
...
And fetch_all_pools. And have it use pollhelpers
2013-07-07 15:14:59 -04:00
Cole Robinson
ee7d0b620d
connection: Support listAll* object lookups
...
These calls save us a few API lookups, but are not supported by all
libvirt versions.
Since these bits were getting quite large, move them all to a separate
pollhelpers file.
However listAllInterfaces is returning an empty list for now, so we
disable the check: https://bugzilla.redhat.com/show_bug.cgi?id=982014
2013-07-07 15:06:09 -04:00