I just started looking into this, due to seeing spurious RTNETLINK
messages during `ifdown lan0` on my setup.  Running

        ifdown --verbose lan0

yields:

ifdown: parsing file /etc/network/interfaces.d/000-lo
ifdown: parsing file /etc/network/interfaces.d/010-lan0
ifdown: configuring interface lan0=lan0 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolved
 ip route del default via 192.168.1.1  dev lan0 2>&1 1>/dev/null || true
ip addr del 192.168.1.124/255.255.255.0 broadcast 192.168.1.255           dev la
ip -4 addr flush dev lan0
ip link set dev lan0 down
run-parts --verbose /etc/network/if-post-down.d
ifdown: configuring interface lan0=lan0 (inet6)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolved
 ip -6 route del default via 2001:4d48:ad5d:de00::1  dev lan0
RTNETLINK answers: No such process
ip -6 addr del 2001:4d48:ad5d:de02::1/56  dev lan0
RTNETLINK answers: Cannot assign requested address
ip -6 addr flush dev lan0
ip link set dev lan0 down
run-parts --verbose /etc/network/if-post-down.d

  If I run the `ip ...` commands for the IPv4 part of this *without* the
`ip link set dev lan0 down` then the IPv6 `ip ...` commands complete
without any RTNETLINK messages.

  This is with ifupdown 0.8.41:

ii  ifupdown       0.8.41       amd64        high level tools to configure netwo

  At least now I know the cause and can just choose to ignore these
messages when they show up in logcheck output (which is every day,
because this is my "backup copy of backups" server which comes up/down
once a day).
  I would prefer this bug be fixed so that I still have visibity on "you
DO need to correct something" RTNETLINK messages without having these
ones repeatedly.  Either the logic needs to know it'll be performing
more configuration on the same interface, and thus don't set the link
down until the last of those... or if that's complicated, then maybe an
interface configuration option to remove all the actual configuration
but leave the link up ?

-- 
- Athanasius (he/him) = Athanasius(at)miggy.org / https://miggy.org/
                  GPG/PGP Key: https://miggy.org/gpg-key
           "And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME

Attachment: signature.asc
Description: PGP signature

Reply via email to