* xend with XenAPI in stackless python-2.7
@ 2013-11-01 17:05 Eric Camachat
2013-11-01 17:34 ` Andrew Cooper
0 siblings, 1 reply; 6+ messages in thread
From: Eric Camachat @ 2013-11-01 17:05 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1542 bytes --]
Hi,
I am using XEN-4.1.2 and linux-2.6.32 as dom0.
After I upgraded stackless python from 2.5 to 2.7 (and rebuilt xen).
XenAPI became unusable, I spent some time to investigate XenAPI,py, it
looks fine.
So, I guess xend has problem with python 2.7, because it always returned
method unknown.
Do I have to tweak xend to let it support python 2.7?
Thanks,
Eric
/root #
python
Python 2.7.5 Stackless 3.1b3 060516 (default, Oct 31 2013,
16:45:11)
[GCC 4.2.2] on
linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import
XenAPI
>>> session =
XenAPI.xapi_local()
>>> session.login_with_password('',
'')
Traceback (most recent call
last):
File "<stdin>", line 1, in
<module>
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 198, in
<lambda>
return lambda *params: self._login(name,
params)
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 171, in
_login
self.API_version =
self._get_api_version()
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 186, in
_get_api_version
pool =
self.xenapi.pool.get_all()[0]
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 245, in
__call__
return self.__send(self.__name,
args)
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 149, in
xenapi_request
result = _parse_result(getattr(self,
methodname)(*full_params))
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 219, in
_parse_result
raise
Failure(result['ErrorDescription'])
XenAPI.Failure: ['MESSAGE_METHOD_UNKNOWN',
'pool.get_all']
>>>
[-- Attachment #1.2: Type: text/html, Size: 5518 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: xend with XenAPI in stackless python-2.7
2013-11-01 17:05 xend with XenAPI in stackless python-2.7 Eric Camachat
@ 2013-11-01 17:34 ` Andrew Cooper
2013-11-01 18:12 ` Pasi Kärkkäinen
2013-11-01 18:14 ` Eric Camachat
0 siblings, 2 replies; 6+ messages in thread
From: Andrew Cooper @ 2013-11-01 17:34 UTC (permalink / raw)
To: Eric Camachat; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 3644 bytes --]
On 01/11/13 17:05, Eric Camachat wrote:
> Hi,
>
> I am using XEN-4.1.2 and linux-2.6.32 as dom0.
> After I upgraded stackless python from 2.5 to 2.7 (and rebuilt xen).
> XenAPI became unusable, I spent some time to investigate XenAPI,py, it
> looks fine.
> So, I guess xend has problem with python 2.7, because it always
> returned method unknown.
> Do I have to tweak xend to let it support python 2.7?
>
> Thanks,
> Eric
xend and XenAPI are two completely different things.
xend is the old deprecated Xen toolstack, written entirely in python.
It has been replaced with the xenlight toolstack upstream.
Xen-API is a separate open source toolstack, written in OCaml.
XenAPI.py is just a small python wrapper around the Xen-API XMLRPC
interface.
Which toolstack are you expecting to be using?
~Andrew
>
> /root #
> python
>
> Python 2.7.5 Stackless 3.1b3 060516 (default, Oct 31 2013,
> 16:45:11)
> [GCC 4.2.2] on
> linux2
>
> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> import
> XenAPI
>
> >>> session =
> XenAPI.xapi_local()
>
> >>> session.login_with_password('',
> '')
>
> Traceback (most recent call
> last):
>
> File "<stdin>", line 1, in
> <module>
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 198, in
> <lambda>
> return lambda *params: self._login(name,
> params)
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 171, in
> _login
> self.API_version =
> self._get_api_version()
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 186, in
> _get_api_version
> pool =
> self.xenapi.pool.get_all()[0]
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 245, in
> __call__
> return self.__send(self.__name,
> args)
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 149, in
> xenapi_request
> result = _parse_result(getattr(self,
> methodname)(*full_params))
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 219, in
> _parse_result
> raise
> Failure(result['ErrorDescription'])
>
> XenAPI.Failure: ['MESSAGE_METHOD_UNKNOWN',
> 'pool.get_all']
> >>>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
[-- Attachment #1.2: Type: text/html, Size: 13539 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: xend with XenAPI in stackless python-2.7
2013-11-01 17:34 ` Andrew Cooper
@ 2013-11-01 18:12 ` Pasi Kärkkäinen
2013-11-04 10:30 ` Ian Campbell
2013-11-01 18:14 ` Eric Camachat
1 sibling, 1 reply; 6+ messages in thread
From: Pasi Kärkkäinen @ 2013-11-01 18:12 UTC (permalink / raw)
To: Andrew Cooper; +Cc: Eric Camachat, xen-devel
On Fri, Nov 01, 2013 at 05:34:23PM +0000, Andrew Cooper wrote:
> On 01/11/13 17:05, Eric Camachat wrote:
>
> Hi,
>
> I am using XEN-4.1.2 and linux-2.6.32 as dom0.
> After I upgraded stackless python from 2.5 to 2.7 (and rebuilt xen).
> XenAPI became unusable, I spent some time to investigate XenAPI,py, it
> looks fine.
> So, I guess xend has problem with python 2.7, because it always returned
> method unknown.
> Do I have to tweak xend to let it support python 2.7?
>
> Thanks,
> Eric
>
> xend and XenAPI are two completely different things.
>
> xend is the old deprecated Xen toolstack, written entirely in python. It
> has been replaced with the xenlight toolstack upstream.
>
> Xen-API is a separate open source toolstack, written in OCaml. XenAPI.py
> is just a small python wrapper around the Xen-API XMLRPC interface.
>
> Which toolstack are you expecting to be using?
>
I thought xend has a limited XenAPI support aswell..
obviously only xapi has the complete support.
-- Pasi
> ~Andrew
>
> /root #
> python
> Python 2.7.5 Stackless 3.1b3 060516 (default, Oct 31 2013,
> 16:45:11)
> [GCC 4.2.2] on
> linux2
> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> import
> XenAPI
> >>> session =
> XenAPI.xapi_local()
> >>> session.login_with_password('',
> '')
> Traceback (most recent call
> last):
> File "<stdin>", line 1, in
> <module>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 198, in
> <lambda>
> return lambda *params: self._login(name,
> params)
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 171, in
> _login
> self.API_version =
> self._get_api_version()
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 186, in
> _get_api_version
> pool =
> self.xenapi.pool.get_all()[0]
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 245, in
> __call__
> return self.__send(self.__name,
> args)
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 149, in
> xenapi_request
> result = _parse_result(getattr(self,
> methodname)(*full_params))
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 219, in
> _parse_result
> raise
> Failure(result['ErrorDescription'])
> XenAPI.Failure: ['MESSAGE_METHOD_UNKNOWN',
> 'pool.get_all']
> >>>
>
> _______________________________________________
> Xen-devel mailing list
> [1]Xen-devel@lists.xen.org
> [2]http://lists.xen.org/xen-devel
>
> References
>
> Visible links
> 1. mailto:Xen-devel@lists.xen.org
> 2. http://lists.xen.org/xen-devel
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: xend with XenAPI in stackless python-2.7
2013-11-01 17:34 ` Andrew Cooper
2013-11-01 18:12 ` Pasi Kärkkäinen
@ 2013-11-01 18:14 ` Eric Camachat
2013-11-04 10:32 ` Ian Campbell
1 sibling, 1 reply; 6+ messages in thread
From: Eric Camachat @ 2013-11-01 18:14 UTC (permalink / raw)
To: Andrew Cooper; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 2573 bytes --]
I just want integrate VMs state into our management interface that written
by python.
It did work before, but looks doesn't make sense as you mentioned.
Basically, I want XenAP.py can be used to get VMs information.
Eric
On Fri, Nov 1, 2013 at 10:34 AM, Andrew Cooper <andrew.cooper3@citrix.com>wrote:
> On 01/11/13 17:05, Eric Camachat wrote:
>
> Hi,
>
> I am using XEN-4.1.2 and linux-2.6.32 as dom0.
> After I upgraded stackless python from 2.5 to 2.7 (and rebuilt xen).
> XenAPI became unusable, I spent some time to investigate XenAPI,py, it
> looks fine.
> So, I guess xend has problem with python 2.7, because it always returned
> method unknown.
> Do I have to tweak xend to let it support python 2.7?
>
> Thanks,
> Eric
>
>
> xend and XenAPI are two completely different things.
>
> xend is the old deprecated Xen toolstack, written entirely in python. It
> has been replaced with the xenlight toolstack upstream.
>
> Xen-API is a separate open source toolstack, written in OCaml. XenAPI.py
> is just a small python wrapper around the Xen-API XMLRPC interface.
>
> Which toolstack are you expecting to be using?
>
> ~Andrew
>
>
> /root #
> python
>
> Python 2.7.5 Stackless 3.1b3 060516 (default, Oct 31 2013,
> 16:45:11)
> [GCC 4.2.2] on
> linux2
>
> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> import
> XenAPI
>
> >>> session =
> XenAPI.xapi_local()
>
> >>> session.login_with_password('',
> '')
>
> Traceback (most recent call
> last):
>
> File "<stdin>", line 1, in
> <module>
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 198, in
> <lambda>
> return lambda *params: self._login(name,
> params)
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 171, in
> _login
> self.API_version =
> self._get_api_version()
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 186, in
> _get_api_version
> pool =
> self.xenapi.pool.get_all()[0]
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 245, in
> __call__
> return self.__send(self.__name,
> args)
>
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 149, in
> xenapi_request
> result = _parse_result(getattr(self,
> methodname)(*full_params))
> File "/usr/lib/python2.7/site-packages/XenAPI.py", line 219, in
> _parse_result
> raise
> Failure(result['ErrorDescription'])
>
> XenAPI.Failure: ['MESSAGE_METHOD_UNKNOWN',
> 'pool.get_all']
> >>>
>
>
>
> _______________________________________________
> Xen-devel mailing listXen-devel@lists.xen.orghttp://lists.xen.org/xen-devel
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 8509 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: xend with XenAPI in stackless python-2.7
2013-11-01 18:12 ` Pasi Kärkkäinen
@ 2013-11-04 10:30 ` Ian Campbell
0 siblings, 0 replies; 6+ messages in thread
From: Ian Campbell @ 2013-11-04 10:30 UTC (permalink / raw)
To: Pasi Kärkkäinen; +Cc: Andrew Cooper, Eric Camachat, xen-devel
On Fri, 2013-11-01 at 20:12 +0200, Pasi Kärkkäinen wrote:
> On Fri, Nov 01, 2013 at 05:34:23PM +0000, Andrew Cooper wrote:
> > On 01/11/13 17:05, Eric Camachat wrote:
> >
> > Hi,
> >
> > I am using XEN-4.1.2 and linux-2.6.32 as dom0.
> > After I upgraded stackless python from 2.5 to 2.7 (and rebuilt xen).
> > XenAPI became unusable, I spent some time to investigate XenAPI,py, it
> > looks fine.
> > So, I guess xend has problem with python 2.7, because it always returned
> > method unknown.
> > Do I have to tweak xend to let it support python 2.7?
> >
> > Thanks,
> > Eric
> >
> > xend and XenAPI are two completely different things.
> >
> > xend is the old deprecated Xen toolstack, written entirely in python. It
> > has been replaced with the xenlight toolstack upstream.
> >
> > Xen-API is a separate open source toolstack, written in OCaml. XenAPI.py
> > is just a small python wrapper around the Xen-API XMLRPC interface.
> >
> > Which toolstack are you expecting to be using?
> >
>
> I thought xend has a limited XenAPI support aswell..
Yes, a kind of v0.1 XenAPI, which differs even from the first version of
XenAPI support by xapi AFAIK, and cxapi has moved on considerably since
then.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: xend with XenAPI in stackless python-2.7
2013-11-01 18:14 ` Eric Camachat
@ 2013-11-04 10:32 ` Ian Campbell
0 siblings, 0 replies; 6+ messages in thread
From: Ian Campbell @ 2013-11-04 10:32 UTC (permalink / raw)
To: Eric Camachat; +Cc: Andrew Cooper, xen-devel
On Fri, 2013-11-01 at 11:14 -0700, Eric Camachat wrote:
> I just want integrate VMs state into our management interface that
> written by python.
>
> It did work before, but looks doesn't make sense as you mentioned.
>
>
> Basically, I want XenAP.py can be used to get VMs information.
This list deals with the development of the core Xen hypervisor. For
questions about xapi/XenServer/XCP/XenAPI etc you will most likely have
better luck and be on topic with the lists at www.xenserver.org or the
xen-api@lists.xen.org one.
Ian.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-11-04 10:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-01 17:05 xend with XenAPI in stackless python-2.7 Eric Camachat
2013-11-01 17:34 ` Andrew Cooper
2013-11-01 18:12 ` Pasi Kärkkäinen
2013-11-04 10:30 ` Ian Campbell
2013-11-01 18:14 ` Eric Camachat
2013-11-04 10:32 ` Ian Campbell
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.