LGTM, thanks

On Wed, Apr 16, 2014 at 9:59 AM, Jose A. Lopes <[email protected]> wrote:

> ... 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: Jose A. Lopes <[email protected]>
> ---
>  lib/hypervisor/hv_xen.py | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py
> index 4ea4fa6..4070066 100644
> --- a/lib/hypervisor/hv_xen.py
> +++ b/lib/hypervisor/hv_xen.py
> @@ -173,10 +173,16 @@ def _GetAllInstanceList(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):
> --
> 1.9.1.423.g4596e3a
>
>

Reply via email to