Commit Graph

2579 Commits

Author SHA1 Message Date
Cole Robinson
9b2fd63480 console: Fix spice audio tunneling after conversion 2013-04-03 18:13:26 -04:00
Cole Robinson
2e4afccb07 Fix up a ton of UI regressions from gtk3 conversion 2013-04-03 18:13:26 -04:00
Cole Robinson
3de927d109 Remove rhel compat get_system_shutdown_icon 2013-04-03 18:13:26 -04:00
Cole Robinson
cb512f61e7 Cleanup gnome-keyring code (still broken with introspection) 2013-04-03 18:13:26 -04:00
Cole Robinson
5df0a108f8 baseclass: Allow not passing a msg to _logtrace helper 2013-04-03 18:13:26 -04:00
Cole Robinson
12a4e34bad Remove unused gconf key console/grab_notify 2013-04-03 18:13:26 -04:00
Cole Robinson
d9112f9d54 Remove all code and hidden UI for accessing help docs
Those docs were removed a few commits back
2013-04-03 18:13:26 -04:00
Cole Robinson
eac0f93da7 Drop comboboxentry RHEL6 compat 2013-04-03 18:13:26 -04:00
Cole Robinson
bdfd0d4143 Resave glade files to drop gtk2 bits 2013-04-03 18:13:25 -04:00
Cole Robinson
12fcac8268 s/get_property("sensitive")/get_sensitive()/g 2013-04-03 18:13:25 -04:00
Cole Robinson
e741d9cab6 Clean up all pylint + pep8 violations 2013-04-03 18:13:25 -04:00
Cole Robinson
179e94fda5 engine: Don't rewrite connection list when we read stored URIs 2013-04-03 18:13:25 -04:00
Cole Robinson
d057cce292 Remove local copy of IPy 2013-04-03 18:13:25 -04:00
Cole Robinson
dc640d7506 configure: Don't drop so many files in topdir 2013-04-03 18:13:25 -04:00
Cole Robinson
f872720d39 Add .mailmap 2013-04-03 18:13:25 -04:00
Cole Robinson
14485f2a08 Remove the docs/ dir
Release process doesn't need to be documented in the repo

Dbus interface is basically unused, I've got no problem with having people
look at the code to figure it out if they care that much.
2013-04-03 18:13:25 -04:00
Cole Robinson
53b12d82c5 Stop tracking old help files, they are long dead 2013-04-03 18:13:25 -04:00
Daniel P. Berrange
3c3237b951 Convert to use GTK3 and GObject Introspection bindings
Switch over to use GObject introspection bindings for all python
modules related to GObject/GTK3/etc. It is not possible to mix
and match old pyggtk/pygobject manual bindings with new introspection
based bindings so it must be all changed in one go.

Imports like

    import gtk

Change to

    from gi.repository import Gtk

The vmmGObject class is changed to always inherit from GObject.GObject
There is no compelling reason to avoid a GObject dep for the
virt-manager TUI & it horribly messed up the code.

Signal declarations are changed from

  vmmChooseCD.signal_new(vmmChooseCD, "cdrom-chosen", [object, str])

To

     __gsignals__ = {
        "cdrom-chosen": (GObject.SignalFlags.RUN_FIRST, None, [object, str])
    }

which is required by new GObject bindings

Most of the rest of the change is simply dealing with renamed
constants / classes.

Alot of legacy compat code was removed - ie helpers which
check to see if certain GTK2 methods are available are no
longer required since we're mandating GTK3 only.

The event loop is replaced with LibvirtGLib's event loop.

Still todo

 - Rip out all DBus stuff & make vmmEngine class inherit GtkApplication
   which provides unique support & DBus method handling
 - Switch to use LibvirtGConfig & LibvirtGObject for libvirt interaction
 - Possibly switch to Python 3 too ?
 - Figure out why GNOME keyring is missing Introspection support

My suggestion is that the standalone GIT repo for virt-install
only live on as a support branch for legacy platforms.

