All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: xen-devel@lists.xensource.com
Cc: xen-changelog@lists.xensource.com
Subject: Re: [Xen-changelog] Added exception handler for ProtocolError.
Date: Thu, 23 Mar 2006 10:24:42 -0600	[thread overview]
Message-ID: <4422CBCA.5080204@us.ibm.com> (raw)
In-Reply-To: <E1FMQAe-0001Fm-0M@xenbits.xensource.com>

Xen patchbot -unstable wrote:
> # HG changeset patch
> # User emellor@leeni.uk.xensource.com
> # Node ID c1bb4eb565296bdb00aed84fcc877befbcebd8e9
> # Parent  b55ca95fdc846a5db9f30ba1c5d065fe898f88e7
> Added exception handler for ProtocolError.
>
> Signed-off-by: Ewan Mellor <ewan@xensource.com>
>
> diff -r b55ca95fdc84 -r c1bb4eb56529 tools/python/xen/xm/main.py
> --- a/tools/python/xen/xm/main.py	Thu Mar 23 10:55:56 2006
> +++ b/tools/python/xen/xm/main.py	Thu Mar 23 10:58:19 2006
> @@ -1102,6 +1102,12 @@
>              else:
>                  err("Error connecting to xend: %s." % ex[1])
>              sys.exit(1)
> +        except xmlrpclib.ProtocolError, ex:
> +            if os.geteuid() != 0:
> +                err("Most commands need root access.  Please try again as root.")
> +            else:
> +                err("Error connecting to xend: %s." % ex.errmsg)
> +            sys.exit(1)
>          except SystemExit:
>              sys.exit(1)
>          except xmlrpclib.Fault, ex:
>   

Hi Ewan,

ProtocolError's shouldn't happen.  The case where os.geteuid() != 0 is a 
possibility (although I thought we had a check earlier for that?).  
However, if we are getting them for another reason, something's wrong.

What commands were you seeing this with?  There may be a latent bug in 
the dispatch code that marshals exceptions...

Regards,

Anthony Liguori

> _______________________________________________
> Xen-changelog mailing list
> Xen-changelog@lists.xensource.com
> http://lists.xensource.com/xen-changelog
>   

       reply	other threads:[~2006-03-23 16:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1FMQAe-0001Fm-0M@xenbits.xensource.com>
2006-03-23 16:24 ` Anthony Liguori [this message]
2006-03-23 16:47   ` Re: [Xen-changelog] Added exception handler for ProtocolError Ewan Mellor
2006-03-23 16:59     ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4422CBCA.5080204@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=xen-changelog@lists.xensource.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.