Bug 692214

Summary: libvirt has low possibilities to manage dnsmasq
Product: Red Hat Enterprise Linux 5 Reporter: Jiri Kastner <jkastner>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.6CC: ccui, dyuan, eblake, jdenemar, mzhan, xhu, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-02 13:41:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Kastner 2011-03-30 17:41:50 UTC
Description of problem:
libvirtd starts dnsmasq with "... --conf-file= --listen..." which doesn't allow customization of dnsmasq behavior. --conf-file should lead to some file. e.g. to /etc/libvirt/dnsmasq/default.conf for 'default' network

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. service libvirtd restart
2. ps ewww -p `pgrep dnsmasq`
3. check --conf-file parametr
  
Actual results:
/usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file=  --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253

Expected results:
/usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file=/etc/libvirt/dnsmasq/default.conf  --listen-address 192.168.122.1 --except-interface lo --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253

Additional info:

Comment 2 Jiri Denemark 2011-06-02 13:41:15 UTC
It's a design decision that libvirt (upstream, not just RHEL) doesn't allow for any kind of configuration of dnsmasq except for what can be done through network XML. However, if you want specific features that dnsmasq provides, we can consider modeling them in network XML so that users may use them through libvirt.