FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 02-04-2008, 10:05 PM
Michael DeHaan
 
Default "invalid kernel" -- found the problem!

I did netstat -alp | grep 25 and noticed something odd. Netstat claimed
that port 25152 was owned by dhcpd.



Not possible




_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 02-04-2008, 10:06 PM
Jan Wildeboer
 
Default "invalid kernel" -- found the problem!

On Mon, 2008-02-04 at 17:24 -0500, Michael DeHaan wrote:

> That does not seem possible. I can believe it flipping out due to
> connection problems though (again, should be much happier in 0.7.X due
> to the new exception handling code).

I know it seems impossible. Let me sum up what I did, what I saw and how
I corrected it.

This is cobbler 0.6.5.1

After I had some problems with the web-ui (it seems impossible to delete
distros, so I edited the distros file in /var/lib/cobbler manually) I
decided to get some sleep.

Next morning I logged in to cobbler and clicked on distros, after 30
seconds I got an error along the lines of "XMLRPC auth error, check your
apache logs".

I did netstat -alp | grep 25 and noticed something odd. Netstat claimed
that port 25152 was owned by dhcpd.

Hrmpf. Coffee.

service cobblerd stop
service dhcpd restart
service cobblerd start

netstat -alp | grep 25

All is fine again. Whatever.

It *seems* to happen after I have clicked sync in the webui a few times.
It is not really reproducable, but it happened a few times in the last
week.

HTH

Jan

--
Jan H Wildeboer |
Solution Architect, RHCE | Office: +49 (0)89 205071-207
Red Hat GmbH | Mobile: +49 (0)174 33 23 249
Otto-Hahn-Str.20 | Fax: +49 (0)89 205071-111
D-85609 Dornach/Munich | eMail: jan.wildeboer@redhat.com
__________________________________________________ ___________________

GPG-Key-ID: 5DEBAFB0
GPG-Fingerprint: 6104 0F74 8513 F17E DFD5 E820 6F61 A078 5DEB AFB0
__________________________________________________ ___________________

Reg. Adresse: Red Hat GmbH, Hauptstaetter Strasse 58, 70178 Stuttgart
Handelsregister: Amtsgericht Stuttgart HRB 153243
Geschaeftsfuehrer: Brendan Lane, Charlie Peters, Michael Cunningham,
Werner Knoblich
__________________________________________________ ___________________
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 02-04-2008, 10:22 PM
Jan Wildeboer
 
Default "invalid kernel" -- found the problem!

On Mon, 2008-02-04 at 18:05 -0500, Michael DeHaan wrote:
> >
> > I did netstat -alp | grep 25 and noticed something odd. Netstat claimed
> > that port 25152 was owned by dhcpd.
> >
>
> Not possible

And what is this?

[root@vinf02 ~]# netstat -alp | grep 25
tcp 0 0 localhost.localdomain:25152 *:*
LISTEN 28404/python
tcp 0 0 *:25151 *:*
LISTEN 28405/python
tcp 0 0 localhost.localdomain:25152
localhost.localdomain:33122 TIME_WAIT -
tcp 0 0 localhost.localdomain:33120
localhost.localdomain:25152 TIME_WAIT -
tcp 0 0 localhost.localdomain:25152
localhost.localdomain:33126 TIME_WAIT -
tcp 0 0 localhost.localdomain:25152
localhost.localdomain:33124 TIME_WAIT -
tcp 0 0
vinf02.coe.muc.redhat.:http ::ffff:172.17.252.11:57593 TIME_WAIT
-
udp 0 0 *:25150 *:*
28402/python
unix 2 [ ] DGRAM 3825
1144/rpc.statd
[root@vinf02 ~]# service cobblerd restart
Stopping cobbler daemon: [ OK ]
Starting cobbler daemon: [ OK ]
[root@vinf02 ~]# netstat -alp | grep 25
tcp 0 0 localhost.localdomain:25152 *:*
LISTEN 29980/dhcpd
tcp 0 0 *:25151 *:*
LISTEN 30016/python
tcp 0 0 localhost.localdomain:25152
localhost.localdomain:33122 TIME_WAIT -
tcp 0 0 localhost.localdomain:33120
localhost.localdomain:25152 TIME_WAIT -
tcp 0 0 localhost.localdomain:25152
localhost.localdomain:33126 TIME_WAIT -
tcp 0 0 localhost.localdomain:25152
localhost.localdomain:33124 TIME_WAIT -
tcp 0 0
vinf02.coe.muc.redhat.:http ::ffff:172.17.252.11:57593 TIME_WAIT
-
udp 0 0 *:25150 *:*
30013/python
unix 2 [ ] DGRAM 3825
1144/rpc.statd

