Re: 15.04 and systemd

2014-12-13 Thread Tom H
On Sun, Dec 7, 2014 at 2:11 AM, Martin Pitt  wrote:
> Tom H [2014-12-05  8:03 -0500]:
>>>
>>> | $ grep ifup /lib/udev/rules.d/99-systemd.rules
>>> | SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", 
>>> ENV{SYSTEMD_ALIAS}+="/sys/subsystem/net/devices/$name", 
>>> ENV{SYSTEMD_WANTS}+="ifup@$name.service"
>>
>> I noticed this after sending my original email. I'm now using NM (I
>> had to log on to a WEP network!) and I'd meant to check whether
>> unmasking ifup@.service would result in the same errors because this
>> rule doesn't have "check whether something other than ifupdown is
>> bringing up the network" (if that's even possible in a udev rule).
>
> The rule doesn't have to. ifup will know by itself (through
> /etc/network/interfaces) if it's responsible for a particular
> interface; if not, this is a no-op.
>>>
>>> This will handle hotplugged interfaces which are covered by ifupdown,
>>> i. e. /etc/network/interfaces.
>>
>> Except that my "interfaces" file's empty.
>>
> Right, then the rule and ifup@.service are irrelevant for your system.
> This is also why the disabled /etc/init.d/networking init script did
> not cause acual damage on your system. systemd brings up lo on its
> own, so you don't need ifupdown for "lo" even.
>>
>> By hotplugged do you mean when using Debian's "allow-hotplug"?
>
> I meant "added the hardware while the computer/user session is
> running". "allow-hotplug" is Debian's ifupdown declaration for this
> (but not supported directly under Ubuntu).
>>
>> I hadn't seen the ifup udev rule when I wrote the above so I thought
>> that systemd was using the sysvinit networking script to trigger
>> ifup@.service.
>
> The sysvinit script is called at boot to bring up the non-hotplugged
> interfaces (lo, builtin ethernet or wifi cards), if they are tagged as
> "auto".




>> I'll set up a VM to try to reproduce this.
>>
>> Do you mean upgrade trusty-to-utopic or utopic-to-vivid?
>
> Well, finding out the upgrade path that causes /etc/init.d/networking
> to be disabled is exactly the exercise :-) It might just be "clean
> utopic install and upgrade to vivid", but it might be more complicated
> than that.

Many thanks for your answers. I'll only answer your last para because
we're misunderstanding one another and I don't want to add yet another
layer of misunderstanding!

I'd installed 15.04 from a daily/nighly ISO and disabled networking
manually. There was no automatic/hidden disabling.

I set up a utopic VM and upgraded it to vivid.

I didn't disable networking or mask ifup@ for either and I didn't get
the errors that I'd reported in my initial email. I've also unmasked
ifup@ on my laptop and I'm no longer getting these errors.

Since I was getting these errors at every boot with v216, I have to
assume that the problem's been fixed with the upgrade to v217.
Apologies for the noise.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: 15.04 and systemd

2014-12-07 Thread Martin Pitt
Hey Tom,

Tom H [2014-12-05  8:03 -0500]:
> > | $ grep ifup /lib/udev/rules.d/99-systemd.rules
> > | SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", 
> > ENV{SYSTEMD_ALIAS}+="/sys/subsystem/net/devices/$name", 
> > ENV{SYSTEMD_WANTS}+="ifup@$name.service"
> 
> I noticed this after sending my original email. I'm now using NM (I
> had to log on to a WEP network!) and I'd meant to check whether
> unmasking ifup@.service would result in the same errors because this
> rule doesn't have "check whether something other than ifupdown is
> bringing up the network" (if that's even possible in a udev rule).

The rule doesn't have to. ifup will know by itself (through
/etc/network/interfaces) if it's responsible for a particular
interface; if not, this is a no-op.

> > This will handle hotplugged interfaces which are covered by ifupdown,
> > i. e. /etc/network/interfaces.
> 
> Except that my "interfaces" file's empty.

Right, then the rule and ifup@.service are irrelevant for your system.
This is also why the disabled /etc/init.d/networking init script did
not cause acual damage on your system. systemd brings up lo on its
own, so you don't need ifupdown for "lo" even.

> By hotplugged do you mean when using Debian's "allow-hotplug"?

I meant "added the hardware while the computer/user session is
running". "allow-hotplug" is Debian's ifupdown declaration for this
(but not supported directly under Ubuntu).

> I hadn't seen the ifup udev rule when I wrote the above so I thought
> that systemd was using the sysvinit networking script to trigger
> ifup@.service.

The sysvinit script is called at boot to bring up the non-hotplugged
interfaces (lo, builtin ethernet or wifi cards), if they are tagged as
"auto".

> I'll set up a VM to try to reproduce this.
> 
> Do you mean upgrade trusty-to-utopic or utopic-to-vivid?

Well, finding out the upgrade path that causes /etc/init.d/networking
to be disabled is exactly the exercise :-) It might just be "clean
utopic install and upgrade to vivid", but it might be more complicated
than that.

Thanks!

Martin

-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: 15.04 and systemd

2014-12-05 Thread Tom H
On Fri, Dec 5, 2014 at 5:30 AM, Martin Pitt  wrote:


> sorry for the late answer!
>
> Tom H [2014-11-03 15:06 -0500]:
>> "Cannot add dependency job for unit systemd-vconsole-setup.service,
>> ignoring: Unit systemd-vconsole-setup.service failed to load: No such
>> file or directory." is in the output of journalctl until I remove
>> "systemd-vconsole-setup.service" from "Wants=" and "After=":
>
> This is tracked as https://launchpad.net/bugs/1392970, I'll look into
> it soon. (Should be mostly cosmetical)

