Ticket #7 (new defect)
Opened 3 years ago
Last modified 3 years ago
openrc should log per-service output
Reported by: | Gabriel Devenyi <ace@staticwave.ca> | Owned by: | roy |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | rc | Version: | |
Keywords: | Cc: |
Description
I have arping configured as the eth0 fallback, but openrc doesn't seem to be calling the fallback after the dhcp attempt fails.
Change History
comment:1 Changed 3 years ago by Gabriel Devenyi <ace@staticwave.ca>
- Summary changed from openrc does call fallback_eth0 function after dhcp fails to openrc does not call fallback_eth0 function after dhcp fails
comment:32 Changed 3 years ago by roy
If you're using dhcpcd-3.1 (dhcpcd is the default DHCP client if installed) then it's using IPv4LL (aka Zerconf, aka APIPA) by default which means it always works. To disable this, you should give dhcpcd the -L argument, like so.
dhcpcd_eth0="-L"
comment:33 Changed 3 years ago by Gabriel Devenyi <ace@staticwave.ca>
I have "-zeroconf" in the USEFLAGS for dhcpcd, so I don't think its even there. Barring that, adding dhcpcd_eth0="-L" does not result in arping being called
Log lines:
Jan 23 13:57:33 cosine b44: eth0: Link is up at 100 Mbps, full duplex.
Jan 23 13:57:33 cosine b44: eth0: Flow control is off for TX and off for RX.
Jan 23 13:57:34 cosine ifplugd(eth0)[10206]: Link beat detected.
Jan 23 13:57:35 cosine ifplugd(eth0)[10206]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
Jan 23 13:57:36 cosine dhcpcd[10246]: eth0: dhcpcd 3.1.9 starting
Jan 23 13:57:36 cosine dhcpcd[10246]: eth0: hardware address = 00:15:c5:67:29:48
Jan 23 13:57:36 cosine dhcpcd[10246]: eth0: DUID = 00:01:00:01:0e:43:75:5e:00:18:de:0e:3b:49
Jan 23 13:57:36 cosine dhcpcd[10246]: eth0: broadcasting for a lease
Jan 23 13:57:56 cosine dhcpcd[10246]: eth0: timed out
Jan 23 13:57:56 cosine ifplugd(eth0)[10206]: client: Error, eth0: timed out
Jan 23 13:57:56 cosine dhcpcd[10246]: eth0: exiting
Config
## wired
config_eth0="dhcp"
dhcp_eth0="nontp"
dhcpcd_eth0="-L"
fallback_eth0="arping"
gateways_eth0="130.113.54.5130.113.54.64"
config_130113054005="130.113.54.64 netmask 255.255.0.0"
routes_130113054005="default via 130.113.54.5"
dns_servers_130113054005="130.113.128.1 130.113.64.1"
dns_domain_130113054005="eng.mcmaster.ca"
comment:34 Changed 3 years ago by roy
Well, fallback seems to work fine here. Could you try running it in the foreground? Add modules="!plug" to stop ifplugd from working to test.
comment:35 Changed 3 years ago by Gabriel Devenyi <ace@staticwave.ca>
So the error seems to be that arping is bailing out, but openrc is not informing me in any way in the logs, which may be something useful to add.
cosine ace # arping2 -S 130.113.54.64 -r -c 1 -i eth0 130.113.54.5
arping: libnet_init(): unknown physical layer type 0x321
This will likely need to be investigated elsewhere, as its arping's fault.
comment:38 Changed 3 years ago by roy
- Summary changed from openrc does not call fallback_eth0 function after dhcp fails to openrc should log per-service output
Logging output per service is a worthy feature, but will take some time to implement.