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 > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 09-10-2012, 02:48 PM
William Hubbs
 
Default rfc: netplugd and ifplugd support in OpenRc

All,

I have a regression in OpenRc wrt netplugd [1].

In researching this program, I have found that it and ifplugd, which is
the alternative, have been unmaintained for years. Also Debian has
declared netplugd to be obsolete in favor of ifplugd.

Does anyone have any thoughts about whether we should keep OpenRC
support for one or both of these?

Thanks,

William

[1] https://bugs.gentoo.org/show_bug.cgi?id=427088
 
Old 09-10-2012, 08:05 PM
David Leverton
 
Default rfc: netplugd and ifplugd support in OpenRc

On 10 September 2012 15:48, William Hubbs <williamh@gentoo.org> wrote:
> All,
>
> I have a regression in OpenRc wrt netplugd [1].
>
> In researching this program, I have found that it and ifplugd, which is
> the alternative, have been unmaintained for years. Also Debian has
> declared netplugd to be obsolete in favor of ifplugd.

The page referenced on the bug that says so appears to be talking
about a different package than the one we have in the tree - they have
different authors stated, and also, for the one we have the package is
called netplug, with the executable called netplugd, whereas for the
one declared obsolete the package itself is called netplugd.

> Does anyone have any thoughts about whether we should keep OpenRC
> support for one or both of these?

There are a few options for this functionality (that I'm aware of):
1) netplug: never used it so no particular comments.
2) ifplugd: what I'm using now. I can't remember if there's a
particularly good reason why I chose it, but I suspect it might have
been for the audio feedback it provides when it detects a connection
or disconnection. This probably isn't compelling enough by itself to
keep the package if we'd otherwise want to remove it, but it is quite
nice.
3) wpa_supplicant: supposed to be able to do this even for wired
interfaces, but I just did some experimenting and it seems broken - it
thinks the cable is plugged in even when it isn't.
4) dhcpcd: not sure when it was introduced, but current dhcpcd can
detect when the link goes up and down, and request/renew its lease
when it comes up. The only wrinkle that I can see here is that, if no
ifplugd/netplug/wpa_supplicant is configured, OpenRC waits for it to
receive a lease when starting the interface, rather than allowing it
to background itself.

So for dhcpcd, it might be enough to just make OpenRC aware that it
doesn't need to wait for a lease when starting the interface. Keeping
at least one of the other options working would still be required for
other DHCP clients if they don't have similar functionality, or
non-DHCP situations where it's necessary to do some sort of
reconfiguration when the network is (dis)connected (such as OpenRC's
arping module), assuming anyone cares about those of course.

>
> Thanks,
>
> William
>
> [1] https://bugs.gentoo.org/show_bug.cgi?id=427088
 
Old 09-10-2012, 08:26 PM
Olivier Crte
 
Default rfc: netplugd and ifplugd support in OpenRc

On Mon, 2012-09-10 at 09:48 -0500, William Hubbs wrote:
> In researching this program, I have found that it and ifplugd, which is
> the alternative, have been unmaintained for years. Also Debian has
> declared netplugd to be obsolete in favor of ifplugd.
>
> Does anyone have any thoughts about whether we should keep OpenRC
> support for one or both of these?

The ifplugd author recommends you use NetworkManager for dynamic
networking scenarios.

--
Olivier Crte
tester@gentoo.org
Gentoo Developer
 
Old 09-10-2012, 09:05 PM
William Hubbs
 
Default rfc: netplugd and ifplugd support in OpenRc

On Mon, Sep 10, 2012 at 04:26:10PM -0400, Olivier Crte wrote:
> On Mon, 2012-09-10 at 09:48 -0500, William Hubbs wrote:
> > In researching this program, I have found that it and ifplugd, which is
> > the alternative, have been unmaintained for years. Also Debian has
> > declared netplugd to be obsolete in favor of ifplugd.
> >
> > Does anyone have any thoughts about whether we should keep OpenRC
> > support for one or both of these?
>
> The ifplugd author recommends you use NetworkManager for dynamic
> networking scenarios.

NM seems bloated though unless you are using a desktop environment. It
wants to install 29 dependencies on my box.

Williiam
 
Old 09-10-2012, 09:47 PM
Christopher Head
 
Default rfc: netplugd and ifplugd support in OpenRc

On Mon, 10 Sep 2012 09:48:32 -0500
William Hubbs <williamh@gentoo.org> wrote:

> Does anyone have any thoughts about whether we should keep OpenRC
> support for one or both of these?

As a user… yes? I use a laptop, so I don’t much care which one is
maintained but I’d be quite annoyed if both went away (unless there’s
some other dæmon that does the same job that I’ve never heard of).

Side note… we’re talking about a pretty tiny program here. Is “upstream
unmaintained” actually really a big deal? I mean, if ifplugd has worked
without bugs for the last seven years then it doesn’t really matter
that it’s unmaintained, does it? All the bugs on ifplugd in BGO appear
to be mostly a pile of stuff related to the scripts around it,
plus #214842 which appears to have been the kernel’s fault and #171415
which was a minor QA issue.

Chris
 
Old 09-10-2012, 10:54 PM
William Hubbs
 
Default rfc: netplugd and ifplugd support in OpenRc

On Mon, Sep 10, 2012 at 02:47:48PM -0700, Christopher Head wrote:
> As a user… yes? I use a laptop, so I don’t much care which one is
> maintained but I’d be quite annoyed if both went away (unless there’s
> some other dæmon that does the same job that I’ve never heard of).