Thanks. No worries. It's a harmless error anyway. I didn't think that
a bug would be filed pre-release; but someone's more thorough that I
am. I assume that once there's a systed native Ubuntu service, it'll
take over this dependency.

I'd looked a few weeks ago about creating console-setup.service but
got side-tracked by wor and personal matters. IIRC, one of the reasons
that I postponed creating one is that "/etc/init/console-setup.conf"
and "/etc/init.d/console-setup" use different executables.


>> I'm using systemd-networkd.service (and libvirt) and ifup@.service
>> isn't enabled:
>
> ifup@.service is for ifupdown, it's entirely unrelated to networkd.

I know. I should've been clearer.


> This is not supposed to be "enabled" (there's no [Install] section).
> It gets triggered through udev rules:
>
> | $ grep ifup /lib/udev/rules.d/99-systemd.rules
> | SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", 
> ENV{SYSTEMD_ALIAS}+="/sys/subsystem/net/devices/$name", 
> ENV{SYSTEMD_WANTS}+="ifup@$name.service"

I noticed this after sending my original email. I'm now using NM (I
had to log on to a WEP network!) and I'd meant to check whether
unmasking ifup@.service would result in the same errors because this
rule doesn't have "check whether something other than ifupdown is
bringing up the network" (if that's even possible in a udev rule). But
I forgot...


> This will handle hotplugged interfaces which are covered by ifupdown,
> i. e. /etc/network/interfaces.

Except that my "interfaces" file's empty.

By hotplugged do you mean when using Debian's "allow-hotplug"?


>> "/etc/init.d/networking" is disabled:
>>
>> # find /etc/rc?.d -name "*networking" | sort
>> /etc/rc0.d/K07networking
>> /etc/rc6.d/K07networking
>> /etc/rcS.d/K09networking
>
> You are the third person to report that after Didier Roche and
> Sebastien Bacher, so this isn't pilot error any more. Would you mind
> filing a bug about this (against ifupdown for now) and describe how
> you installed/upgraded your system? I'd like to be able to see a
> reproducer and see where things go wrong. Are you (or someone else)
> able to reproduce this somehow? Like, install trusty into a
> schroot/container/VM and dist-upgrade?

I hadn't seen the ifup udev rule when I wrote the above so I thought
that systemd was using the sysvinit networking script to trigger
ifup@.service.

I'll set up a VM to try to reproduce this.

Do you mean upgrade trusty-to-utopic or utopic-to-vivid?


>> 3) friendly-recovery.service
>>
>> https://bugs.launchpad.net/ubuntu/+source/friendly-recovery/+bug/1354937
>
> Fixed in vivid.

Many thanks.


>> 4) nfs-common, nfs-kernel-server, rpcbind
>>
>> NFS is broken with systemd as pid 1 because nfs-common only has upstart jobs.
>
> That's https://launchpad.net/bugs/1312976 and indeed you already
> posted your proposed patches there, thanks!

You're welcome.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: 15.04 and systemd

2014-12-05 Thread Martin Pitt
Hey Tom,

sorry for the late answer!

Tom H [2014-11-03 15:06 -0500]:
> "Cannot add dependency job for unit systemd-vconsole-setup.service,
> ignoring: Unit systemd-vconsole-setup.service failed to load: No such
> file or directory." is in the output of journalctl until I remove
> "systemd-vconsole-setup.service" from "Wants=" and "After=":

This is tracked as https://launchpad.net/bugs/1392970, I'll look into
it soon. (Should be mostly cosmetical)

> I'm using systemd-networkd.service (and libvirt) and ifup@.service
> isn't enabled:

ifup@.service is for ifupdown, it's entirely unrelated to networkd.

This is not supposed to be "enabled" (there's no [Install] section).
It gets triggered through udev rules:

| $ grep ifup /lib/udev/rules.d/99-systemd.rules
| SUBSYSTEM=="net", KERNEL!="lo", TAG+="systemd", 
ENV{SYSTEMD_ALIAS}+="/sys/subsystem/net/devices/$name", 
ENV{SYSTEMD_WANTS}+="ifup@$name.service"
| 
This will handle hotplugged interfaces which are covered by ifupdown,
i. e. /etc/network/interfaces.

> "/etc/init.d/networking" is disabled:
> 
> # find /etc/rc?.d -name "*networking" | sort
> /etc/rc0.d/K07networking
> /etc/rc6.d/K07networking
> /etc/rcS.d/K09networking

You are the third person to report that after Didier Roche and
Sebastien Bacher, so this isn't pilot error any more. Would you mind
filing a bug about this (against ifupdown for now) and describe how
you installed/upgraded your system?  I'd like to be able to see a
reproducer and see where things go wrong. Are you (or someone else)
able to reproduce this somehow? Like, install trusty into a
schroot/container/VM and dist-upgrade?

> 3) friendly-recovery.service
> 
> https://bugs.launchpad.net/ubuntu/+source/friendly-recovery/+bug/1354937

Fixed in vivid.

> 4) nfs-common, nfs-kernel-server, rpcbind
> 
> NFS is broken with systemd as pid 1 because nfs-common only has upstart jobs.

That's https://launchpad.net/bugs/1312976 and indeed you already
posted your proposed patches there, thanks!

Thanks!

Martin

-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


signature.asc
Description: Digital signature
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss