Bug 26846

Summary: pump -l option not honored during renew
Product: [Retired] Red Hat Linux Reporter: Anders Blomdell <anders.blomdell>
Component: pumpAssignee: Elliot Lee <sopwith>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-28 16:14:17 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 Anders Blomdell 2001-02-09 17:21:55 UTC
When giving the command 'pump -R -l <lease time>', the resulting
lease time is the one given when pump was first started. It would 
also be nice to be able to specify the desired lease time in 
/etc/sysconfig/network, perhaps after this small patch to ifup 
(dhcpd not properly handled):

--- /sbin/O.ifup        Thu Aug  3 16:21:32 2000
+++ /sbin/ifup  Fri Feb  9 17:16:41 2001
@@ -88,8 +88,14 @@
 fi
 
 if [ -n "${DYNCONFIG}" ]; then
+    . /etc/sysconfig/network
+
     PUMPARGS=
     DHCPCDARGS=
+
+    if [ -n "${DHCP_LEASE_TIME}" ]; then
+       PUMPARGS="-l ${DHCP_LEASE_TIME}"
+    fi
     if [ -n "${DHCP_HOSTNAME}" ]; then
        PUMPARGS="-h ${DHCP_HOSTNAME}"
        DHCPCDARGS="-h ${DHCP_HOSTNAME}"

Comment 1 Elliot Lee 2001-08-08 04:57:34 UTC
Can you set the lease time in /etc/pump.conf instead?

Comment 2 Anders Blomdell 2001-08-08 06:21:00 UTC
No I can't, since that (as far as I can tell from source and docs) is not 

supported. I also consider it a bug (albeit a minor one) that pump silently 

ignores the '-l <lease_time>' option during a manual renewal.