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

Re: [Xen-API] how to switch on API on XCP

To: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] how to switch on API on XCP
From: Olivier LAMBERT <lambert.olivier@xxxxxxxxx>
Date: Thu, 25 Feb 2010 14:55:10 +0100
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 25 Feb 2010 05:55:08 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1msUC/8IMH2tHkVCnBctO1PIJg/E9knIQAz8eExY9l8=; b=Z4ilaed+85IJI/E9L1aPleu52qMiaxIdFmIBW3l3dWvqBcM5E4lJAXgrYqSIklV5Rb xdj9wuF6l4D3+5axEEDdPd2C6AhJTU2NLXT+jqQFhC7VoT0Iri/p4QL3VrSBJqlpnJaD JwnPzpocaAlHK2osckRRrnSDOkyhUvTUoaaHA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=dMAnl9mx6Q7ju1tSH/2UD2C9K/GS8sVJ/hKh/Kq5K0J87soEhvqSjMCFczW4Wkg05H Jp6cqwQ53efhOkD3fxUo1eLo5dfw3qTadMzXxMbUZggap89DZ94O152YQbgZ4g1Y4OPt yBIK51gxQO9AP7UIWtSeOnkfAgOlXx/Xtqgc8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <81A73678E76EA642801C8F2E4823AD21565E554100@xxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <f769216c1002250534r27f6d7adqa89e3480c9c93afb@xxxxxxxxxxxxxx> <81A73678E76EA642801C8F2E4823AD21565E554100@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thanks, finally it works on port 80 (need to check why with 443 the
connection is reset by peer).

So, I can see all templates in Xen Orchestra ! Wow, there is lots of domUs !

Olivier
XO Project
http://xen-orchestra.com

On Thu, Feb 25, 2010 at 2:43 PM, Dave Scott <Dave.Scott@xxxxxxxxxxxxx> wrote:
> Hi Olivier,
>
> By default XCP is listening on port 443 of its management interface for 
> XMLRPC/HTTPS. There's nothing else you need to activate.
>
> On another machine try firing up a python toplevel and typing:
>
> $ python
> Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03)
> [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import xmlrpclib
>>>> x = xmlrpclib.Server("https://myXCPaddress";)
>>>> session = x.session.login_with_password("root", "password")
>>>> session
> {'Status': 'Success', 'Value': 
> 'OpaqueRef:46c4dcd9-ab8e-8e04-51a2-0f5a3a0792bd'}
>>>>
>
> Cheers,
> Dave
>
>> -----Original Message-----
>> From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-
>> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Olivier LAMBERT
>> Sent: 25 February 2010 13:35
>> To: xen-api@xxxxxxxxxxxxxxxxxxx
>> Subject: [Xen-API] how to switch on API on XCP
>>
>> Hello,
>>
>> After my first attempt (which is successful) to install XCP, I've got
>> a question. With standalone Xen, in order to activate API, you just
>> need to uncomment this in xend-config.sxp :
>> (xen-api-server ((9363 unix)))
>>
>> But, for XCP, what can I do to activate the API server ?
>>
>>
>> Regards,
>>
>>
>> Olivier
>> XO Project
>> http://xen-orchestra.com
>>
>> _______________________________________________
>> xen-api mailing list
>> xen-api@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/mailman/listinfo/xen-api
>

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

<Prev in Thread] Current Thread [Next in Thread>