WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] XenStore access problem: xen.lowlevel.xs.Error: (2, 'No such f

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] XenStore access problem: xen.lowlevel.xs.Error: (2, 'No such file or directory')
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Fri, 16 Nov 2007 16:27:23 -0500
Delivery-date: Fri, 16 Nov 2007 13:27:51 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=wxHJvwGWsSIUEgjVDNg+Hl7Rkj5yfy9w7o3mNQO9TWM=; b=QO4520zQHQkFNviGJDHvTSVm1MR1zpIMoT8+FqwMpHdXRe255jPlPC2+molbezry9jidpqcalVoz1AZQ7GiA6FAo5bjqw5BoO3GrRWtqEwwtELuoOoon+FEmySJ2SdhMe5O3beXzl872+2zwXJ5pdWIUQwAIEuBUVmCJvfWOPfE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=twTUCxvOr6g54ju8acHXSeQbLoWFRjQk4lUHz+Oii2rNKZdMD8iiDSzDEVxUPhEpxZ48wIFGIpDgfsECM0cl2l6wT7F51tQ87ACa2Px1oq55+eW5kTX7a2ic1FH8r0zqO45hCCZGHEetZpuA54EU0+/nkqtOYZJhoKXv5v551jo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I write a very simple python script to access xen store.

It works OK on dom0, but on a guest domain, it gives the following
error message:

Traceback (most recent call last):
  File "./mybus.py", line 11, in <module>
    xs = xshandle() # From xsutil
  File 
"/home/me/xen-build/dist/install/usr/lib/python/xen/xend/xenstore/xsutil.py",
line 18, in xshandle
    xs_handle = xen.lowlevel.xs.xs()
xen.lowlevel.xs.Error: (2, 'No such file or directory')

I don't know which file or directory that "xs" is trying to access.

below is part of my script:

import sys
sys.path.append('/usr/lib/python')

from xen.xend.xenstore.xswatch import *

xs = xshandle() # <-------- error happens here
path = xs.get_domain_path(0) + "/mynode"
th = xs.transaction_start()
buf = xs.read(th, path)
xs.transaction_end(th)
print "Got %s" % buf

Can anyone give me some hint?

ps:  another question is why it try to access file from my build
directory instead of /usr/lib/python/xen ?

Thanks in advance
weiming

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] XenStore access problem: xen.lowlevel.xs.Error: (2, 'No such file or directory'), weiming <=