Bug 583348 - Dracut fails in attempt to kill dhclient
Summary: Dracut fails in attempt to kill dhclient
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-18 01:13 UTC by Ian Dall
Modified: 2010-10-30 23:39 UTC (History)
2 users (show)

Fixed In Version: dracut-005-5.fc12
Clone Of:
Environment:
Last Closed: 2010-10-27 22:54:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Dall 2010-04-18 01:13:42 UTC
Description of problem:
When network booting (nfs root), I end up with two dhclient's running

Version-Release number of selected component (if applicable):
dracut-004-4

How reproducible:
Always

Steps to Reproduce:
1.Boot a nfs root client using dhcp to get ip address
2.ps -ef | grep dhclient
3.
  
Actual results:
Two dhclients are running

Expected results:
One dhclient running

Additional info:

The pre-pivot/10kill-dhclient.sh script attempts to kill the dhclient but fails. One can also try and manually kill the process, which also fails, unless SIGKILL is used (kill -9). The second dhclient is quite easy to kill. I have attached a strace to the dhclient process and then sent a plain kill (SIGTERM) and the recalcitrant  dhclient process is stuck in select and never comes out. I can only conclude that the signals have been set to ignore, probably by dhclients parent.

As a work around I've changed the  pre-pivot/10kill-dhclient.sh to use "kill -9" which works Ok but could conceivably have negative consequences if the process was killed in the middle of writing a leases file, for example.

Comment 1 Fedora Update System 2010-09-23 15:31:12 UTC
dracut-005-4.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/dracut-005-4.fc13

Comment 2 Fedora Update System 2010-09-23 15:32:41 UTC
dracut-005-4.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/dracut-005-4.fc12

Comment 3 Fedora Update System 2010-09-24 20:38:21 UTC
dracut-005-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/dracut-005-4.fc12

Comment 4 Fedora Update System 2010-10-27 22:53:09 UTC
dracut-005-5.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2010-10-30 23:37:49 UTC
dracut-005-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.