Bug 568031

Summary: dhclient-${IF}-up-hooks and other scripts are not run
Product: [Fedora] Fedora Reporter: Matt Castelein <matt.castelein>
Component: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: jpopelka
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dhcp-4.1.1-9.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 571720 (view as bug list) Environment:
Last Closed: 2010-03-09 03:38:07 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:
Bug Depends On:    
Bug Blocks: 571720    

Description Matt Castelein 2010-02-24 16:06:33 UTC
Description of problem:
The man page of dhclient-script lists many 'hooks' scrips which are to be sourced during the various states of DHCP.  They are not being executed.

Version-Release number of selected component (if applicable):
dhclient-4.1.1-5.fc12.x86_64

How reproducible:
Always

Steps to Reproduce:
1.make scripts as described in man pages
2.bring interfaces up
3.renew DHCP lease
  
Actual results:
Nothing

Expected results:
Scripts run

Additional info:
Man page says scripts are to be placed in /usr/local/etc/ but I tried /etc/ also just in case the man pages lie.

Comment 1 Jiri Popelka 2010-02-24 17:07:44 UTC
You are right Matt. Paths in man pages need fix.
Correct path is /etc/dhcp/, so you can create one of these:
/etc/dhcp/dhclient-${interface}-up-hooks
/etc/dhcp/dhclient-${interface}-down-hooks
/etc/dhcp/dhclient-up-hooks
/etc/dhcp/dhclient-down-hooks
/etc/dhcp/dhclient-enter-hooks
/etc/dhcp/dhclient-exit-hooks

To see in detail how these scripts are called look directly into /sbin/dhclient-script.

Oh ... and maybe you will need to add
DHCLIENTARGS=-nc
to your /etc/sysconfig/network-scripts/ifcfg-${interface}
(see. -nc option in man dhclient)

Comment 2 Fedora Update System 2010-02-25 17:29:22 UTC
dhcp-4.1.1-9.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2763

Comment 3 Matt Castelein 2010-02-26 20:10:40 UTC
Jiri, which man pages got updated?  I see the note about fixing paths in man pages on koji, but I don't see where the man pages in the dhcp package even reference them.  The man pages that need to be fixed are in the dhclient package, for which there is apparently no distinct component in bugzilla.

Comment 4 Fedora Update System 2010-02-27 03:32:54 UTC
dhcp-4.1.1-9.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 dhcp'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2763

Comment 5 Jiri Popelka 2010-03-02 12:53:16 UTC
(In reply to comment #3)
> Jiri, which man pages got updated?  I see the note about fixing paths in man
> pages on koji, but I don't see where the man pages in the dhcp package even
> reference them.  The man pages that need to be fixed are in the dhclient
> package, for which there is apparently no distinct component in bugzilla.    

I fixed dhclient-script(8) and dhcpd.conf(5).
- dhclient-script is in dhclient package
- dhcpd.conf is in dhcp package
dhclient is subpackage of dhcp so in bugzilla it belongs to dhcp component.
See the build
http://koji.fedoraproject.org/koji/buildinfo?buildID=158653

Comment 6 Matt Castelein 2010-03-02 15:11:54 UTC
Sorry Jiri, I must be losing my mind.  I have *all* of the update now, and it looks good.

Comment 7 Fedora Update System 2010-03-09 03:37:58 UTC
dhcp-4.1.1-9.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.