Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

Xen API login error

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


andre.boedecker at olb

Dec 10, 2007, 4:18 AM

Post #1 of 7 (463 views)
Permalink
Xen API login error

Does anybody know why i get this error?
What can i do against it?


[2007-11-30 03:33:00 29410] ERROR (xmlrpclib2:166) Internal error
handling session.login_with_password
Traceback (most recent call last):
File "usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line
131, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File "usr/lib/python2.4/site-packages/xen/xend/XendAPI.py", line 744,
in session_login_with_password
session = ((self.auth == AUTH_NONE and
File "usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py",
line 52, in login_with_password
File "usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py",
line 87, in is_authorized
error: ('Critical error - immediate abort', 26)


I'm still working on a web based management GUI with the Xen-API in PHP.
But the problem is that I sometimes get this error and my GUI can't
connect to the Xen-API correctly anymore. The VM's on the Server are
still running.

To solve the problem I can shut down all VM's and restart the xend but
this is bad solution because i can't stop the VM's in production when I
want. <ende?lp=ende&p=eL4jU.&search=production>

Does anybody has an idea to help me?

Regards
André

--
Oldenburgische Landesbank AG

Vorsitzender des Aufsichtsrates: Dr. Andreas Georgi
Vorstand: Dr. Jörg Bleckmann, Sprecher
Dr. Stefan Friedmann
Dr. Peter Schinzing
Bernd Span
Sitz der Gesellschaft: Oldenburg (Oldb)
Registergericht: Oldenburg (Oldb)
HR-Nummer: HRB 3003



_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


skinkie at xs4all

Dec 10, 2007, 4:29 AM

Post #2 of 7 (462 views)
Permalink
Re: Xen API login error [In reply to]

André Bödecker schreef:
> Does anybody know why i get this error?
> What can i do against it?
What Xen version are you using?


Stefan



_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


andre.boedecker at olb

Dec 10, 2007, 5:06 AM

Post #3 of 7 (460 views)
Permalink
Re: Xen API login error [In reply to]

Xen 3.1.0

André

Stefan de Konink schrieb:
> André Bödecker schreef:
>
>> Does anybody know why i get this error?
>> What can i do against it?
>>
> What Xen version are you using?
>
>
> Stefan
>
>
>
>

--
Oldenburgische Landesbank AG

Vorsitzender des Aufsichtsrates: Dr. Andreas Georgi
Vorstand: Dr. Jörg Bleckmann, Sprecher
Dr. Stefan Friedmann
Dr. Peter Schinzing
Bernd Span
Sitz der Gesellschaft: Oldenburg (Oldb)
Registergericht: Oldenburg (Oldb)
HR-Nummer: HRB 3003



_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


skinkie at xs4all

Dec 10, 2007, 5:12 AM

Post #4 of 7 (459 views)
Permalink
Re: Xen API login error [In reply to]

On Mon, 10 Dec 2007, [ISO-8859-15] André Bödecker wrote:

> Xen 3.1.0

...why are you asking questions if you don't even use the latest 'stable'
question?


I suggest to try out the first candidate release of 3.2.0. The 3.1.2
version has another bug when a domain is shutdown.


Stefan


_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


andre.boedecker at olb

Dec 14, 2007, 3:18 AM

Post #5 of 7 (461 views)
Permalink
Re: Xen API login error [In reply to]

OK, now we use the version 3.1.2 but we get the same error after a short
time (like one day).

Additional we get this warning now (at the same time as I get the error
above):

[2007-12-12 11:00:41 26671] WARNING (connection:126) Rejected connection
from 184.1.70.29 (184.1.70.29).
Further more I detect that when I do this command:
lsof | grep 9363

There are qemu-dm processes which are listening on port 9363.
qemu-dm 2460 root 21u IPv4 9440 TCP
*:9363 (LISTEN)
qemu-dm 2511 root 21u IPv4 9440 TCP
*:9363 (LISTEN)
qemu-dm 2512 root 21u IPv4 9440 TCP
*:9363 (LISTEN)
qemu-dm 2558 root 21u IPv4 9440 TCP
*:9363 (LISTEN)

If I restart xend (with xend stop; xend start) the python process can't
open port 9363 for xen-api because it is blocked by the qemu-du processes.

Regards
André


Stefan de Konink schrieb:
> On Mon, 10 Dec 2007, [ISO-8859-15] André Bödecker wrote:
>
>
>> Xen 3.1.0
>>
>
> ...why are you asking questions if you don't even use the latest 'stable'
> question?
>
>
> I suggest to try out the first candidate release of 3.2.0. The 3.1.2
> version has another bug when a domain is shutdown.
>
>
> Stefan
>
>
>

--
Oldenburgische Landesbank AG

Vorsitzender des Aufsichtsrates: Dr. Andreas Georgi
Vorstand: Dr. Jörg Bleckmann, Sprecher
Dr. Stefan Friedmann
Dr. Peter Schinzing
Bernd Span
Sitz der Gesellschaft: Oldenburg (Oldb)
Registergericht: Oldenburg (Oldb)
HR-Nummer: HRB 3003



_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


stefanb at us

Dec 14, 2007, 2:10 PM

Post #6 of 7 (461 views)
Permalink
Re: Xen API login error [In reply to]

Do you happen to have python PAM installed on your system? I am asking
because I installed version 0.5.0 of PyPAM and enabled Xen-API
authentication by changing xend's config file. Xend crashes when I use my
username and login as credentials. This is on Fedora Core 7.

diff -r 3ee37b6279b7 tools/python/xen/xend/XendAuthSessions.py
--- a/tools/python/xen/xend/XendAuthSessions.py Fri Dec 14 10:48:18 2007
+0000
+++ b/tools/python/xen/xend/XendAuthSessions.py Fri Dec 14 16:01:55 2007
-0500
@@ -83,8 +83,9 @@ class XendAuthSessions:
except NameError:
# if PAM doesn't exist, let's ignore it
return False
-
+
pam_auth.start("login")
+ log.info("A")
pam_auth.set_item(PAM.PAM_USER, username)

def _pam_conv(auth, query_list, user_data = None):


If I add the line log.info("A") to the above, commands work. Very strange.
I am not sure where the error may be coming from but my suspicion is the
PyPAM module. I'd disable authentication in the xend config file and see
whether things work better then.

Stefan


xen-api-bounces [at] lists wrote on 12/10/2007 06:18:12 AM:

> Does anybody know why i get this error?
> What can i do against it?
>
>
> [2007-11-30 03:33:00 29410] ERROR (xmlrpclib2:166) Internal error
> handling session.login_with_password
> Traceback (most recent call last):
> File "usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line
> 131, in _marshaled_dispatch
> response = self._dispatch(method, params)
> File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in
_dispatch
> return func(*params)
> File "usr/lib/python2.4/site-packages/xen/xend/XendAPI.py", line 744,
> in session_login_with_password
> session = ((self.auth == AUTH_NONE and
> File "usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py",
> line 52, in login_with_password
> File "usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py",
> line 87, in is_authorized
> error: ('Critical error - immediate abort', 26)
>
>
> I'm still working on a web based management GUI with the Xen-API in PHP.

> But the problem is that I sometimes get this error and my GUI can't
> connect to the Xen-API correctly anymore. The VM's on the Server are
> still running.
>
> To solve the problem I can shut down all VM's and restart the xend but
> this is bad solution because i can't stop the VM's in production when I
> want. <ende?lp=ende&p=eL4jU.&search=production>
>
> Does anybody has an idea to help me?
>
> Regards
> André
>
> --
> Oldenburgische Landesbank AG
>
> Vorsitzender des Aufsichtsrates: Dr. Andreas Georgi
> Vorstand: Dr. Jörg Bleckmann, Sprecher
> Dr. Stefan Friedmann
> Dr. Peter Schinzing
> Bernd Span
> Sitz der Gesellschaft: Oldenburg (Oldb)
> Registergericht: Oldenburg (Oldb)
> HR-Nummer: HRB 3003
>
>
>
> _______________________________________________
> xen-api mailing list
> xen-api [at] lists
> http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


stefanb at us

Dec 14, 2007, 3:09 PM

Post #7 of 7 (459 views)
Permalink
Re: Xen API login error [In reply to]

... and indeed, there's at least a problem in PyPAM. The correct
implementation of the failing function in PAMmodule.c should look like
this:

static void PyPAM_dealloc(PyPAMObject *self)
{
Py_DECREF(self->callback); <-- added
Py_DECREF(self->user_data); <-- added
free(self->service);
free(self->user);
free(self->conv);
pam_end(self->pamh, PAM_SUCCESS);
dlclose(self->dlh2);
dlclose(self->dlh1);
PyObject_Del(self); <-- instead of PyMem_DEL, which will crash
xend after a few times.
}

Stefan

xen-api-bounces [at] lists wrote on 12/14/2007 04:10:42 PM:

>
> Do you happen to have python PAM installed on your system? I am
> asking because I installed version 0.5.0 of PyPAM and enabled Xen-
> API authentication by changing xend's config file. Xend crashes when
> I use my username and login as credentials. This is on Fedora Core 7.
>
> diff -r 3ee37b6279b7 tools/python/xen/xend/XendAuthSessions.py
> --- a/tools/python/xen/xend/XendAuthSessions.py Fri Dec 14
> 10:48:18 2007 +0000
> +++ b/tools/python/xen/xend/XendAuthSessions.py Fri Dec 14
> 16:01:55 2007 -0500
> @@ -83,8 +83,9 @@ class XendAuthSessions:
> except NameError:
> # if PAM doesn't exist, let's ignore it
> return False
> -
> +
> pam_auth.start("login")
> + log.info("A")
> pam_auth.set_item(PAM.PAM_USER, username)
>
> def _pam_conv(auth, query_list, user_data = None):
>
>
> If I add the line log.info("A") to the above, commands work. Very
> strange. I am not sure where the error may be coming from but my
> suspicion is the PyPAM module. I'd disable authentication in the
> xend config file and see whether things work better then.
>
> Stefan
>
>
> xen-api-bounces [at] lists wrote on 12/10/2007 06:18:12 AM:
>
> > Does anybody know why i get this error?
> > What can i do against it?
> >
> >
> > [2007-11-30 03:33:00 29410] ERROR (xmlrpclib2:166) Internal error
> > handling session.login_with_password
> > Traceback (most recent call last):
> > File "usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line
> > 131, in _marshaled_dispatch
> > response = self._dispatch(method, params)
> > File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in
_dispatch
> > return func(*params)
> > File "usr/lib/python2.4/site-packages/xen/xend/XendAPI.py", line
744,
> > in session_login_with_password
> > session = ((self.auth == AUTH_NONE and
> > File "usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py",

> > line 52, in login_with_password
> > File "usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py",

> > line 87, in is_authorized
> > error: ('Critical error - immediate abort', 26)
> >
> >
> > I'm still working on a web based management GUI with the Xen-API in
PHP.
> > But the problem is that I sometimes get this error and my GUI can't
> > connect to the Xen-API correctly anymore. The VM's on the Server are
> > still running.
> >
> > To solve the problem I can shut down all VM's and restart the xend but

> > this is bad solution because i can't stop the VM's in production when
I
> > want. <ende?lp=ende&p=eL4jU.&search=production>
> >
> > Does anybody has an idea to help me?
> >
> > Regards
> > André
> >
> > --
> > Oldenburgische Landesbank AG
> >
> > Vorsitzender des Aufsichtsrates: Dr. Andreas Georgi
> > Vorstand: Dr. Jörg Bleckmann, Sprecher
> > Dr. Stefan Friedmann
> > Dr. Peter Schinzing
> > Bernd Span
> > Sitz der Gesellschaft: Oldenburg (Oldb)
> > Registergericht: Oldenburg (Oldb)
> > HR-Nummer: HRB 3003
> >
> >
> >
> > _______________________________________________
> > xen-api mailing list
> > xen-api [at] lists
> > http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
> _______________________________________________
> xen-api mailing list
> xen-api [at] lists
> http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.