| Summary: | "dhclient -r" may not terminate running dhclient process; may kill wrong PID | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | John Florian <john> |
| Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | jpopelka |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-23 16:15:30 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
John Florian
2012-03-22 18:16:58 UTC
(In reply to comment #0) > Description of problem: > Per dhclient(8): > > """ > -r Release the current lease and stop the running DHCP client as > previously recorded in the PID file. > """ Therefore you need to specify the PID file (otherwise it'll use the default /var/run/dhclient.pid). > Steps to Reproduce: > 1. Boot system with a DHCP-managed interface, e.g., eth0. See how it runs the dhclient (ps aux | grep dhclient). You should see that it uses /var/run/dhclient-eth0.pid file. > 2. dhclient -r eth0 # probably will succeed; process will disappear Use dhclient -r -pf /var/run/dhclient-eth0.pid eth0 see also: grep "dhclient -r" /etc/sysconfig/network-scripts/ifdown-eth Does it solve your problem ? Jiri, you are correct and that does resolve my problem. I probably should have looked at /etc/sysconfig/network-scripts/ifdown-eth, but when I saw the behavior described with Additional Info, I somehow convinced myself there was a genuine bug. Something still seems fishy when the -pf option is not used (for the release) because dhclient does indeed still find the /var/run/dhclient-eth0.pid file; the strace clearly showed that. Nonetheless, you've given me a workable solution so thank you for that. You're welcome. |