public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* netconsole regression w/ 8d8fc29d
@ 2011-06-15  7:58 Rik van Riel
  2011-06-15  8:10 ` Cong Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Rik van Riel @ 2011-06-15  7:58 UTC (permalink / raw)
  To: Cong Wang; +Cc: Linux kernel Mailing List, Neil Horman, David S. Miller

After commit 8d8fc29d02a33e4bd5f4fa47823c1fd386346093
(netpoll: disable netpoll when enslave a device), it is
no longer possible to use netconsole together with bridged
KVM guests.

I can see why the change looked reasonable from a networking
point of view, but this has completely disabled netconsole
functionality for a common KVM use case.

After the change, netconsole refuses to bind to eth0.

Since the bridge interface does not support polling,
netconsole cannot use that, either.

I am now reduced to taking digital photos of the last screen
of a kernel oops, instead of getting oopses streamed to my
logging server.

To me the "unpredictable results" were way preferable to
what we have now.

Is there a way forward to restore netconsole functionality
for people who use KVM with bridging, or is it best to just
revert this commit?

commit 8d8fc29d02a33e4bd5f4fa47823c1fd386346093
Author: Amerigo Wang <amwang@redhat.com>
Date:   Thu May 19 21:39:10 2011 +0000

     netpoll: disable netpoll when enslave a device

     V3: rename NETDEV_ENSLAVE to NETDEV_JOIN

     Currently we do nothing when we enslave a net device which is 
running netcon
     Neil pointed out that we may get weird results in such case, so 
let's disabl
     netpoll on the device being enslaved. I think it is too harsh to 
prevent
     the device being ensalved if it is running netconsole.

     By the way, this patch also removes the NETDEV_GOING_DOWN from 
netconsole
     netdev notifier, because netpoll will check if the device is 
running or not
     and we don't handle NETDEV_PRE_UP neither.

     This patch is based on net-next-2.6.

     Signed-off-by: WANG Cong <amwang@redhat.com>
     Cc: Neil Horman <nhorman@redhat.com>
     Signed-off-by: David S. Miller <davem@davemloft.net>


-- 
All rights reversed

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: netconsole regression w/ 8d8fc29d
  2011-06-15  7:58 netconsole regression w/ 8d8fc29d Rik van Riel
@ 2011-06-15  8:10 ` Cong Wang
  2011-06-15 14:05   ` Rik van Riel
  0 siblings, 1 reply; 4+ messages in thread
From: Cong Wang @ 2011-06-15  8:10 UTC (permalink / raw)
  To: Rik van Riel; +Cc: Linux kernel Mailing List, Neil Horman, David S. Miller

于 2011年06月15日 15:58, Rik van Riel 写道:
> After commit 8d8fc29d02a33e4bd5f4fa47823c1fd386346093
> (netpoll: disable netpoll when enslave a device), it is
> no longer possible to use netconsole together with bridged
> KVM guests.
>
> I can see why the change looked reasonable from a networking
> point of view, but this has completely disabled netconsole
> functionality for a common KVM use case.
>
> After the change, netconsole refuses to bind to eth0.
>
> Since the bridge interface does not support polling,
> netconsole cannot use that, either.


Bridge does support polling now. :) You can just setup
netconsole on a bridge device.

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: netconsole regression w/ 8d8fc29d
  2011-06-15  8:10 ` Cong Wang
@ 2011-06-15 14:05   ` Rik van Riel
  2011-06-15 14:16     ` Neil Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Rik van Riel @ 2011-06-15 14:05 UTC (permalink / raw)
  To: Cong Wang; +Cc: Linux kernel Mailing List, Neil Horman, David S. Miller

On 06/15/2011 04:10 AM, Cong Wang wrote:
> 于 2011年06月15日 15:58, Rik van Riel 写道:
>> After commit 8d8fc29d02a33e4bd5f4fa47823c1fd386346093
>> (netpoll: disable netpoll when enslave a device), it is
>> no longer possible to use netconsole together with bridged
>> KVM guests.
>>
>> I can see why the change looked reasonable from a networking
>> point of view, but this has completely disabled netconsole
>> functionality for a common KVM use case.
>>
>> After the change, netconsole refuses to bind to eth0.
>>
>> Since the bridge interface does not support polling,
>> netconsole cannot use that, either.
>
>
> Bridge does support polling now. :) You can just setup
> netconsole on a bridge device.

