On Wed, May 23, 2018 at 10:43:40AM +0200, Benjamin Drung wrote:

> Using allow-hotplug for InfiniBand devices does not work. The devices are 
> never
> brought up.
> 
> Example /etc/network/interfaces:
> ```
> allow-hotplug ib0.dddd
> iface ib0.dddd inet6 static
>     address fd44:1:5255::
>     netmask 64
>     pre-up echo connected > /sys/class/net/$IFACE/mode
>     dad-attempts 600
> ```

I should've seen this earlier, but the problem is the fact that you have
configured a VLAN interface, but udev only sees the plain interface
name:

> ```
> $ udevadm monitor
> [...]
> KERNEL[78666.922735] add      
> /devices/pci0000:00/0000:00:02.0/0000:03:00.0/net/ib0 (net)
> UDEV  [78666.941473] add      
> /devices/pci0000:00/0000:00:02.0/0000:03:00.0/net/ib0 (net)
> ```

So this effectively calls `ifup --allow=hotplug ib0`, but there is no
ib0 stanza, only an ib0.dddd stanza.

So, in principle you'd want to create an iface stanza for ib0 that does
nothing but bring up its VLAN interfaces. Unfortunately, the following
currently does not work:

iface ib0 inet manual
        up ifup ib0.dddd

Because it detects recursion. I could probably loosen that
restriction.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to