Commit Graph

1211 Commits

Author SHA1 Message Date
Cole Robinson
e208a8ca7f Mark all windows as Dialogs (except manager, host and vm details).
All these windows should be temporary, and don't need to be maximized or
minimized.
2009-07-26 12:08:21 -04:00
Cole Robinson
7a09cbcad7 Fix racey exception when reading disk/net stats.
We need to fully populate the stats record before adding to record list,
otherwise a UI update callback might read an incomplete record.
2009-07-22 13:37:53 -04:00
Cole Robinson
1ecf0a8180 graphwidgets: Fix possible divide by zero error. 2009-07-22 13:21:27 -04:00
Cole Robinson
27eeef93d9 Import new icons for VMs, VM status, and some devices. 2009-07-22 12:38:56 -04:00
Cole Robinson
22443dde10 Remove graphwidgets written in 'C'. We are now 100% python! 2009-07-22 11:16:06 -04:00
Cole Robinson
631b7b9bed Reimplement current graph widgets in python. 2009-07-22 10:21:33 -04:00
Cole Robinson
290b896a41 Fix more bugs from dup_conn refactoring. 2009-07-21 16:38:50 -04:00
Cole Robinson
27916ad571 Use icon theme icons rather than gtk stock icons.
This allows us to get many more relevant icons (mouse, tablet, sound card).
Also, reorganize the virtual network and hardware lists to have icons appear
first in the row.
2009-07-20 15:09:32 -04:00
Cole Robinson
32561b2d89 cleanup: Use self.topwin in details. 2009-07-20 14:52:53 -04:00
Cole Robinson
5d02a09016 Add 'pretty string' routine that doesn't require the conn to be active. 2009-07-20 14:47:50 -04:00
Cole Robinson
6628d6ea48 Provide actual info about available 'Add Hardware' devices.
If we disable adding a device, don't just hide it: disable the list entry,
and show an error message in a warning label, so the user understands why.
2009-07-14 22:04:34 -04:00
Cole Robinson
3936943a63 Allow changing vcpu count in the persistent config.
Changes similar to what was done with memory: try cpu hotplug, and always
follow up with XML definition.
2009-07-14 21:22:18 -04:00
Cole Robinson
8c9bbe1d66 More dup_conn fixes. 2009-07-14 20:36:05 -04:00
Cole Robinson
69b6bea472 List all VM graphics devices (since libvirt supports more than 1 now) 2009-07-14 19:47:18 -04:00
Cole Robinson
b3746d9623 Teach serial console to deal with a changing pty path. 2009-07-14 19:42:16 -04:00
Cole Robinson
6658f4fe40 Don't list <console> tag in serial list if primary console is not PTY. 2009-07-14 19:25:17 -04:00
Cole Robinson
c5f9c7dbe8 Sigh, actually add UI for char and video devices. 2009-07-14 19:02:43 -04:00
Cole Robinson
b96811b736 Improve connection delete confirmation message. 2009-07-14 17:10:57 -04:00
Cole Robinson
93eca80e18 Fix error message typo. 2009-07-14 17:06:50 -04:00
Cole Robinson
0eef04170c Make sure we have updated XML when viewing VM details. 2009-07-14 17:06:37 -04:00
Cole Robinson
575ebc7077 Show correct connection state after open failure. 2009-07-14 16:09:03 -04:00
Cole Robinson
a2d49aee87 Fix several broken hacks in migration code.
Key of URI in the migration list, not the short hostname we show: we can
have multiple connections with the same hostname, and it confuses things. This
allows us to drop the migrate invocation differences for the xen driver,
so things work as they should.
2009-07-14 15:59:57 -04:00
Cole Robinson
51a1e0d329 Fix migration, disk creation after dup_conn changes. 2009-07-14 15:32:39 -04:00
Cole Robinson
74e01e22c5 Code cleanups in engine.py
Change some code to match the common style. Break apart the overloaded
'get_connection' function into _lookup_connection and add_connection.
2009-07-14 14:48:09 -04:00
Cole Robinson
f37612dfe5 Fix variable typo. 2009-07-14 09:45:23 -04:00
Cole Robinson
3c17265194 Support video devices in 'Add Hardware' wizard.
Pretty sparse at the moment: only allows setting video device model (which
is all that's really relevant for qemu/xen ATM).
2009-07-14 09:25:39 -04:00
Cole Robinson
b34fd724d3 Support adding serial and parallel devices via 'Add Hardware' 2009-07-14 09:25:39 -04:00
Cole Robinson
1224f90699 Run the main tick function in a thread.
Since libvirt has supported multithreaded client connections for a while now,
we can run all our libvirt polling in a thread. This will prevent the UI
from blocking and becoming sluggish if there are lots of VMs or connections
open.

We just need to be vigilant in ensuring that all UI updating done via any
tick function is scheduled with gobject.idle_add, to preserve the benefits.
2009-07-11 21:23:16 -04:00
Cole Robinson
2da5651b8c Don't update XML when polling disk and net stats.
We need to parse the XML doc when polling for disk and net stats. However,
it isn't that important for us to have up2date xml when doing so: having a
disk or net device added behind our back is likely a rare occurence, and
the xml will be updated via other means quite often.

So, don't update the xml.
2009-07-11 21:23:07 -04:00
Cole Robinson
b4b5a2b138 vmmDomain: cleanup xml handling functions.
Separate the public interfaces (get_xml and get_xml_to_define) from the
private interfaces. Clean up usage where we violated this.
2009-07-11 21:22:30 -04:00
Cole Robinson
49938ebbd7 Don't enforce the block vs. file split in Add Hardware -> Disk.
It can only cause annoyance, especially since the storage browser doesn't
distinguish.
2009-07-10 14:00:59 -04:00
Cole Robinson
10be2d2a45 Support viewing and removing VM 'video' devices. 2009-07-09 14:35:55 -04:00
Cole Robinson
79f3e9987e More 'details' code cleanup.
Don't duplicate the large 'refresh' lists between page_refresh and hw_selected.
2009-07-09 14:35:44 -04:00
Cole Robinson
84717a0b7f Some 'Details' UI cleanup.
The main change is removing the duplication of the 'Apply' and 'Remove'
buttons in the UI. This has no functional change, but from a dev perspective
this saves annoying duplication when new device support is added.

Also fix up some minor layout and spacing issues.
2009-07-09 14:35:36 -04:00
Cole Robinson
b4c45857e7 Don't retry VNC connection if VM isn't running. 2009-07-08 21:31:04 -04:00
Cole Robinson
240816a25b Large cleanup of 'Add Hardware' summary section.
Build the summary table on the fly: makes adding new options pretty
painless, and makes current code a lot clearer.
2009-07-08 21:17:48 -04:00
Cole Robinson
73224b0109 Cleanup some code in addhardware.
Only use page_changed for setting the summary. Reorder reset_state to
be much more clear.
2009-07-08 18:49:25 -04:00
Cole Robinson
836d4ecc14 Properly define migrated VM on remote connection. 2009-07-07 14:57:17 -04:00
Cole Robinson
08b38f62aa Add security/selinux info to VM->Overview, allow changing if supported.
Allows setting dynamic or static labelling.
2009-07-07 12:16:03 -04:00
Cole Robinson
b4a9322839 Re-use created disk if retrying a VM install (fixed _again_) 2009-07-06 16:49:47 -04:00
Cole Robinson
e0f0b9a930 Support pool building for logical pools (now allowed by virtinst). 2009-07-02 13:13:17 -04:00
Cole Robinson
a87933c66c Use proper XML editting when setting boot device.
The current method is ugly and not future proof if extra options are
ever added to the boot list (which is likely).
2009-07-02 12:11:28 -04:00
Cole Robinson
fb7a999a81 Ensure mem/maxmem changes affect persistent config.
Split the Domain API into two pieces: 'hotplug memory' and 'define memory'.
This allows us to catch hotplug errors and inform the user.
2009-07-02 10:49:06 -04:00
Cole Robinson
705b50419a Add internal 'redefine' API for domain class.
Wraps up all the common code that would be easy to get wrong for new
xml altering functions.
2009-07-02 12:46:39 -04:00
Cole Robinson
6d50cb807d Add an 'info popup' helper, similar to the validation error box. 2009-07-02 12:45:48 -04:00
Cole Robinson
02fc09e0a8 Don't show startup error for SystemExit (used by --help). 2009-06-26 14:05:27 -04:00
Cole Robinson
1bd9c50942 Make sure we force a tick update if the domain XML config changes. 2009-07-02 10:01:16 -04:00
Cole Robinson
b87d51cda5 Remove some useless debugging and noisy logging. 2009-07-02 12:44:53 -04:00
Cole Robinson
dc17b21b9a Don't duplicate connections for libvirt 0.6.0 and later.
Newer libvirt doesn't require it, and it only causes issue (filling up libvirt
connect queue, prompting for auth, flooding the debug log, etc.).
2009-07-01 14:59:29 -04:00
Cole Robinson
71401272f5 Enable host device attachment for xen (libvirt now supports it). 2009-07-02 12:43:41 -04:00