pid file cannot be generated without dhclient prefix

Lida Li lilida at lilida.org
Fri Feb 9 17:05:59 UTC 2018


Hi,

After recent upgrade (4.2.4->4.3.3), I found out the -pf didn't work if the
pid file has no prefix of dhclient. I wonder if it is a design change or
sth. else. I spent some time studying the source code but couldn't find any
check on it.


Ex:
With dhclient prefix:
[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# dhclient -q -lf
/var/lib/dhclient/dhclient4-ns-12:31:ec:27:b1:d6.leases -pf
/var/run/dhclient4-123.pid eth0
[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# ls /var/run/dh*
dhclient4-123.pid

Without dhclient prefix
[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# dhclient -v -lf
/var/lib/dhcp/dhclientabc.leases -pf /var/run/4-123.pid eth0
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/dev5/12:02:ce:9f:a3:fc
Sending on LPF/dev5/12:02:ce:9f:a3:fc
Sending on Socket/fallback
DHCPDISCOVER on dev5 to 255.255.255.255 port 67 interval 3 (xid=0xcbd9b84e)
DHCPREQUEST of 10.3.229.97 on dev5 to 255.255.255.255 port 67
(xid=0x4eb8d9cb)
DHCPOFFER of 10.3.229.97 from 10.3.192.1
DHCPACK of 10.3.229.97 from 10.3.192.1
bound to 10.3.229.97 -- renewal in 1481 seconds.

[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# ls
/var/run/4-123.pid
ls: cannot access '/var/run/4-123.pid': No such file or directory

System information:
4.13.0-31-generic #34
<https://github.com/aws/amazon-ecs-cni-plugins/issues/34>~16.04.1-Ubuntu
SMP Fri Jan 19 17:11:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

However, this does happen on my old host:
4.14.13-01 #1 <https://github.com/aws/amazon-ecs-cni-plugins/pull/1> SMP
14.04.5-Ubuntu Wed Jan 10 21:53:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Any ideas?


Thanks

Lida
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20180209/4a004d76/attachment.html>


More information about the dhcp-users mailing list