Hi,

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.

I have attached a patch that removes that optimization as a suggestion for a 
fix.


-- 
ciao, Uwe Gansert

SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg)
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer
Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net
commit b5caa1cacff077d0c2dbb361e2c4bb7b5d54d554
Author: Uwe Gansert <u...@suse.de>
Date:   Fri Oct 28 10:56:08 2011 +0200

    fix vm-state poller

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()
_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to