public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
@ 2012-09-10 14:48 William Hubbs
  2012-09-10 20:05 ` David Leverton
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: William Hubbs @ 2012-09-10 14:48 UTC (permalink / raw
  To: gentoo development

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-10 14:48 [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc William Hubbs
@ 2012-09-10 20:05 ` David Leverton
  2012-09-11 13:15   ` Ian Stakenvicius
  2012-09-10 20:26 ` Olivier Crête
  2012-09-10 21:47 ` Christopher Head
  2 siblings, 1 reply; 13+ messages in thread
From: David Leverton @ 2012-09-10 20:05 UTC (permalink / raw
  To: gentoo-dev

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


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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-10 14:48 [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc William Hubbs
  2012-09-10 20:05 ` David Leverton
@ 2012-09-10 20:26 ` Olivier Crête
  2012-09-10 21:05   ` William Hubbs
  2012-09-10 21:47 ` Christopher Head
  2 siblings, 1 reply; 13+ messages in thread
From: Olivier Crête @ 2012-09-10 20:26 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

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 Crête
tester@gentoo.org
Gentoo Developer

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-10 20:26 ` Olivier Crête
@ 2012-09-10 21:05   ` William Hubbs
  2012-09-11 18:01     ` Luca Barbato
  0 siblings, 1 reply; 13+ messages in thread
From: William Hubbs @ 2012-09-10 21:05 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

