Bug 670028 - Libvirt static dhcp does not work anymore - does not pass --dhcp-hostfile to dnsmasq anymore since 0.8.7
Summary: Libvirt static dhcp does not work anymore - does not pass --dhcp-hostfile to ...
Keywords:
Status: CLOSED DUPLICATE of bug 667643
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact:
URL:
Whiteboard:
: 670031 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-16 19:49 UTC by Jan Colpaert
Modified: 2011-01-17 13:40 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 670031 (view as bug list)
Environment:
Last Closed: 2011-01-17 13:40:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Colpaert 2011-01-16 19:49:45 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Problem started in 0.8.7

How reproducible:


Steps to Reproduce:
1. create a default network that contains some host entries for static dhcp
virsh -c qemu:///system net-edit default
<network>
  <name>default</name>
  <uuid>86ca83fc-ca15-4e4c-xxxx-xxxx3c0cxxxx</uuid>
  <forward mode='route'/>
  <bridge name='virbr0' stp='on' delay='0' />
  <ip address='10.10.122.1' netmask='255.255.255.0'>
    <dhcp>
      <host mac='52:54:00:01:13:11' name='backup' ip='10.10.122.11' />
      <host mac='52:54:00:23:12:25' name='vm20' ip='10.10.122.20' />
    </dhcp>
  </ip>
</network>

2. dnsmasq is automaticallly restarted (or restart libvirtd) and check with 
ps -elfa | grep dnsmasq
/usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file=  --listen-address 10.10.122.1 --except-interface lo --dhcp-range 10.10.122.1,static --dhcp-no-override

3. in py opinion, the --dhcp-hostfile /var/lib/libvirt/dnsmasq/default.hostsfile  option is missing in the dnsmasq option list. The file /var/lib/libvirt/dnsmasq/default.hostsfile is however correctly generated
  
Actual results:

ps -elfa | grep dnsmasq
/usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file=  --listen-address 10.10.122.1 --except-interface lo --dhcp-range 10.10.122.1,static --dhcp-no-override

Expected results:

/usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file=  --listen-address 10.10.122.1 --except-interface lo --dhcp-range 10.10.122.1,static --dhcp-no-override  --dhcp-hostfile /var/lib/libvirt/dnsmasq/default.hostsfile

Additional info:

Tested on Arch Linux

Comment 1 Jan Colpaert 2011-01-16 20:55:00 UTC
*** Bug 670031 has been marked as a duplicate of this bug. ***

Comment 2 Jiri Denemark 2011-01-17 13:40:59 UTC

*** This bug has been marked as a duplicate of bug 667643 ***


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