Commit 77e8d509 authored by Jose A. Lopes's avatar Jose A. Lopes Committed by Hrvoje Ribicic

Add Xen nothing state '------'

... which means that a domain is in the queue behind other domains
waiting to be scheduled.  The domain is runnable but it is not
currently running.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>

Cherry-picked from 30350df5.
Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 4a55efd1
......@@ -172,10 +172,16 @@ def _GetInstanceList(fn, include_node, _timeout=5):
#
# An instance is running if it is in the following Xen states:
# running, blocked, or paused.
#
# A state of nothing '------' means that the domain is runnable but it
# is not currently running. That means it is in the queue behind
# other domains waiting to be scheduled to run.
# http://old-list-archives.xenproject.org/xen-users/2007-06/msg00849.html
def _IsInstanceRunning(instance_info):
return instance_info == "r-----" \
or instance_info == "-b----" \
or instance_info == "--p---"
or instance_info == "--p---" \
or instance_info == "------"
def _IsInstanceShutdown(instance_info):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment