<div dir="ltr">Control: tags -1 moreinfo<br><div class="gmail_quote"><div dir="ltr">On Fri, May 18, 2018 at 8:57 AM Benjamin Drung <<a href="mailto:benjamin.drung@profitbricks.com">benjamin.drung@profitbricks.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: systemd<br>
Version: 232-25+deb9u3<br>
Severity: normal<br>
<br>
Hi,<br>
<br>
rdma-load-modules@infiniband.service (from rdma-core) loads the ib_ipoib<br>
(IP over InfiniBand) kernel module. Once this module is loaded, ifup can<br>
bring up network devices on InfiniBand. systemd is configured to runs<br>
networking.service after network-pre.target which comes after<br>
rdma-load-modules@infiniband.service:<br>
<br>
```<br>
$ systemctl cat networking.service<br>
# /lib/systemd/system/networking.service<br>
[Unit]<br>
Description=Raise network interfaces<br>
Documentation=man:interfaces(5)<br>
DefaultDependencies=no<br>
Wants=network.target<br>
After=local-fs.target network-pre.target apparmor.service<br>
systemd-sysctl.service systemd-modules-load.service<br>
Before=network.target shutdown.target network-online.target<br>
Conflicts=shutdown.target<br>
<br>
[Install]<br>
WantedBy=multi-user.target<br>
WantedBy=network-online.target<br>
<br>
[Service]<br>
Type=oneshot<br>
EnvironmentFile=-/etc/default/networking<br>
ExecStartPre=-/bin/sh -c '[ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle'<br>
ExecStart=/sbin/ifup -a --read-environment<br>
ExecStop=/sbin/ifdown -a --read-environment --exclude=lo<br>
RemainAfterExit=true<br>
TimeoutStartSec=5min<br>
<br>
$ systemctl cat rdma-load-modules@infiniband.service<br>
# /lib/systemd/system/rdma-load-modules@.service<br>
[Unit]<br>
Description=Load RDMA modules from /etc/rdma/modules/%I.conf<br>
Documentation=file:/usr/share/doc/rdma-core/udev.md<br>
# Kernel module loading must take place before sysinit.target, similar<br>
# to<br>
# systemd-modules-load.service<br>
DefaultDependencies=no<br>
Before=sysinit.target<br>
# Do not execute concurrently with an ongoing shutdown<br>
Conflicts=shutdown.target<br>
Before=shutdown.target<br>
# Partially support distro network setup scripts that run after<br>
# systemd-modules-load.service but before sysinit.target, eg a classic<br>
# network<br>
# setup script. Run them after modules have loaded.<br>
Wants=network-pre.target<br>
Before=network-pre.target<br>
# Orders all kernel module startup before rdma-hw.target can become<br>
# ready<br>
Before=rdma-hw.target<br>
<br>
ConditionCapability=CAP_SYS_MODULE<br>
<br>
[Service]<br>
Type=oneshot<br>
RemainAfterExit=yes<br>
ExecStart=/lib/systemd/systemd-modules-load /etc/rdma/modules/%I.conf<br>
TimeoutSec=90s<br>
```<br></blockquote><div><br></div><div>How is this service pulled into the boot transaction? Ordering dependencies only take effect if all involved units are started at the same time. This means the ordering relationship is ignored if networking.service is already activating by the timeĀ <span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">rdma-load-modules@infiniband.s</span><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">ervice pulled into the boot transaction.</span></div></div><div><br></div><div>Seems like a misconfiguration issue to me.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br>Saludos,<br>Felipe Sateler</div></div>