Red Hat Bugzilla – Bug 41373
network unusable after failure to renew lease
Last modified: 2007-04-18 12:33:20 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)
Description of problem:
If pump is unable to renew a lease it requests a new one. After obtaining
the new lease it leaves the interface configured with address 0.0.0.0.
Pump also sucks badly in error reporting.
Steps to Reproduce:
1. Configure interface using pump
2. Arrange for DHCP server to refuse to renew the lease
3. Wait for pump to to try to renew the lease
Actual Results: ifconfig shows interface has no address. Cannot access
Pump does attempt to obtain a new lease, however it resets the interface
to address 0.0.0.0 beforehand, and fails to set the interface to the new
address (or the old one) afterwards.
Pump also discards most error messages. Pretty sucky, huh?
Attached is a patch against pump-0.8.3 that corrects the problem. It also
logs errors, rather than discarding them, and adds a useful feature:
setting the machine hostname according to the name returned by the DHCP
Created attachment 19012 [details]
Patch to reinitialize interface after renewal fails, also additional logging, and new feature to set hostname (see nohostname pump.conf option)
patch in current cvs. pump not used in this interactive form for