Bug 1131554

Summary: libvirt-client is not able to set dhcp lease time
Product: Red Hat Enterprise Linux 7 Reporter: Aleš Mareček <amarecek>
Component: libvirtAssignee: Laine Stump <laine>
Status: CLOSED DEFERRED QA Contact: chhu
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: amarecek, dyuan, jsuchane, laine, mzhan, xuzhang, yalzhang
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-04 02:39:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aleš Mareček 2014-08-19 14:46:38 UTC
Description of problem:
libvirt-client is not able to set dhcp lease time - that means it's set for default 8 hours. There should be some mechanism how to pass this option to dnsmasq or copy "default" values from dnsmasq config to temporary config file which virtual-manager creates and uses for dnsmasq execution.

There is current "network" scheme - DHCP part:
- SNIP -
              <!-- Define the range(s) of IP addresses that the DHCP
                   server should hand out -->
              <element name="dhcp">
                <zeroOrMore>
                  <element name="range">
                    <attribute name="start"><ref name="ipv4Addr"/></attribute>
                    <attribute name="end"><ref name="ipv4Addr"/></attribute>
                  </element>
                </zeroOrMore>
                <zeroOrMore>
                  <element name="host">
                    <attribute name="mac"><ref name="uniMacAddr"/></attribute>
                    <attribute name="name"><text/></attribute>
                    <attribute name="ip"><ref name="ipv4Addr"/></attribute>
                  </element>
                </zeroOrMore>
                <optional>
                  <element name="bootp">
                    <attribute name="file"><ref name="filePath"/></attribute>
                    <optional>
                      <attribute name="server"><ref name="dnsName"/></attribute>
                    </optional>
                  </element>
                </optional>
              </element>
- SNIP -

Version-Release number of selected component (if applicable):
libvirt-client-0.10.2-29.el6

How reproducible:
Always

Steps to Reproduce:
1. run virtual machine - there is no option for dhcp lease time
2. ps aux | grep dnsmasq
3. see that running dnsmasq and temporary config file don't contain information about dhcp lease time: "--conf-file=" and "--dhcp-range" options

Actual results:
No way how to set dhcp lease time when virtual machine runs via virtual manager

Expected results:
New option in virtual manager / virtual manager is able to copy default values from dnsmasq config file into virtual manager's temporary config file

Additional info:

Comment 5 Laine Stump 2019-03-04 02:39:00 UTC
Bug 913446 tracks this upstream, and there hasn't been any continued interest since it was pointed out in upstream discussions that the problem that caused most people to think they want the feature would not be solved by it. I'm closing this RHEL version of the bug.