I am thinking that we will probably stop supporting netplugd if we stop
supporting one. ifplugd seems to have much more functionality.

William
 
Old 09-11-2012, 01:15 PM
Ian Stakenvicius
 
Default rfc: netplugd and ifplugd support in OpenRc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 10/09/12 04:05 PM, David Leverton wrote:
> 4) dhcpcd: not sure when it was introduced, but current dhcpcd can
> detect when the link goes up and down, and request/renew its lease
> when it comes up. The only wrinkle that I can see here is that, if
> no ifplugd/netplug/wpa_supplicant is configured, OpenRC waits for
> it to receive a lease when starting the interface, rather than
> allowing it to background itself.
>
> So for dhcpcd, it might be enough to just make OpenRC aware that
> it doesn't need to wait for a lease when starting the interface.

According to bug 253925 , this would only work for certain hardware
(ie, those that support the IFF_RUNNING method); ifplugd suppots three
methods (IFF_RUNNING, ethtool-style, mii-style), and netplug -seems-
to do it by connecting at the netlink level to the interface and just
listening for traffic (as far as I can tell). So for link detection,
both ifplugd and netplug would be better than attempting to just use
dhcpcd, imo (not to mention the non-dhcp-based configs)..

(plus, since this is all for oldnet only, i would expect dhcpcd would
be a bit of an issue to integrate so that it would be able to move
net.* from inactive to started state and then exclude it from being
run a second time to configure the now-up iface..)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iF4EAREIAAYFAlBPOVcACgkQ2ugaI38ACPBevgD+LN73S/g6aQ8D2sR4rrIjNkSd
3eP1KgcGoEFeU+yPFIcA/RyC/fShiEaLiATnxN0ybymqspMQQcSrLj4GxeMqnPfs
=jpCo
-----END PGP SIGNATURE-----
 
Old 09-11-2012, 06:01 PM
Luca Barbato
 
Default rfc: netplugd and ifplugd support in OpenRc

On 9/10/12 11:05 PM, William Hubbs wrote:

On Mon, Sep 10, 2012 at 04:26:10PM -0400, Olivier Crte wrote:

On Mon, 2012-09-10 at 09:48 -0500, William Hubbs wrote:

In researching this program, I have found that it and ifplugd, which is
the alternative, have been unmaintained for years. Also Debian has
declared netplugd to be obsolete in favor of ifplugd.

Does anyone have any thoughts about whether we should keep OpenRC
support for one or both of these?


The ifplugd author recommends you use NetworkManager for dynamic
networking scenarios.


NM seems bloated though unless you are using a desktop environment. It
wants to install 29 dependencies on my box.


NM and connman are quite a bit overkill indeed.

lu
 
Old 09-11-2012, 06:43 PM
Olivier Crte
 
Default rfc: netplugd and ifplugd support in OpenRc

On Tue, 2012-09-11 at 20:01 +0200, Luca Barbato wrote:
> On 9/10/12 11:05 PM, William Hubbs wrote:
> > On Mon, Sep 10, 2012 at 04:26:10PM -0400, Olivier Crte wrote:
> >> On Mon, 2012-09-10 at 09:48 -0500, William Hubbs wrote:
> >>> In researching this program, I have found that it and ifplugd, which is
> >>> the alternative, have been unmaintained for years. Also Debian has
> >>> declared netplugd to be obsolete in favor of ifplugd.
> >>>
> >>> Does anyone have any thoughts about whether we should keep OpenRC
> >>> support for one or both of these?
> >>
> >> The ifplugd author recommends you use NetworkManager for dynamic
> >> networking scenarios.
> >
> > NM seems bloated though unless you are using a desktop environment. It
> > wants to install 29 dependencies on my box.
>
> NM and connman are quite a bit overkill indeed.

If you're on a server, you probably want a static configuration anyway,
not something dynamic.

--
Olivier Crte
tester@gentoo.org
Gentoo Developer
 
Old 09-11-2012, 09:01 PM
William Hubbs
 
Default rfc: netplugd and ifplugd support in OpenRc

On Tue, Sep 11, 2012 at 02:43:08PM -0400, Olivier Crte wrote:
> On Tue, 2012-09-11 at 20:01 +0200, Luca Barbato wrote:
> > On 9/10/12 11:05 PM, William Hubbs wrote:
> > > On Mon, Sep 10, 2012 at 04:26:10PM -0400, Olivier Crte wrote:
> > >> On Mon, 2012-09-10 at 09:48 -0500, William Hubbs wrote:
> > >>> In researching this program, I have found that it and ifplugd, which is
> > >>> the alternative, have been unmaintained for years. Also Debian has
> > >>> declared netplugd to be obsolete in favor of ifplugd.
> > >>>
> > >>> Does anyone have any thoughts about whether we should keep OpenRC
> > >>> support for one or both of these?
> > >>
> > >> The ifplugd author recommends you use NetworkManager for dynamic
> > >> networking scenarios.
> > >
> > > NM seems bloated though unless you are using a desktop environment. It
> > > wants to install 29 dependencies on my box.
> >
> > NM and connman are quite a bit overkill indeed.
>
> If you're on a server, you probably want a static configuration anyway,
> not something dynamic.

I can agree that a server would probably want a static configuration,
but all work stations do not use gnome, kde, etc.

William
 

Thread Tools




All times are GMT. The time now is 07:43 AM.

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