A stable-0.9 branch of virt-manager can be kept for legacy PyGtk2
based virt-manager releases.

The virt-manager master branch should exclusively use GObject
inspection and ideally Python3 and contain both the virt-manager
and virt-install codebases in one since they are intimately
related to each other & using separate GIT repos has needlessly
complicated life for everyone.

crobinso:
    Some locking fixes
    Misc cleanups and dropping now-useless code
    Fix dbus usage
    Fix graph cell renderer regression
    Fix a couple tooltip issues
2013-04-03 18:13:24 -04:00
Cole Robinson
be49fa63c0 Prep for release 0.9.5 2013-04-01 07:36:57 -04:00
Ken ICHIKAWA
2381016b4b Allow empty cpu model
If we specify cpu model and apply once, we could not specify empty
cpu model again with following error.
"Error changing VM configuration: internal error Non-empty feature
list specified without CPU model"
That is not useful to restore default cpu model.
This patch fixes above issue.

Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>

(crobinso: minor cleanup, add Ken to AUTHORS)
2013-03-25 13:25:46 -04:00
John Doyle
9f4fddba04 Add a force reset item to all shutdown menus 2013-03-16 17:59:32 -04:00
Cole Robinson
507640ea85 createvol: Don't default to sparse LVM
Sparse LVM volumes don't autogrow, which makes them not as useful for
virt-manager target users. Don't do it by default
2013-03-13 10:29:22 -04:00
Dave Allan
46a3d2c57f Strip whitespace from remote hostname
If users accidentally add whitespace to the beginning or end of a hostname their connection will fail, so strip it.

Fixes BZ 818438 - Whitespace in remote connection hostname field is not trimmed

(crobinso: Add Dave to AUTHORS)
2013-03-01 14:19:04 -05:00
Chen Hanxiao
11539ef480 Update tips for Checkbox "Allocate entire disk now"
As discussed in:
https://www.redhat.com/archives/virt-tools-list/2013-February/msg00154.html
There is a bug when creating disk image as qcow2, enable
fully allocating but get the minimal sparse image.

We should give users a notification which describing this.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>

(crobinso: tweak message a bit)
2013-03-01 14:11:42 -05:00
David Shane Holden
e6d5c10129 virt-manager: add support for iotune
(crobinso: Add David to AUTHORS, pylint cleanups, enable for test driver)
2013-03-01 14:08:41 -05:00
Cole Robinson
97156c6e15 spec: Add explicit pod2man dep 2013-03-01 12:40:48 -05:00
Martin Kletzander
b6f0ba364f Add support for security relabeling
virt-install already supports relabeling, but virt-manager doesn't and
in some cases, this can cause problems, for example when switching to
dynamic labeling with the relabeling turned off.  I took the approach
of allowing the user to choose, with safe fallbacks to defaults.

Deals also with this:

https://bugzilla.redhat.com/show_bug.cgi?id=907390
2013-02-06 15:54:14 -05:00
Martin Kletzander
46c8ee58dc Match default storage size values
When creating a new volume, there is either 8GB or 1000MB default.
This patch simply changes the second default to match the first one.
2013-02-06 15:52:02 -05:00
Cole Robinson
12dcebcc0a Disable a bunch of pep8 tests I won't fix before gtk3 port 2013-02-06 15:41:43 -05:00
Cole Robinson
0ca8cf6d43 Grrr, fix dbus int cast (how did I screw this up??) 2013-01-06 17:17:45 -05:00
Cole Robinson
da71b2ec5c Fix FileChooser hangs on F18 KDE (bz 880781)
We need to move the icon_theme lookup to after the fork. My guess is
that the looku ints inits some internal gtk dbus state which is then
no longer valid after we fork.
2013-01-06 13:16:25 -05:00
Cole Robinson
1abd03ed80 Fix packagekit package install on KDE with apper
Apper requires a uint, gnome-packagekit doesn't seem to care either way
https://bugzilla.redhat.com/show_bug.cgi?id=882024
2012-12-20 12:55:35 -05:00
Cole Robinson
32f74219b0 network: Fix parsing <ip> blocks with prefix=
https://bugzilla.redhat.com/show_bug.cgi?id=872814
2012-12-17 14:48:42 -05:00
Chen Hanxiao
8b22d7a763 Add virtio lun and virtio-scsi lun disk bus option
As a result of CVE-2011-4127, libvirt disabled generic SCSI
 commands passed through to the underlying disk by qemu
 from a guest to a virtio disk when device type is "disk"
 afer commit 177db087757e4adb02c211de56336a5991c8eb20.
 And libvirt introduce a new device type "lun"
 to allow SG_IO commands passing through.
 This patch allows VM admin to configure this via virt-manager.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2012-12-14 19:21:35 -05:00
