Ignore --all/lo* for ifupdown/nslcd scripts

It was detected the networking.service is marked as failing after reboot.
It happens because "ifup -a" is executed by the service, it starts to run the scripts for each interface in /etc/network/interfaces.d/ and finally executes with the argument "$IFACE = all". But several scripts in ifupdown-extra are not prepared to handle "-all" and finish with an error.

In the case of nss-pam-ldapd (that contains the nslcd package) the script /etc/network/if-up.d/nslcd is failing when there are loopback interfaces with labels (lo:X) as the script only tests the interface "lo" to exit with 0 when it should also exit for "lo:X"

Test Plan (Debian only):
PASS  Check systemctl status networking.service after unlock


Partial-Bug: #1983503

Signed-off-by: Fabiano Mercer <fabiano.correamercer@windriver.com>

Depends-On: https://review.opendev.org/c/starlingx/integ/+/852049
Change-Id: I67a3a3113d13f811613c647d3176050417f5a909
This commit is contained in:
Fabiano Mercer 2022-08-05 13:01:08 -03:00 committed by Fabiano Correa Mercer
parent 0d1d4876df
commit 46647df7db
2 changed files with 5 additions and 3 deletions

View File

@ -401,7 +401,6 @@ libnsl-dev 1.3.0-2
libnspr4 2:4.29-1
libnss3 2:3.61-1+deb11u2
libnss-cache 0.18-1
libnss-ldapd 0.9.11-1
libnss-mdns 0.14.1-2
libnss-sss 2.4.1-2
libnuma1 2.0.12-1+b1
@ -414,7 +413,6 @@ libopeniscsiusr 2.1.3-5
libopts25 1:5.18.16-4
libp11-kit0 0.23.22-1
libpam0g 1.4.0-9+deb11u1
libpam-ldapd 0.9.11-1
libpam-modules 1.4.0-9+deb11u1
libpam-modules-bin 1.4.0-9+deb11u1
libpam-pwquality 1.4.4-1
@ -590,7 +588,6 @@ nfs-common 1:1.3.4-6
nfs-kernel-server 1:1.3.4-6
nftables 0.9.8-3.1
nscd 2.31-13+deb11u3
nslcd 0.9.11-1
ntp 1:4.2.8p15+dfsg-1
ntpdate 1:4.2.8p15+dfsg-1
nvme-cli 1.12-5

View File

@ -598,6 +598,11 @@ nfv-plugins
nfv-tools
nfv-vim
#nss-pam-ldapd
libnss-ldapd
nslcd
libpam-ldapd
#nova-api-proxy
nova-api-proxy