client/tools/rhn-virtualization/rhn-virtualization.spec | 5 ++++-
client/tools/rhn-virtualization/virtualization/poller.py | 4 ----
rel-eng/packages/rhn-virtualization | 2 +-
3 files changed, 5 insertions(+), 6 deletions(-)
New commits:
commit c35fe26602c44c299dd3bc7af3fe2093b22d4128
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 31 00:36:42 2011 +0100
Automatic commit of package [rhn-virtualization] release [5.4.30-1].
diff --git a/client/tools/rhn-virtualization/rhn-virtualization.spec
b/client/tools/rhn-virtualization/rhn-virtualization.spec
index 4feddff..20ab8bf 100644
--- a/client/tools/rhn-virtualization/rhn-virtualization.spec
+++ b/client/tools/rhn-virtualization/rhn-virtualization.spec
@@ -10,7 +10,7 @@ License: GPLv2
URL:
https://fedorahosted.org/spacewalk
Source0:
https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
-Version: 5.4.29
+Version: 5.4.30
Release: 1%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -134,6 +134,9 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE
%changelog
+* Mon Oct 31 2011 Miroslav Suchý 5.4.30-1
+- fix vm-state poller (ug(a)suse.de)
+
* Thu Oct 27 2011 Milan Zazrivec <mzazrivec(a)redhat.com> 5.4.29-1
- 742811 - domain_directory: R/O access to libvirtd is sufficient
diff --git a/rel-eng/packages/rhn-virtualization b/rel-eng/packages/rhn-virtualization
index 3efa35e..4290553 100644
--- a/rel-eng/packages/rhn-virtualization
+++ b/rel-eng/packages/rhn-virtualization
@@ -1 +1 @@
-5.4.29-1 client/tools/rhn-virtualization/
+5.4.30-1 client/tools/rhn-virtualization/
commit e51dca773e454a0c921f2195c119ecdf10695067
Author: Uwe Gansert <ug(a)suse.de>
Date: Mon Oct 31 00:33:40 2011 +0100
fix vm-state poller
there is a bug in spacewalk, that the state of your virtual guests is not
shown correctly if all machines are in state "stopped".
As long as at least one guest is running, the indicatior on the webpage:
Systems->[MACHINE]->Virtualization->Details
is correct but if you turn off the last machine, the state will still be
"running" for that guest. Spacewalk will never notice the shutdown.
That's because of a bug in poller.py on the client (virtual host) side. There
is an optimization to exit the program if the domain_list from
poll_hypervisor() is empty.
That list is empty when all virtual guests are stopped, so if you shutdown the
last running virtual guest, the poller.py will exit early and will return an
empty result to the Spacewalk server who thinks now that nothing has happened.
diff --git a/client/tools/rhn-virtualization/virtualization/poller.py
b/client/tools/rhn-virtualization/virtualization/poller.py
index f94e122..cb8e3ae 100644
--- a/client/tools/rhn-virtualization/virtualization/poller.py
+++ b/client/tools/rhn-virtualization/virtualization/poller.py
@@ -294,10 +294,6 @@ if __name__ == "__main__":
# useless. Just exit.
sys.exit(0)
- if not domain_list:
- # No domains returned, nothing to do, exit polling
- sys.exit(0)
-
# create the unkonwn domain config files (for libvirt only)
if libvirt and not vdsm_enabled:
uuid_list = domain_list.keys()