Commit Graph

130 Commits

Author SHA1 Message Date
Cole Robinson
b15f54e6f7 Add a proper migrate dialog. 2009-11-15 15:17:03 -05:00
Cole Robinson
737c88e3e0 domain: cleanup: Use helper functions for methods that pull from self.record 2009-10-05 17:31:59 -04:00
Cole Robinson
19e2c3f37c Log exceptions (not warnings) if we can't fetch a domain/net/pool. 2009-10-01 12:07:14 -04:00
Cole Robinson
b9c6474d5b connection: Add is_qemu_system helper. 2009-09-23 16:43:40 -04:00
Cole Robinson
3d22dbf020 Don't close connection on all libvirt errors: only if libvirtd goes away. 2009-09-16 16:02:19 -04:00
Cole Robinson
3416b9edf0 manager: Make the UI a bit prettier.
Add some row color and text tweaking.
2009-07-28 19:21:56 -04:00
Cole Robinson
342a5b2450 Add 'Clone VM' wizard. 2009-07-26 15:54:14 -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
575ebc7077 Show correct connection state after open failure. 2009-07-14 16:09:03 -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
33bf8f6372 Separate local net device polling from connection initialization.
Currently we connect to dbus and poke sysfs to find local net devices and
bridges: unfortunately we do this everytime _any_ connection object is
initialized. This floods the debug logs, and is complete overkill, since
net devices are associated with the host and not a connection.

Run the initialization once (at app startup) and carry around only one
instance of the polling code.
2009-07-01 14:59:13 -04:00
Cole Robinson
97f6cd8fdb Remove readonly connection fallback.
If opening a connection R/W fails, we currently fallback to readonly. This
isn't very transparent and is likely not what the user wants (full R/W or
a useful error message why not). This has caused a lot of confusion and
bug reports, so let's drop it.
2009-07-01 11:13:30 -04:00
Cole Robinson
653a23d79d Log capabilities XML at connection startup. 2009-05-12 11:12:37 -04:00
Cole Robinson
62de590fbb Clean up old VM gconf entries on connection startup.
If a VM has disappeared from a connection since the last time we connected,
remove it's old gconf preferences so we don't slowly pollute the db.
2009-05-11 12:05:46 -04:00
Cole Robinson
3ad177128c Keep a list of used install ISO paths.
Store these in gconf on a per hostname basis, since a local path likely
isn't relevant for a connection on another host.
2009-05-11 11:00:03 -04:00
Cole Robinson
0f608da66c Use MB instead of GB for pretty memory < 10GB. (Gerrit Slomma) 2009-04-20 11:46:37 -04:00
Cole Robinson
b9760f3aa5 Improve uri connection error message formatting. 2009-04-03 14:58:51 -04:00
Cole Robinson
65f1f52a79 Fork off connection when 'restoring' domain. 2009-04-03 14:15:25 -04:00
Cole Robinson
742bf5465e Log info if connection doesn't support storage management. 2009-03-13 14:37:57 -04:00
Cole Robinson
bdf1801123 Check what XMLDesc flags the connection supports before using them. 2009-03-13 13:13:24 -04:00
Cole Robinson
ebe91d6ce2 Attempt to use krb5-auth-dialog for libvirt auth (if applicable) (Guido Gunther) 2009-03-09 16:21:32 -04:00
Cole Robinson
01de80f203 Check if we can resolve avahi '.local' host names, and if not, strip it. 2009-03-09 16:21:21 -04:00
Cole Robinson
a590888ef6 'Add Physical Host Device' wizard for existing guests. 2009-03-09 16:20:23 -04:00
Cole Robinson
c83113e79b Storage aware 'Delete VM' dialog. 2009-03-09 16:17:09 -04:00
Cole Robinson
f9dfe4acab New 'Create VM' wizard. 2009-03-09 16:16:45 -04:00
Cole Robinson
a650c6c6ec Better logging with connection failures. 2009-03-09 11:54:46 -04:00
Cole Robinson
ee159418b5 Clean up 'VM Restore' functionality.
Actually catch error messages. Don't check save file header magic when
libvirt already does it for us.
2009-03-08 15:31:15 -04:00
Cole Robinson
1472a3c0aa Fix hal device removal callback to not spew tons of errors. 2009-02-28 17:21:41 -05:00
Cole Robinson
c5c6aa8944 Attempt a full R/W connection regardless of polkit: only try RO if that connecti
on fails (Michael Marineau)
2009-01-26 11:10:39 -05:00
Cole Robinson
0187458ba9 Fix up various remaining pylint. 2008-11-18 17:01:22 -05:00
Cole Robinson
a14b844b20 Rename variables that shadow built-in functions. 2008-11-18 15:42:51 -05:00
Cole Robinson
11a38c01f3 Remove unused variables. 2008-11-18 14:48:10 -05:00
Cole Robinson
6491a63f6f Remove unused imports. 2008-11-05 15:40:59 -05:00
Cole Robinson
f4e8187283 Reuse virtinst.util uri parsing 2008-10-30 15:35:16 -04:00
Guido Gunther
b19924f06f draw a sparcline for network and disk traffic in the main overview 2008-10-18 21:28:57 +02:00
Guido Gunther
655a846ac3 Calculate block and net device statistics
display them in the overview as well as in the vm details
2008-10-18 21:21:33 +02:00
Cole Robinson
1401dff4e2 populate hostinfo earlier in tick function so it isn't accessed uninitialized. 2008-10-06 13:21:06 -04:00
Cole Robinson
bb5a39f6fb Don't run polkit checks as root (Daniel Berrange) 2008-09-24 14:55:03 -04:00
Guido Gunther
75cfe0f95f fix network handling in qemu session mode 2008-09-22 17:50:49 +02:00
Cole Robinson
b77e94646a Only poll storage if conn is storage capable. 2008-09-10 15:02:49 -04:00
Cole Robinson
cd156825bb Allow setting remote connection autostart. 2008-09-09 08:14:05 -04:00
Daniel P. Berrange
4e888cde98 Fix check for policykit 2008-08-21 12:29:33 +01:00
Daniel P. Berrange
21d1a70a13 Add (RO) postfix to connection state if read only 2008-08-21 12:03:31 +01:00
Cole Robinson
8c95e6d6f2 Add vmmStorage{Pool,Vol}, poll for these devices in connection tick function. 2008-08-07 17:37:16 -04:00
Cole Robinson
d5fdec4801 Small bug in virtual network population. 2008-07-31 16:02:39 -04:00
Cole Robinson
737d2614f4 Search for renamed vlan devices using the typical convention p+name (Saori Fukuta) 2008-07-25 13:35:01 -04:00
Cole Robinson
9339032ad0 Fix bonding_masters parsing. 2008-07-15 13:34:39 -04:00
Cole Robinson
7b9312db1d Clean up tick function: split network and vm polling into seperate functions. 2008-07-09 17:00:49 -04:00
Cole Robinson
06b48e7dc3 Handle mac address resolution failures when populating networks. 2008-06-25 11:56:36 -04:00
Cole Robinson
6d8b7d0353 Remove another duplicate net populating function 2008-06-25 10:14:51 -04:00