Bug 583348

Summary: Dracut fails in attempt to kill dhclient
Product: [Fedora] Fedora Reporter: Ian Dall <ian>
Component: dracutAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: harald, jonathan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dracut-005-5.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-27 22:54:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.