From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Jim Fehlig <jfehlig@novell.com>
Cc: xen-devel <xen-devel@lists.xensource.com>, dexuan.cui@intel.com
Subject: Re: [PATCH] Improve xm error if booted native
Date: Wed, 04 Feb 2009 09:50:37 +0800 [thread overview]
Message-ID: <4988F46D.7030609@oracle.com> (raw)
In-Reply-To: <4988C692.5000506@novell.com>
hi jim/dexuan,
I think using xen.lowlevel.xc here is totally wrong.
xm is client that designed to run on any host.
we should first try to replace the xc with other other functions. or add
a XenAPI/legacyAPI to use by xm.
thanks,
zhigang
Jim Fehlig wrote:
> Another trivial "user experience" patch that's been requested one too
> many times ...
>
> -----------------------------------------
>
> How to reproduce:
> i) boot default kernel (i.e. not xen kernel)
> ii) run xm list
>
> Actual Result:
> calculon:/tmp # uname -a
> Linux calculon.suse.cz 2.6.27.11-1-default #1 SMP 2009-01-14 23:28:13 +0100
> x86_64 x86_64 x86_64 GNU/Linux
> calculon:/tmp # xm list
> ERROR Internal error: Could not obtain handle on privileged command interface
> (2 = No such file or directory)
> Traceback (most recent call last):
> File "/usr/sbin/xm", line 8, in <module>
> from xen.xm import main
> File "/usr/lib64/python2.6/site-packages/xen/xm/main.py", line 61, in
> <module>
> xc = xen.lowlevel.xc.xc()
> xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on
> privileged command interface (2 = No such file or directory)')
> calculon:/tmp #
>
> Expected result:
> A more descriptive error message and no python traceback.
>
> -----------------------------------------
>
> Looking at the various xc_interface_open() impls in
> tools/libxc/xc_{linux,minios,netbsd,solaris}.c, it seems the most likely
> reason to fail is not booted xen. I added a comment in the error
> suggesting this to user, e.g.
>
> xen67:~ # xm li
> ERROR Internal error: Could not obtain handle on privileged command
> interface (2 = No such file or directory)
> Is xen kernel running?
>
> The suggestion can go if you like but IMO we should suppress the
> traceback :-).
>
> Signed-off-by: Jim Fehlig <jfehlig@novell.com>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
prev parent reply other threads:[~2009-02-04 1:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-03 22:34 [PATCH] Improve xm error if booted native Jim Fehlig
2009-02-04 1:50 ` Zhigang Wang [this message]
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=4988F46D.7030609@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=dexuan.cui@intel.com \
--cc=jfehlig@novell.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.