Update to 0.6.1 release Disk and Network VM stats reporting VM Migration
support Support adding sound devices to existing VMs Allow specifying device model when adding a network device to an existing VM
This commit is contained in:
parent
7a69cc9d0f
commit
e1cebac325
@ -1 +1 @@
|
||||
virt-manager-0.6.0.tar.gz
|
||||
virt-manager-0.6.1.tar.gz
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
fd0acd111f180a0766b08d5f42cf5468 virt-manager-0.6.0.tar.gz
|
||||
9c4eeaf447919b425f890b6bff715512 virt-manager-0.6.1.tar.gz
|
||||
|
@ -1,98 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1221748433 14400
|
||||
# Node ID 7bedb4d693bdc674392ca334e7ee94f1b818b8f8
|
||||
# Parent 4148e2986cc51b01937b8bed2e103ac50e4d882a
|
||||
Allow seeing connection details when conn disconnected, just desensitive all the add wizards.
|
||||
|
||||
diff -r 4148e2986cc5 -r 7bedb4d693bd src/virtManager/engine.py
|
||||
--- a/src/virtManager/engine.py Wed Sep 17 07:53:00 2008 -0400
|
||||
+++ b/src/virtManager/engine.py Thu Sep 18 10:33:53 2008 -0400
|
||||
@@ -118,7 +118,8 @@
|
||||
|
||||
|
||||
def _do_connection_changed(self, connection):
|
||||
- if connection.get_state() == connection.STATE_ACTIVE:
|
||||
+ if connection.get_state() == connection.STATE_ACTIVE or \
|
||||
+ connection.get_state() == connection.STATE_CONNECTING:
|
||||
return
|
||||
|
||||
hvuri = connection.get_uri()
|
||||
diff -r 4148e2986cc5 -r 7bedb4d693bd src/virtManager/host.py
|
||||
--- a/src/virtManager/host.py Wed Sep 17 07:53:00 2008 -0400
|
||||
+++ b/src/virtManager/host.py Thu Sep 18 10:33:53 2008 -0400
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
from virtinst import Storage
|
||||
|
||||
+from virtManager.connection import vmmConnection
|
||||
from virtManager.createnet import vmmCreateNetwork
|
||||
from virtManager.createpool import vmmCreatePool
|
||||
from virtManager.createvol import vmmCreateVolume
|
||||
@@ -158,6 +159,8 @@
|
||||
self.conn.connect("pool-started", self.refresh_storage_pool)
|
||||
self.conn.connect("pool-stopped", self.refresh_storage_pool)
|
||||
|
||||
+ self.conn.connect("state-changed", self.conn_state_changed)
|
||||
+
|
||||
self.window.signal_autoconnect({
|
||||
"on_menu_file_close_activate": self.close,
|
||||
"on_vmm_host_delete_event": self.close,
|
||||
@@ -181,9 +184,7 @@
|
||||
})
|
||||
|
||||
self.conn.connect("resources-sampled", self.refresh_resources)
|
||||
- self.refresh_resources()
|
||||
- self.reset_pool_state()
|
||||
- self.reset_net_state()
|
||||
+ self.reset_state()
|
||||
|
||||
def show(self):
|
||||
# Update autostart value
|
||||
@@ -208,6 +209,12 @@
|
||||
self.window.get_widget("config-autoconnect").get_active():
|
||||
self.conn.toggle_autoconnect()
|
||||
|
||||
+ def reset_state(self):
|
||||
+ self.refresh_resources()
|
||||
+ self.reset_pool_state()
|
||||
+ self.reset_net_state()
|
||||
+ self.conn_state_changed()
|
||||
+
|
||||
def refresh_resources(self, ignore=None):
|
||||
self.window.get_widget("performance-cpu").set_text("%d %%" % self.conn.cpu_time_percentage())
|
||||
vm_memory = self.conn.pretty_current_memory()
|
||||
@@ -221,6 +228,11 @@
|
||||
memory_vector = self.conn.current_memory_vector()
|
||||
memory_vector.reverse()
|
||||
self.memory_usage_graph.set_property("data_array", memory_vector)
|
||||
+
|
||||
+ def conn_state_changed(self, ignore1=None):
|
||||
+ state = (self.conn.get_state() == vmmConnection.STATE_ACTIVE)
|
||||
+ self.window.get_widget("net-add").set_sensitive(state)
|
||||
+ self.window.get_widget("pool-add").set_sensitive(state)
|
||||
|
||||
# -------------------------
|
||||
# Virtual Network functions
|
||||
diff -r 4148e2986cc5 -r 7bedb4d693bd src/virtManager/manager.py
|
||||
--- a/src/virtManager/manager.py Wed Sep 17 07:53:00 2008 -0400
|
||||
+++ b/src/virtManager/manager.py Thu Sep 18 10:33:53 2008 -0400
|
||||
@@ -668,10 +668,8 @@
|
||||
self.window.get_widget("vm-open").set_sensitive(False)
|
||||
if conn.get_state() == vmmConnection.STATE_DISCONNECTED:
|
||||
self.window.get_widget("vm-delete").set_sensitive(True)
|
||||
- self.window.get_widget("menu_host_details").set_sensitive(False)
|
||||
else:
|
||||
self.window.get_widget("vm-delete").set_sensitive(False)
|
||||
- self.window.get_widget("menu_host_details").set_sensitive(True)
|
||||
if conn.get_state() == vmmConnection.STATE_ACTIVE:
|
||||
self.window.get_widget("vm-new").set_sensitive(True)
|
||||
self.window.get_widget("menu_file_restore_saved").set_sensitive(True)
|
||||
@@ -680,6 +678,7 @@
|
||||
self.window.get_widget("menu_file_restore_saved").set_sensitive(False)
|
||||
self.window.get_widget("menu_edit_details").set_sensitive(False)
|
||||
self.window.get_widget("menu_edit_delete").set_sensitive(False)
|
||||
+ self.window.get_widget("menu_host_details").set_sensitive(True)
|
||||
|
||||
def popup_vm_menu(self, widget, event):
|
||||
tuple = widget.get_path_at_pos(int(event.x), int(event.y))
|
@ -1,19 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1224534507 14400
|
||||
# Node ID 57f3422417b38bb6c4d834283f7bd85c368fccf0
|
||||
# Parent fd4db4f02a84dadce38293214fc04721c1a8cc15
|
||||
Fix variable typo.
|
||||
|
||||
diff -r fd4db4f02a84 -r 57f3422417b3 src/virtManager/manager.py
|
||||
--- a/src/virtManager/manager.py Mon Oct 20 10:49:21 2008 -0400
|
||||
+++ b/src/virtManager/manager.py Mon Oct 20 16:28:27 2008 -0400
|
||||
@@ -430,7 +430,7 @@
|
||||
(gtype, host, port, transport, username) = vm.get_graphics_console()
|
||||
if gtype == "vnc":
|
||||
self.emit("action-show-console", uri, vmuuid)
|
||||
- elif not connect.is_remote():
|
||||
+ elif not connection.is_remote():
|
||||
self.emit("action-show-terminal", uri, vmuuid)
|
||||
else:
|
||||
self.emit("action-refresh-console", uri, vmuuid)
|
@ -1,21 +0,0 @@
|
||||
diff -rup virt-manager-0.6.0/src/vmm-create.glade new/src/vmm-create.glade
|
||||
--- virt-manager-0.6.0/src/vmm-create.glade 2008-09-10 15:37:12.000000000 -0400
|
||||
+++ new/src/vmm-create.glade 2008-11-25 12:08:47.161923000 -0500
|
||||
@@ -871,7 +871,7 @@
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label296">
|
||||
<property name="visible">True</property>
|
||||
- <property name="label" translatable="yes">Lightweight method of virtualizing machines. Limits operating system choices because the OS must be specially modified to support paravirtualization. Better performance than fully virtualized systems.</property>
|
||||
+ <property name="label" translatable="yes">Lightweight method of virtualizing machines. Limits operating system choices because the OS must be specially modified to support paravirtualization, but yields better performance than fully virtualized systems.</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
@@ -949,7 +949,7 @@
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label297">
|
||||
<property name="visible">True</property>
|
||||
- <property name="label" translatable="yes">Involves hardware simulation, allowing for a greater range of operating systems (does not require OS modification). Slower than paravirtualized systems.</property>
|
||||
+ <property name="label" translatable="yes">Involves hardware simulation, allowing for a greater range of virtual devices and operating systems (does not require OS modification).</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
@ -1,28 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1228753553 18000
|
||||
# Node ID fb3a203a72d7d0cedf0a499df3950a9187c282c5
|
||||
# Parent d402778935079ead0d1e049efa026dd8d4bd5a51
|
||||
Ignore SIGHUP if we fork off, otherwise a dropped serial console kills the whole app. (bz 470548)
|
||||
|
||||
diff -r d40277893507 -r fb3a203a72d7 src/virt-manager.py.in
|
||||
--- a/src/virt-manager.py.in Mon Dec 08 11:14:54 2008 -0500
|
||||
+++ b/src/virt-manager.py.in Mon Dec 08 11:25:53 2008 -0500
|
||||
@@ -31,6 +31,7 @@
|
||||
import logging.handlers
|
||||
import threading
|
||||
import traceback
|
||||
+import signal
|
||||
from optparse import OptionParser, OptionValueError
|
||||
|
||||
# These are substituted into code based on --prefix given to configure
|
||||
@@ -282,6 +283,9 @@
|
||||
drop_tty()
|
||||
drop_stdio()
|
||||
|
||||
+ # Ignore SIGHUP, otherwise a serial console closing drops the whole app
|
||||
+ signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
+
|
||||
from virtManager.engine import vmmEngine
|
||||
from virtManager.remote import vmmRemote
|
||||
|
@ -1,18 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1224789319 14400
|
||||
# Node ID 1851cbb03705561a2e603606d73eb4ebde7ac405
|
||||
# Parent 4e7c3f99f0db513e0d8325c5bf485643a164f601
|
||||
Don't add sound devices multiple times.
|
||||
|
||||
diff -r 4e7c3f99f0db -r 1851cbb03705 src/virtManager/create.py
|
||||
--- a/src/virtManager/create.py Thu Oct 23 11:45:27 2008 -0400
|
||||
+++ b/src/virtManager/create.py Thu Oct 23 15:15:19 2008 -0400
|
||||
@@ -643,6 +643,7 @@
|
||||
"".join(traceback.format_exc()))
|
||||
return False
|
||||
|
||||
+ guest.sound_devs = []
|
||||
try:
|
||||
if self.get_config_sound():
|
||||
guest.sound_devs.append(virtinst.VirtualAudio(model="es1370"))
|
@ -1,13 +0,0 @@
|
||||
diff -rup virt-manager-0.6.0/src/virtManager/connection.py new/src/virtManager/connection.py
|
||||
--- virt-manager-0.6.0/src/virtManager/connection.py 2008-09-10 19:17:43.170355000 -0400
|
||||
+++ new/src/virtManager/connection.py 2008-09-10 19:19:58.124618000 -0400
|
||||
@@ -376,6 +376,9 @@ class vmmConnection(gobject.GObject):
|
||||
self.connectThread.start()
|
||||
|
||||
def _do_creds_polkit(self, action):
|
||||
+ if os.getuid() == 0:
|
||||
+ logging.debug("Skipping policykit check as root")
|
||||
+ return 0
|
||||
logging.debug("Doing policykit for %s" % action)
|
||||
bus = dbus.SessionBus()
|
||||
|
@ -1,30 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1223313666 14400
|
||||
# Node ID 270e1697b81ac143df54e111e2e1bed5006ad49c
|
||||
# Parent 9f5d5b6940c5a266f7b3a087f41face4713feec2
|
||||
populate hostinfo earlier in tick function so it isn't accessed uninitialized.
|
||||
|
||||
diff -r 9f5d5b6940c5 -r 270e1697b81a src/virtManager/connection.py
|
||||
--- a/src/virtManager/connection.py Mon Oct 06 12:56:11 2008 -0400
|
||||
+++ b/src/virtManager/connection.py Mon Oct 06 13:21:06 2008 -0400
|
||||
@@ -869,6 +869,8 @@
|
||||
if self.state != self.STATE_ACTIVE:
|
||||
return
|
||||
|
||||
+ self.hostinfo = self.vmm.getInfo()
|
||||
+
|
||||
# Poll for new virtual network objects
|
||||
(startNets, stopNets, newNets,
|
||||
oldNets, self.nets) = self._update_nets()
|
||||
@@ -911,10 +913,6 @@
|
||||
|
||||
# Finally, we sample each domain
|
||||
now = time()
|
||||
- try:
|
||||
- self.hostinfo = self.vmm.getInfo()
|
||||
- except:
|
||||
- logging.warn("Unable to get host information")
|
||||
|
||||
updateVMs = self.vms
|
||||
if noStatsUpdate:
|
@ -1,97 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1224004952 14400
|
||||
# Node ID ba26f6f584144bce5f33fdc19b5e6d09adbba8d2
|
||||
# Parent 7442ab043062ab4270b2de7ec23007866c7d5158
|
||||
Update POTFILES to reflect reality.
|
||||
|
||||
diff -r 7442ab043062 -r ba26f6f58414 po/POTFILES.in
|
||||
--- a/po/POTFILES.in Tue Oct 07 10:09:03 2008 -0400
|
||||
+++ b/po/POTFILES.in Tue Oct 14 13:22:32 2008 -0400
|
||||
@@ -1,45 +1,47 @@
|
||||
src/virt-manager.desktop.in.in
|
||||
-src/vmm-about.glade
|
||||
-src/vmm-details.glade
|
||||
-src/vmm-add-hardware.glade
|
||||
-src/vmm-host.glade
|
||||
-src/vmm-choose-cd.glade
|
||||
-src/vmm-manager.glade
|
||||
-src/vmm-create.glade
|
||||
-src/vmm-open-connection.glade
|
||||
-src/vmm-create-net.glade
|
||||
-src/vmm-preferences.glade
|
||||
-src/vmm-create-pool.glade
|
||||
-src/vmm-progress.glade
|
||||
-src/vmm-create-vol.glade
|
||||
src/virt-manager.py.in
|
||||
src/virt-manager.schemas.in
|
||||
+src/virtManager/IPy.py
|
||||
+src/virtManager/__init__.py
|
||||
src/virtManager/about.py
|
||||
+src/virtManager/addhardware.py
|
||||
+src/virtManager/asyncjob.py
|
||||
+src/virtManager/choosecd.py
|
||||
+src/virtManager/config.py
|
||||
+src/virtManager/connect.py
|
||||
src/virtManager/connection.py
|
||||
+src/virtManager/create.py
|
||||
+src/virtManager/createmeter.py
|
||||
src/virtManager/createnet.py
|
||||
+src/virtManager/createpool.py
|
||||
+src/virtManager/createvol.py
|
||||
+src/virtManager/details.py
|
||||
+src/virtManager/domain.py
|
||||
src/virtManager/engine.py
|
||||
-src/virtManager/IPy.py
|
||||
+src/virtManager/error.py
|
||||
+src/virtManager/host.py
|
||||
+src/virtManager/keyring.py
|
||||
+src/virtManager/manager.py
|
||||
src/virtManager/netdev.py
|
||||
+src/virtManager/network.py
|
||||
+src/virtManager/opticalhelper.py
|
||||
+src/virtManager/preferences.py
|
||||
+src/virtManager/remote.py
|
||||
src/virtManager/secret.py
|
||||
-src/virtManager/addhardware.py
|
||||
-src/virtManager/connect.py
|
||||
-src/virtManager/create.py
|
||||
-src/virtManager/createvol.py
|
||||
-src/virtManager/createpool.py
|
||||
+src/virtManager/serialcon.py
|
||||
+src/virtManager/storagepool.py
|
||||
src/virtManager/storagevol.py
|
||||
-src/virtManager/storagepool.py
|
||||
-src/virtManager/error.py
|
||||
-src/virtManager/keyring.py
|
||||
-src/virtManager/network.py
|
||||
-src/virtManager/serialcon.py
|
||||
-src/virtManager/asyncjob.py
|
||||
-src/virtManager/details.py
|
||||
-src/virtManager/host.py
|
||||
-src/virtManager/preferences.py
|
||||
-src/virtManager/config.py
|
||||
-src/virtManager/createmeter.py
|
||||
-src/virtManager/domain.py
|
||||
-src/virtManager/__init__.py
|
||||
-src/virtManager/manager.py
|
||||
-src/virtManager/remote.py
|
||||
src/virtManager/util.py
|
||||
+src/vmm-about.glade
|
||||
+src/vmm-add-hardware.glade
|
||||
+src/vmm-choose-cd.glade
|
||||
+src/vmm-create-net.glade
|
||||
+src/vmm-create-pool.glade
|
||||
+src/vmm-create-vol.glade
|
||||
+src/vmm-create.glade
|
||||
+src/vmm-details.glade
|
||||
+src/vmm-host.glade
|
||||
+src/vmm-manager.glade
|
||||
+src/vmm-open-connection.glade
|
||||
+src/vmm-preferences.glade
|
||||
+src/vmm-progress.glade
|
||||
diff -r 7442ab043062 -r ba26f6f58414 po/POTFILES.skip
|
||||
--- a/po/POTFILES.skip Tue Oct 07 10:09:03 2008 -0400
|
||||
+++ b/po/POTFILES.skip Tue Oct 14 13:22:32 2008 -0400
|
||||
@@ -1,1 +0,0 @@
|
||||
-src/virt-manager.desktop.in
|
File diff suppressed because it is too large
Load Diff
@ -1,20 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User "Cole Robinson <crobinso@redhat.com>"
|
||||
# Date 1224708808 14400
|
||||
# Node ID c44f1d9698091da7ce8e368aba30c68b580b5c10
|
||||
# Parent e3c76e40eb2e5d468c8ff61f87f1dd87ef903120
|
||||
Only popup vol copy path menu on right click (not any click)
|
||||
|
||||
diff -r e3c76e40eb2e -r c44f1d969809 src/virtManager/host.py
|
||||
--- a/src/virtManager/host.py Wed Oct 22 16:48:15 2008 -0400
|
||||
+++ b/src/virtManager/host.py Wed Oct 22 16:53:28 2008 -0400
|
||||
@@ -614,6 +614,9 @@
|
||||
self.window.get_widget("vol-delete").set_sensitive(True)
|
||||
|
||||
def popup_vol_menu(self, widget, event):
|
||||
+ if event.button != 3:
|
||||
+ return
|
||||
+
|
||||
tup = widget.get_path_at_pos(int(event.x), int(event.y))
|
||||
if tup == None:
|
||||
return False
|
@ -7,8 +7,8 @@
|
||||
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
|
||||
|
||||
Name: virt-manager
|
||||
Version: 0.6.0
|
||||
Release: 7%{_extra_release}
|
||||
Version: 0.6.1
|
||||
Release: 1%{_extra_release}
|
||||
Summary: Virtual Machine Manager
|
||||
|
||||
Group: Applications/Emulators
|
||||
@ -17,16 +17,6 @@ URL: http://virt-manager.org/
|
||||
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.pam
|
||||
Source2: %{name}.console
|
||||
Patch1: %{name}-%{version}-polkit-root.patch
|
||||
Patch2: %{name}-%{version}-conn-details-sensitivity.patch
|
||||
Patch3: %{name}-%{version}-populate-hostinfo-early.patch
|
||||
Patch4: %{name}-%{version}-update-potfiles.patch
|
||||
Patch5: %{name}-%{version}-update-translations.patch
|
||||
Patch6: %{name}-%{version}-multiple-sound-dev.patch
|
||||
Patch7: %{name}-%{version}-vol-copy-popup.patch
|
||||
Patch8: %{name}-%{version}-connect-variable-typo.patch
|
||||
Patch9: %{name}-%{version}-fix-virt-type-desc.patch
|
||||
Patch10: %{name}-%{version}-ignore-sighup.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
# These two are just the oldest version tested
|
||||
@ -53,7 +43,7 @@ Requires: gnome-python2-gnome
|
||||
# Minimum we've tested with
|
||||
Requires: libxml2-python >= 2.6.23
|
||||
# Required to install Xen & QEMU guests
|
||||
Requires: python-virtinst >= 0.400.0
|
||||
Requires: python-virtinst >= 0.400.1
|
||||
# Required for loading the glade UI
|
||||
Requires: pygtk2-libglade
|
||||
# Required for our graphics which are currently SVG format
|
||||
@ -96,16 +86,6 @@ management API.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -195,6 +175,13 @@ fi
|
||||
%{_datadir}/dbus-1/services/%{name}.service
|
||||
|
||||
%changelog
|
||||
* Mon Jan 26 2009 Cole Robinson <crobinso@redhat.com> - 0.6.1-1
|
||||
- Update to 0.6.1 release
|
||||
- Disk and Network VM stats reporting
|
||||
- VM Migration support
|
||||
- Support adding sound devices to existing VMs
|
||||
- Allow specifying device model when adding a network device to an existing VM
|
||||
|
||||
* Tue Jan 20 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.0-7
|
||||
- Add patch to ignore fix crash on force-poweroff with serial console (#470548)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user