Bug 670031 - static dhcp entries do not work anymore in libvirt 0.8.7 - dnsmasq does not receive --dhcp-hostfile option
Summary: static dhcp entries do not work anymore in libvirt 0.8.7 - dnsmasq does not r...
Keywords:
Status: CLOSED DUPLICATE of bug 670028
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-16 20:17 UTC by Jan Colpaert
Modified: 2011-01-16 20:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 670028
Environment:
Last Closed: 2011-01-16 20:55:00 UTC


Attachments (Terms of Use)

Description Jan Colpaert 2011-01-16 20:17:28 UTC
Description of problem:

Since version 0.8.7, host entries in the network config xml file do not work anymore:


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

How reproduce
Steps to Reproduce:
1. create a default.xml network config file that contains static host entries:
virsh -c qemu:///system net-edit default
<network>
  <name>default</name>
  <uuid>86caxxxx-xxxx-4e4c-9db4-xxxxxxxxxxxx</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:31:12:11' name='backup' ip='10.10.122.11' />
      <host mac='52:54:00:21:32:20' name='vm20' ip='10.10.122.20' />
    </dhcp>
  </ip>
</network> 

2. Dnsmaq will be restarted automatically (or restart libvirtd manually)
Verify the command line with:
ps -elfa | grep dnsmasq


3. The /var/lib/libvirt/dnsmasq/default.hostsfile file is created correctly, but is not passed to dnsmasq.
(--dhcp-hostsfile option)
  
Actual results:
5 S nobody    3227     1  0  80   0 -  1534 poll_s Jan14 ?        00:00:00 /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:

5 S nobody    3227     1  0  80   0 -  1534 poll_s Jan14 ?        00:00:00 /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-hostsfile /var/lib/libvirt/dnsmasq/default.hostsfile


Additional info:

Tested on Arch Linux

Comment 1 Jan Colpaert 2011-01-16 20:52:55 UTC
duplicate of 670028, sorry about this

Comment 2 Jan Colpaert 2011-01-16 20:55:00 UTC

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


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