Mailing List Archive

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@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
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@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
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@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
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@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
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@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
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@lists.xensource.com 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@lists.xensource.com
> http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
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@lists.xensource.com 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@lists.xensource.com 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@lists.xensource.com
> > http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
> _______________________________________________
> xen-api mailing list
> xen-api@lists.xensource.com
> http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api