ChenHanxiao
ad1b24e885 Add virtio-scsi disk bus option
This patch will add virtio-scsi bus option on "Add New Virtual
Hardware" GUI page. It will support users to add a virtual disk
using SCSI bus with a controller model virtio-scsi.
If there is no SCSI controller existed, a new SCSI controller by
model 'virtio-scsi' will be added automatically.

Signed-off-by: ChenHanxiao <chenhanxiao@cn.fujitsu.com>

(crobinso: add Chen to AUTHORS, some cosmetic tweaks)
2012-12-09 14:28:42 -05:00
Martin Kletzander
b2a7c396de Make deleting storage files default with added prompt
This patch changes the default checkbox-state of "Delete all
associated storage" to be checked, but adds a prompt with a warning
for users to be sure they notice this change and they know what they
are doing (hopefully).

(crobinso: confirm even if no gconf schema available, cosmetic spacing
 fixup, add Martin to AUTHORS)
2012-12-04 18:36:16 -05:00
Cole Robinson
f84f9b2355 Bump gtkbuilder sanitization to fix things on gtk 2.20 2012-11-27 11:19:08 -05:00
Cole Robinson
43b213bf19 addhw: Remove unused field and old comment for USB mice 2012-11-27 10:44:13 -05:00
Cole Robinson
a324196e09 addhw: Translate disk strings, allow test conn to use them all 2012-11-27 10:42:35 -05:00
Michal Privoznik
d9e8546e86 Fix --test-first-run
One of previous patches (96ce9ac0b1) invented this feature. However,
in options object it is called testfirstrun not test_first_run.
This produces a runtime error.

(crobinso: add Michal to AUTHORS)
2012-10-30 10:10:09 -04:00
Cole Robinson
538420e032 domain: Fix more backtraces from PMSUSPEND status 2012-10-29 18:55:51 -04:00
Cole Robinson
53605cb21b Make main window parent of package install dialogs 2012-10-28 20:22:58 -04:00
Cole Robinson
2163ba3a30 Fix detection of running libvirtd via systemd 2012-10-28 20:18:51 -04:00
Cole Robinson
35bab2cc98 Fix package install with PackageKit 0.8.4 2012-10-28 20:09:32 -04:00
Cole Robinson
96ce9ac0b1 Add hidden --test-first-run switch for testing PackageKit bits
Basically stubs out the gconf URI fetching + listing so we don't
need to delete anything to trigger it.
2012-10-28 18:49:48 -04:00
Cole Robinson
faaf62a397 details: Show pretty video model in device list
And show pretty model name everywhere
2012-10-28 16:32:23 -04:00
Cole Robinson
5c84f9f37c create: Only show linux + windows OS options by default 2012-10-24 15:23:30 -04:00
Cole Robinson
2eb2397527 create: Fix backtrace when showing all OS options 2012-10-24 15:23:30 -04:00
Cole Robinson
8f6b1f977b create: Sort OS types, so linux is at the top 2012-10-24 15:23:30 -04:00
Cole Robinson
a142560df5 addhw: Only show progress dialog if creating storage 2012-10-21 14:43:44 -04:00