--
Jan H Wildeboer |
Solution Architect, RHCE | Office: +49 (0)89 205071-207
Red Hat GmbH | Mobile: +49 (0)174 33 23 249
Otto-Hahn-Str.20 | Fax: +49 (0)89 205071-111
D-85609 Dornach/Munich | eMail: jan.wildeboer@redhat.com
__________________________________________________ ___________________

GPG-Key-ID: 5DEBAFB0
GPG-Fingerprint: 6104 0F74 8513 F17E DFD5 E820 6F61 A078 5DEB AFB0
__________________________________________________ ___________________

Reg. Adresse: Red Hat GmbH, Hauptstaetter Strasse 58, 70178 Stuttgart
Handelsregister: Amtsgericht Stuttgart HRB 153243
Geschaeftsfuehrer: Brendan Lane, Charlie Peters, Michael Cunningham,
Werner Knoblich
__________________________________________________ ___________________
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 02-04-2008, 10:34 PM
Jan Wildeboer
 
Default "invalid kernel" -- found the problem!

Some more details.

I hammered cobbler sync, initiated by webui and console and could not
reproduce.

But a simple service cobbler restart did the trick. Now I have dhcpd
listening on 25152 and a b0rk3d xmlrpc for cobbler.

In the cobbler.log I see (not surprising):

2008-02-05 00:26:30,696 - cobbler.cobblerd - DEBUG - started
2008-02-05 00:26:30,865 - cobbler.cobblerd - INFO - XMLRPC running on
25151
2008-02-05 00:26:30,868 - cobbler.cobblerd - INFO - Exception occured:
socket.error
2008-02-05 00:26:30,869 - cobbler.cobblerd - INFO - Exception value:
(98, 'Address already in use')
2008-02-05 00:26:30,871 - cobbler.cobblerd - INFO - syslog running on
25150
2008-02-05 00:26:30,893 - cobbler.cobblerd - INFO - Exception Info:
File "/usr/bin/cobblerd", line 66, in ?
app.core(logger=logger)
File "/usr/lib/python2.4/site-packages/cobbler/cobblerd.py", line 44,
in core
do_xmlrpc_tasks(bootapi, settings, xmlrpc_port, xmlrpc_port2,
logger)
File "/usr/lib/python2.4/site-packages/cobbler/cobblerd.py", line 55,
in do_xmlrpc_tasks
do_xmlrpc_rw(bootapi, settings, xmlrpc_port2, logger)
File "/usr/lib/python2.4/site-packages/cobbler/cobblerd.py", line
114, in do_xmlrpc_rw
server = remote.CobblerReadWriteXMLRPCServer(('127.0.0.1', port))
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 805,
in __init__
SimpleXMLRPCServer.SimpleXMLRPCServer.__init__(sel f,args)
File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 473, in
__init__
SocketServer.TCPServer.__init__(self, addr, requestHandler)
File "/usr/lib/python2.4/SocketServer.py", line 330, in __init__
self.server_bind()
File "/usr/lib/python2.4/SocketServer.py", line 341, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind

service dhcpd restart cleans up that part:

[root@vinf02 ~]# service dhcpd restart
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
[root@vinf02 ~]# netstat -alp | grep 25
tcp 0 0 *:25151 *:*
LISTEN 30016/python
udp 0 0 *:25150 *:*
30013/python

But now still a missing 25152, so lets try with

[root@vinf02 ~]# service cobblerd stop
Stopping cobbler daemon: [ OK ]
[root@vinf02 ~]# service cobblerd start
Starting cobbler daemon: [ OK ]
[root@vinf02 ~]# netstat -alp | grep 25
tcp 0 0 localhost.localdomain:25152 *:*
LISTEN 30105/python
tcp 0 0 *:25151 *:*
LISTEN 30106/python
udp 0 0 *:25150 *:*
30103/python
unix 2 [ ] DGRAM 3825
1144/rpc.statd


All fine again.

Now for debugging that - not today, I am off to bed.

Jan

--
Jan H Wildeboer |
Solution Architect, RHCE | Office: +49 (0)89 205071-207
Red Hat GmbH | Mobile: +49 (0)174 33 23 249
Otto-Hahn-Str.20 | Fax: +49 (0)89 205071-111
D-85609 Dornach/Munich | eMail: jan.wildeboer@redhat.com
__________________________________________________ ___________________

GPG-Key-ID: 5DEBAFB0
GPG-Fingerprint: 6104 0F74 8513 F17E DFD5 E820 6F61 A078 5DEB AFB0
__________________________________________________ ___________________

Reg. Adresse: Red Hat GmbH, Hauptstaetter Strasse 58, 70178 Stuttgart
Handelsregister: Amtsgericht Stuttgart HRB 153243
Geschaeftsfuehrer: Brendan Lane, Charlie Peters, Michael Cunningham,
Werner Knoblich
__________________________________________________ ___________________
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 05:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org