client/tools/rhn-virtualization/virtualization/constants.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
New commits:
commit 72e10709b87fa115cf75fb3451cf4494e34f2bcb
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Mon Jan 4 14:57:33 2010 +0100
546676 - blocking and nostate are always just running
diff --git a/client/tools/rhn-virtualization/virtualization/constants.py
b/client/tools/rhn-virtualization/virtualization/constants.py
index bd45988..aa5c86c 100755
--- a/client/tools/rhn-virtualization/virtualization/constants.py
+++ b/client/tools/rhn-virtualization/virtualization/constants.py
@@ -51,10 +51,15 @@ class PropertyType:
##
# This structure maps the libvirt state enumeration to labels that RHN
# understands.
-#
-VIRT_STATE_NAME_MAP = ( StateType.NOSTATE, # VIR_DOMAIN_NOSTATE
+# Reasons we don't care about differences between NOSTATE, RUNNING and BLOCKED:
+# 1. technically, the domain is still "running"
+# 2. RHN / RHN Satellite / Spacewalk are not able to display 'blocked' &
'nostate'
+# as valid states
+# 3. to avoid 'Abuse of Service' messages: bugs #230106 and #546676
+
+VIRT_STATE_NAME_MAP = ( StateType.RUNNING, # VIR_DOMAIN_NOSTATE
StateType.RUNNING, # VIR_DOMAIN_RUNNING
- StateType.BLOCKED, # VIR_DOMAIN_BLOCKED
+ StateType.RUNNING, # VIR_DOMAIN_BLOCKED
StateType.PAUSED, # VIR_DOMAIN_PAUSED
StateType.SHUTDOWN, # VIR_DOMAIN_SHUTDOWN
StateType.SHUTOFF, # VIR_DOMAIN_SHUTOFF
Show replies by date