<div dir="ltr"><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">Hi,</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">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.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><br></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">Ex:<br style="box-sizing:border-box"><span style="box-sizing:border-box;font-weight:600">With dhclient prefix:</span><br style="box-sizing:border-box">[root@node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# dhclient -q -lf /var/lib/dhclient/dhclient4-ns-12:31:ec:27:b1:d6.leases -pf <span style="box-sizing:border-box;font-weight:600">/var/run/dhclient4-123.pid</span> eth0<br style="box-sizing:border-box">[root@node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# ls /var/run/dh*<br style="box-sizing:border-box">dhclient4-123.pid</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><span style="box-sizing:border-box;font-weight:600">Without dhclient prefix</span><br style="box-sizing:border-box">[root@node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# dhclient -v -lf /var/lib/dhcp/dhclientabc.leases -pf <span style="box-sizing:border-box;font-weight:600">/var/run/4-123.pid</span> eth0<br style="box-sizing:border-box">Internet Systems Consortium DHCP Client 4.3.3<br style="box-sizing:border-box">Copyright 2004-2015 Internet Systems Consortium.<br style="box-sizing:border-box">All rights reserved.<br style="box-sizing:border-box">For info, please visit <a href="https://www.isc.org/software/dhcp/" rel="nofollow" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration-line:none">https://www.isc.org/software/dhcp/</a><br style="box-sizing:border-box">Listening on LPF/dev5/12:02:ce:9f:a3:fc<br style="box-sizing:border-box">Sending on LPF/dev5/12:02:ce:9f:a3:fc<br style="box-sizing:border-box">Sending on Socket/fallback<br style="box-sizing:border-box">DHCPDISCOVER on dev5 to 255.255.255.255 port 67 interval 3 (xid=0xcbd9b84e)<br style="box-sizing:border-box">DHCPREQUEST of 10.3.229.97 on dev5 to 255.255.255.255 port 67 (xid=0x4eb8d9cb)<br style="box-sizing:border-box">DHCPOFFER of 10.3.229.97 from 10.3.192.1<br style="box-sizing:border-box">DHCPACK of 10.3.229.97 from 10.3.192.1<br style="box-sizing:border-box">bound to 10.3.229.97 -- renewal in 1481 seconds.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">[root@node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# ls /var/run/4-123.pid<br style="box-sizing:border-box">ls: cannot access '/var/run/4-123.pid': No such file or directory</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">System information:<br style="box-sizing:border-box">4.13.0-31-generic <a href="https://github.com/aws/amazon-ecs-cni-plugins/issues/34" class="gmail-issue-link gmail-js-issue-link" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration-line:none">#34</a>~16.04.1-Ubuntu SMP Fri Jan 19 17:11:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px">However, this does happen on my old host:<br style="box-sizing:border-box">4.14.13-01 <a href="https://github.com/aws/amazon-ecs-cni-plugins/pull/1" class="gmail-issue-link gmail-js-issue-link" style="box-sizing:border-box;background-color:transparent;color:rgb(3,102,214);text-decoration-line:none">#1</a> SMP 14.04.5-Ubuntu Wed Jan 10 21:53:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux</p><p style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-bottom:0px">Any ideas?</p><p style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-bottom:0px"><br></p><p style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-bottom:0px">Thanks</p><p style="box-sizing:border-box;margin-top:0px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-bottom:0px">Lida</p></div>