On Mon, Sep 10, 2012 at 04:26:10PM -0400, Olivier Crête 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


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-10 14:48 [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc William Hubbs
  2012-09-10 20:05 ` David Leverton
  2012-09-10 20:26 ` Olivier Crête
@ 2012-09-10 21:47 ` Christopher Head
  2012-09-10 22:54   ` William Hubbs
  2 siblings, 1 reply; 13+ messages in thread
From: Christopher Head @ 2012-09-10 21:47 UTC (permalink / raw
  To: gentoo-dev

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


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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-10 21:47 ` Christopher Head
@ 2012-09-10 22:54   ` William Hubbs
  0 siblings, 0 replies; 13+ messages in thread
From: William Hubbs @ 2012-09-10 22:54 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 442 bytes --]

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


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-10 20:05 ` David Leverton
@ 2012-09-11 13:15   ` Ian Stakenvicius
  0 siblings, 0 replies; 13+ messages in thread
From: Ian Stakenvicius @ 2012-09-11 13:15 UTC (permalink / raw
  To: gentoo-dev

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


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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-10 21:05   ` William Hubbs
@ 2012-09-11 18:01     ` Luca Barbato
  2012-09-11 18:43       ` Olivier Crête
  0 siblings, 1 reply; 13+ messages in thread
From: Luca Barbato @ 2012-09-11 18:01 UTC (permalink / raw
  To: gentoo-dev

On 9/10/12 11:05 PM, William Hubbs wrote:
> On Mon, Sep 10, 2012 at 04:26:10PM -0400, Olivier Crête 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



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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-11 18:01     ` Luca Barbato
@ 2012-09-11 18:43       ` Olivier Crête
  2012-09-11 21:01         ` William Hubbs
  0 siblings, 1 reply; 13+ messages in thread
From: Olivier Crête @ 2012-09-11 18:43 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

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 Crête 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 Crête
tester@gentoo.org
Gentoo Developer

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-11 18:43       ` Olivier Crête
@ 2012-09-11 21:01         ` William Hubbs
  2012-09-11 22:23           ` Rich Freeman
  0 siblings, 1 reply; 13+ messages in thread
From: William Hubbs @ 2012-09-11 21:01 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

On Tue, Sep 11, 2012 at 02:43:08PM -0400, Olivier Crête 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 Crête 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


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-11 21:01         ` William Hubbs
@ 2012-09-11 22:23           ` Rich Freeman
  2012-09-12 12:44             ` Ian Stakenvicius
  0 siblings, 1 reply; 13+ messages in thread
From: Rich Freeman @ 2012-09-11 22:23 UTC (permalink / raw
  To: gentoo-dev

On Tue, Sep 11, 2012 at 5:01 PM, William Hubbs <williamh@gentoo.org> wrote:
>
> I can agree that a server would probably want a static configuration,
> but all work stations do not use gnome, kde, etc.
>

Most do not run unix, but at work I can't think of any servers that
are using static configurations.  They might be assigned static IPs,
but they'll use DHCP just the same.

I deploy my network at home in the same way - most of my standing PCs
have DNS and static IP assignments, but they still use DHCP.  This way
I can still utilize PXE for backups/etc, and adjust things at any time
fairly easily.

Rich


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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-11 22:23           ` Rich Freeman
@ 2012-09-12 12:44             ` Ian Stakenvicius
  2012-09-12 17:45               ` Pacho Ramos
  0 siblings, 1 reply; 13+ messages in thread
From: Ian Stakenvicius @ 2012-09-12 12:44 UTC (permalink / raw
  To: gentoo-dev

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

On 11/09/12 06:23 PM, Rich Freeman wrote:
> On Tue, Sep 11, 2012 at 5:01 PM, William Hubbs
> <williamh@gentoo.org> wrote:
>> 
>> I can agree that a server would probably want a static
>> configuration, but all work stations do not use gnome, kde, etc.
>> 
> 
> Most do not run unix, but at work I can't think of any servers
> that are using static configurations.  They might be assigned
> static IPs, but they'll use DHCP just the same.
> 
> I deploy my network at home in the same way - most of my standing
> PCs have DNS and static IP assignments, but they still use DHCP.
> This way I can still utilize PXE for backups/etc, and adjust things
> at any time fairly easily.
> 
> Rich
> 

Some of my servers have a back-end nic that has static config defined,
and i use netplug or ifplugd for that to bring the iface up and down
based on link -- link detection != auto-configuration, imo.

Suffice to say, networkmanager is not a reasonable means to determine
link state for oldnet.  Newnet, well, all of that gets handled outside
of openrc's config anyhow so...

But this is getting a little beyond the original point of the thread.. :)


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

iF4EAREIAAYFAlBQg74ACgkQ2ugaI38ACPAL5gEArhYn4Zzas8k6ijddwP9F4q+F
95hFTjw9h0lp0nIrrDIA/R6twsmCnPt1T7yYN6jr0ZcjBonZgI+pk3TZS9qnLa/U
=dJUq
-----END PGP SIGNATURE-----


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

* Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
  2012-09-12 12:44             ` Ian Stakenvicius
@ 2012-09-12 17:45               ` Pacho Ramos
  0 siblings, 0 replies; 13+ messages in thread
From: Pacho Ramos @ 2012-09-12 17:45 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1856 bytes --]

El mié, 12-09-2012 a las 08:44 -0400, Ian Stakenvicius escribió:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On 11/09/12 06:23 PM, Rich Freeman wrote:
> > On Tue, Sep 11, 2012 at 5:01 PM, William Hubbs
> > <williamh@gentoo.org> wrote:
> >> 
> >> I can agree that a server would probably want a static
> >> configuration, but all work stations do not use gnome, kde, etc.
> >> 
> > 
> > Most do not run unix, but at work I can't think of any servers
> > that are using static configurations.  They might be assigned
> > static IPs, but they'll use DHCP just the same.
> > 
> > I deploy my network at home in the same way - most of my standing
> > PCs have DNS and static IP assignments, but they still use DHCP.
> > This way I can still utilize PXE for backups/etc, and adjust things
> > at any time fairly easily.
> > 
> > Rich
> > 
> 
> Some of my servers have a back-end nic that has static config defined,
> and i use netplug or ifplugd for that to bring the iface up and down
> based on link -- link detection != auto-configuration, imo.
> 
> Suffice to say, networkmanager is not a reasonable means to determine
> link state for oldnet.  Newnet, well, all of that gets handled outside
> of openrc's config anyhow so...
> 
> But this is getting a little beyond the original point of the thread.. :)
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
> 
> iF4EAREIAAYFAlBQg74ACgkQ2ugaI38ACPAL5gEArhYn4Zzas8k6ijddwP9F4q+F
> 95hFTjw9h0lp0nIrrDIA/R6twsmCnPt1T7yYN6jr0ZcjBonZgI+pk3TZS9qnLa/U
> =dJUq
> -----END PGP SIGNATURE-----
> 
> 

Also my father has two machines in his job with static config and
ifplugd to detect link up/down. I also remember to migrate years ago
from netplugd to ifplugd for some reason I can't remember now, probably
ifplugd worked better :/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2012-09-12 17:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 14:48 [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc William Hubbs
2012-09-10 20:05 ` David Leverton
2012-09-11 13:15   ` Ian Stakenvicius
2012-09-10 20:26 ` Olivier Crête
2012-09-10 21:05   ` William Hubbs
2012-09-11 18:01     ` Luca Barbato
2012-09-11 18:43       ` Olivier Crête
2012-09-11 21:01         ` William Hubbs
2012-09-11 22:23           ` Rich Freeman
2012-09-12 12:44             ` Ian Stakenvicius
2012-09-12 17:45               ` Pacho Ramos
2012-09-10 21:47 ` Christopher Head
2012-09-10 22:54   ` William Hubbs

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