<div dir="ltr">Please check the dnsmasq hostsfile, should have all the records there:<div><br><div><div># cat /var/lib/libvirt/dnsmasq/osc_mgmt.hostsfile</div><div>52:54:00:2c:85:92,192.168.80.1,openstack-controller-00</div><div>52:54:00:e2:4b:25,192.168.80.2,openstack-database-00</div><div>52:54:00:50:91:04,192.168.80.3,openstack-keystone-00</div><div>52:54:00:fe:5b:36,192.168.80.7,openstack-rabbitmq-00</div><div>52:54:00:95:ca:bd,192.168.80.5,openstack-glance-00</div></div><div><br></div></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><br><br>-------<br>Best Regards,<br>Yalan Zhang<br>IRC: yalzhang<br>Internal phone: 8389413</div></div>
<br><div class="gmail_quote">On Mon, Oct 30, 2017 at 8:26 AM, Dagmawi Biru <span dir="ltr"><<a href="mailto:admin@dbvoid.com" target="_blank">admin@dbvoid.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Given the following network configuration:</div></div><div><div>===========</div><div></div></div><div><div><div><network></div><div> <name>osc_mgmt</name></div><div> <uuid>d93fe709-14ae-4a0e-8989-<wbr>aeaa8c76c513</uuid></div><div> <forward mode='route'/></div><div> <bridge name='osc_mgmt' stp='on' delay='0'/></div><div> <mac address='52:54:00:3f:fe:10'/></div><div> <ip address='192.168.80.254' netmask='255.255.255.0'></div><div> <dhcp></div><div> <range start='192.168.80.1' end='192.168.80.200'/></div><div> <host mac='52:54:00:2c:85:92' name='openstack-controller-00' ip='192.168.80.1'/></div><div> <host mac='52:54:00:e2:4b:25' name='openstack-database-00' ip='192.168.80.2'/></div><div> <host mac='52:54:00:50:91:04' name='openstack-keystone-00' ip='192.168.80.3'/></div><div> <host mac='52:54:00:fe:5b:36' name='openstack-rabbitmq-00' ip='192.168.80.7'/></div><div> <host mac='52:54:00:95:ca:bd' name='openstack-glance-00' ip='192.168.80.5'/></div><div> </dhcp></div><div> </ip></div><div></network></div></div></div><div><br></div><div>When attempting to bring up the relevant interface in the virtual machine, I get an incorrect IP address assigned, different from the one I statically set up per the XML above. As you can see, the device with MAC '52:54:00:e2:4b:25' should really be getting 192.168.80.2, but what happens when we bring this interface up is this:</div><div><br></div><div>===========</div><div><div>root@openstack-database-00:/<wbr>home/osc# ifup ens11</div><div>Internet Systems Consortium DHCP Client 4.3.3</div><div>Copyright 2004-2015 Internet Systems Consortium.</div><div>All rights reserved.</div><div>For info, please visit <a href="https://www.isc.org/software/dhcp/" target="_blank">https://www.isc.org/software/<wbr>dhcp/</a></div><div><br></div><div>Listening on LPF/ens11/...</div><div>Sending on LPF/ens11/...</div><div>Sending on Socket/fallback</div><div>DHCPDISCOVER on ens11 to 255.255.255.255 port 67 interval 3 (xid=0x6769e42a)</div><div>DHCPREQUEST of 192.168.80.27 on ens11 to 255.255.255.255 port 67 (xid=0x2ae46967)</div><div>DHCPOFFER of 192.168.80.27 from 192.168.80.254</div><div>DHCPACK of 192.168.80.27 from 192.168.80.254</div><div>bound to 192.168.80.27 -- renewal in 1407 seconds.</div></div><div><br></div><div><br></div><div>Some additional info about the VM and network it's attached to</div><div>===========</div><div><br></div><div></div><div>[root@dragon dnsmasq]# virsh domiflist openstack-database-00<br></div><div><div>Interface Type Source Model MAC</div><div>------------------------------<wbr>-------------------------</div><div>vnet12 bridge br20 virtio 52:54:00:6c:ce:b9</div><div>vnet13 network VM_MGMT rtl8139 52:54:00:7d:ca:87</div><div>vnet14 network osc_mgmt rtl8139 52:54:00:e2:4b:25</div><div><br></div><div>[root@dragon dnsmasq]# virsh net-info osc_mgmt</div><div>Name: osc_mgmt</div><div>UUID: d93fe709-14ae-4a0e-8989-<wbr>aeaa8c76c513</div><div>Active: yes</div><div>Persistent: yes</div><div>Autostart: yes</div><div>Bridge: osc_mgmt</div></div><div><div>===========</div><div><br></div><div><br></div><div></div></div><div>What's strange is that the first VM seems to work correctly and gets an assigned address of 192.168.80.1, but for some reason the others don't. Any ideas?</div><div><br></div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/libvirt-users</a><br></blockquote></div><br></div>