This turns out to be mutually exclusive with attaching
virtual interfaces (for KVM guests) to a bridge.

If I start netconsole first, my KVM guests won't start.

If I start the KVM guests first, netconsole won't start,
and fails with these errors:

netconsole:: inserting netconsole module with arguments 
netconsole=6666@74.92.59.68/br0,514@74.92.59.66/00:13:72:17:4A:9C
kernel: [ 1020.927240] netconsole: local port 6666
kernel: [ 1020.927243] netconsole: local IP 74.92.59.68
kernel: [ 1020.927245] netconsole: interface 'br0'
kernel: [ 1020.927246] netconsole: remote port 514
kernel: [ 1020.927247] netconsole: remote IP 74.92.59.66
kernel: [ 1020.927252] netconsole: remote ethernet address 00:13:72:17:4a:9c
kernel: [ 1020.927256] (null):  doesn't support polling, aborting.
kernel: [ 1020.927258] netconsole: cleaning up
systemd[1]: netconsole.service: control process exited, code=exited status=1
systemd[1]: Unit netconsole.service entered failed state.

In short, I am still not able to use netconsole and bridged
KVM guests at the same time...

# brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.0024e838995c	no		eth0
							vnet0
							vnet1
							vnet2


-- 
All rights reversed

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: netconsole regression w/ 8d8fc29d
  2011-06-15 14:05   ` Rik van Riel
@ 2011-06-15 14:16     ` Neil Horman
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Horman @ 2011-06-15 14:16 UTC (permalink / raw)
  To: Rik van Riel; +Cc: Cong Wang, Linux kernel Mailing List, David S. Miller

On Wed, Jun 15, 2011 at 10:05:54AM -0400, Rik van Riel wrote:
> On 06/15/2011 04:10 AM, Cong Wang wrote:
> >于 2011年06月15日 15:58, Rik van Riel 写道:
> >>After commit 8d8fc29d02a33e4bd5f4fa47823c1fd386346093
> >>(netpoll: disable netpoll when enslave a device), it is
> >>no longer possible to use netconsole together with bridged
> >>KVM guests.
> >>
> >>I can see why the change looked reasonable from a networking
> >>point of view, but this has completely disabled netconsole
> >>functionality for a common KVM use case.
> >>
> >>After the change, netconsole refuses to bind to eth0.
> >>
> >>Since the bridge interface does not support polling,
> >>netconsole cannot use that, either.
> >
> >
> >Bridge does support polling now. :) You can just setup
> >netconsole on a bridge device.
> 
> This turns out to be mutually exclusive with attaching
> virtual interfaces (for KVM guests) to a bridge.
> 
> If I start netconsole first, my KVM guests won't start.
> 
> If I start the KVM guests first, netconsole won't start,
> and fails with these errors:
> 
> netconsole:: inserting netconsole module with arguments
> netconsole=6666@74.92.59.68/br0,514@74.92.59.66/00:13:72:17:4A:9C
> kernel: [ 1020.927240] netconsole: local port 6666
> kernel: [ 1020.927243] netconsole: local IP 74.92.59.68
> kernel: [ 1020.927245] netconsole: interface 'br0'
> kernel: [ 1020.927246] netconsole: remote port 514
> kernel: [ 1020.927247] netconsole: remote IP 74.92.59.66
> kernel: [ 1020.927252] netconsole: remote ethernet address 00:13:72:17:4a:9c
> kernel: [ 1020.927256] (null):  doesn't support polling, aborting.
> kernel: [ 1020.927258] netconsole: cleaning up
> systemd[1]: netconsole.service: control process exited, code=exited status=1
> systemd[1]: Unit netconsole.service entered failed state.
> 
> In short, I am still not able to use netconsole and bridged
> KVM guests at the same time...
> 
> # brctl show
> bridge name	bridge id		STP enabled	interfaces
> br0		8000.0024e838995c	no		eth0
> 							vnet0
> 							vnet1
> 							vnet2
> 
> 
> -- 
> All rights reversed

Looks like we need to teach the tun-tap driver to support netpoll that shouldn't
be too hard.  I'll send up a patch shortly
Neil


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-15 14:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15  7:58 netconsole regression w/ 8d8fc29d Rik van Riel
2011-06-15  8:10 ` Cong Wang
2011-06-15 14:05   ` Rik van Riel
2011-06-15 14:16     ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox