Page MenuHomeVyOS Platform

DHCP client issue - interface has two dhclient processes when link is unpluged and then plug again
Closed, ResolvedPublicBUG

Description

version: 1.3
interface has two dhclient processes when link is unpluged and then plug again

before interface is unpluged

root      3407     1  0 11:08 ?        00:00:00 /sbin/dhclient -4 -nw -cf /var/lib/dhcp/dhclient_eth6.conf -pf /var/lib/dhcp/dhclient_eth6.pid -lf /var/lib/dhcp/dhclient_eth6.leases  eth6

after unpluging the interface and plug it again, get two dhclient processes:

root      3407     1  0 11:08 ?        00:00:00 /sbin/dhclient -4 -nw -cf /var/lib/dhcp/dhclient_eth6.conf -pf /var/lib/dhcp/dhclient_eth6.pid -lf /var/lib/dhcp/dhclient_eth6.leases eth6
root      3641     1  0 11:16 ?        00:00:00 /sbin/dhclient -q -nw -cf /var/lib/dhcp/dhclient_eth6.conf -pf /var/lib/dhcp/dhclient_eth6.pid -lf /var/lib/dhcp/dhclient_eth6.leases eth6

the reason is: use systemctl start dhclient, but when interface link is down/up, /etc/netplug/linkdown.d/dhclient or /etc/netplug/linkup.d/dhclient script call /sbin/dhclient directly. The scripts should systemctl I think

Details

Version
1.3 equuleus above
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

c-po triaged this task as High priority.
c-po edited projects, added VyOS 1.3 Equuleus (1.3.0-epa1); removed VyOS 1.3 Equuleus.
zsdc changed the task status from Open to Needs testing.Sep 28 2021, 10:08 AM

The issue solved in the https://github.com/vyos/vyos-1x/pull/1017
However, the question if netplug script is necessary at all is still opened.

syncer moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.3) board.