Bug 147739 - /etc/init.d/dhcp configtest ignores DHCPDARGS
Summary: /etc/init.d/dhcp configtest ignores DHCPDARGS
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: dhcp
Version: 3.0
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact:
URL:
Whiteboard: RHEL3U7NAK
Depends On:
Blocks: 190430
TreeView+ depends on / blocked
 
Reported: 2005-02-10 21:02 UTC by Josh Kelley
Modified: 2010-04-06 13:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-06 13:17:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Josh Kelley 2005-02-10 21:02:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0

Description of problem:
The configtest function in the dhcpd startup/shutdown script ignores any DHCPDARGS specified in /etc/sysconfig/dhcpd.  If DHCPDARGS is used to specify an alternate config file, via the -cf option, then configtest ends up testing the wrong config file (and will likely fail).  This means that the restart/reload function of the startup/shutdown script doesn't work either.

Version-Release number of selected component (if applicable):
dhcp-3.0.1-10_EL3

How reproducible:
Always

Steps to Reproduce:
1. Move /etc/dhcpd.conf to another location (e.g., /etc/dhcpd/dhcpd.conf).
2. Place a blank dhcpd.conf file in /etc to satisfy the "[ -f /etc/dhcpd.conf ] || exit 0" test in the startup script.
3. Edit /etc/sysconfig/dhcpd with the new location (e.g., "DHCPDARGS='-cf /etc/dhcpd/dhcpd.conf'").
4. Restart dhcpd.


Actual Results:  dhcpd complains about missing arguments in /etc/dhcpd.conf.

Expected Results:  configtest uses the "real" dhcpd.conf file.

If this is not possible, then "service dhcpd restart" should at least give the same results as "service dhcpd stop; service dhcpd stop" (i.e., it should probably not invoke configtest).

Additional info:

Comment 1 Jason Vas Dias 2005-02-12 00:35:15 UTC
This bug is now fixed with dhcp-3.0.1-33_FC3, which is now making its
way through QA testing, and will hopefully end up in RHEL-3-U5 .
Meanwhile, you can download it from:
http://people.redhat.com/~jvdias/DHCP/RHEL-3/ .
Please test this version and let me know if it fixes your problem
or if you can find any other problems with it.
Thank You,
Jason Vas Dias, Red Hat. 

Comment 2 Josh Kelley 2005-02-15 16:59:12 UTC
Two problems with the -33 version:

The sed one-liner in configtest removes the space between -cf and the
filename, and dhcpd doesn't like that.

The start function no longer passes ${DHCPDARGS} when starting dhcpd,
so alternate config files don't work at all.

Thanks for the quick reply.

Comment 3 Jason Vas Dias 2005-10-14 14:46:02 UTC
This bug (and issue raised in previous comment) is fixed with dhcp-3.0.1-40_EL3+.

Comment 4 Josh Kelley 2005-10-14 19:31:57 UTC
Thanks.

Comment 11 Jiri Popelka 2010-04-06 13:17:53 UTC
Closing as WONTFIX. dhcp-3.0.1-10_EL3 is the latest version shipped for RHEL-3.


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