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] Problem using managed domains

To: <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] Problem using managed domains
From: "Dube, Lutz" <Lutz.Dube@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Apr 2007 15:50:12 +0200
Delivery-date: Thu, 26 Apr 2007 15:15:32 -0700
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=pbGXNJXROFtB2NfnYozo7EqYaCmu+upJTx5vc4+7hAcr/XsbA5aT0Sc63QMkz3lcN+uEYRDKQa9RovkHh4MIMMrE3rnxXQr0HUVXMmvky/iRtDFLVaZPt43++MxC+aaY;
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
Thread-index: AceGd3qtMSxZN6/2SFKC+VZc3jA5xg==
Thread-topic: Problem using managed domains

Hello!

I have a problem using managed domains.

I'm trying to to create a new VM object using the method VM.create. In this case xend should
create a config.sxp file for the new managed domain, but I get an error in xend.log
(s. below). The creation of the VM object itself is OK.

API call:
newvm = xen.VM.create(session,{ 'name_label':'testdom',
                                'memory_static_max'  : '10240000',
                                'memory_dynamic_max' : '10240000'})


Resulting error log:

[2007-04-24 13:35:33 24434] DEBUG (XendDomain:728) Creating new managed domain: dube: af845f26-ed19-fab1-c4ff-05a27c41046d

[2007-04-24 13:35:33 24434] ERROR (XendDomain:302) Renaming /tmp/tmp0PfFzy
Traceback (most recent call last):
  File "/usr/lib/python2.4/xen/xend/XendDomain.py", line 300, in managed_config_save
    os.rename(fn, self._managed_config_path(dom_uuid))
OSError: [Errno 18] Invalid cross-device link

In my system the default path for managed domains (/var/lib/xend/domains) is used and the
directories /var and /tmp are on different file systems, so the system call os.rename must fail.
My workaround is to set xend-domains-path in xend-config.sxp to a directory on the same file system.

Will this restriction be removed in a later version of xend ?


Cheers
Lutz


_______________________________________________
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>