I'm trying to set up a two node instance of OpenStack Nova and having a problem distributing IP addresses. Nova uses dnsmasq running on a what it refers to as the controller node (basically a machine running a few nova related process. One of these processes is dnsmasq.
The controller is receiving the dhcpdiscover requests but for some reason it's not returning an IP address.
Nova starts dnsmasq itself using the command,
dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=10.0.0.2,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
The controller's IP address is 192.168.110.10. The VM is requesting an address on 10.0.0.0/24.
Here's the output of tcpdump -i eth0 port 67 or 68 when the VM is sending a dhcpdiscover request,
10:37:27.166087 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 02:16:3e:0c:9b:17 (oui Unknown), length 280
10:37:30.182197 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 02:16:3e:0c:9b:17 (oui Unknown), length 280
10:37:33.191895 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 02:16:3e:0c:9b:17 (oui Unknown), length 280
Would anyone have any idea why dnsmasq is not responding with an IP?
Contents of /var/lib/nova/networks/nova-br100.conf,
02:16:3e:0c:9b:17,i-00000001.novalocal,10.0.0.2
(this is the MAC address of the VM started by Nova)
Output of ifconfig -a,
br100 Link encap:Ethernet HWaddr 00:50:56:a1:00:45
inet addr:192.168.110.10 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:56ff:fea1:45/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:247387 errors:0 dropped:0 overruns:0 frame:0
TX packets:106087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19290515 (19.2 MB) TX bytes:11244523 (11.2 MB)
eth0 Link encap:Ethernet HWaddr 00:50:56:a1:00:45
inet6 addr: fe80::250:56ff:fea1:45/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:247406 errors:0 dropped:0 overruns:0 frame:0
TX packets:106093 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22782873 (22.7 MB) TX bytes:11244991 (11.2 MB)
Interrupt:18 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:922307 errors:0 dropped:0 overruns:0 frame:0
TX packets:922307 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:76210389 (76.2 MB) TX bytes:76210389 (76.2 MB)
virbr0 Link encap:Ethernet HWaddr da:9f:b8:e3:d9:9b
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Output of ip addr,
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet 169.254.169.254/32 scope link lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:50:56:a1:00:45 brd ff:ff:ff:ff:ff:ff
inet6 fe80::250:56ff:fea1:45/64 scope link
valid_lft forever preferred_lft forever
3: br100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether 00:50:56:a1:00:45 brd ff:ff:ff:ff:ff:ff
inet 192.168.110.10/16 brd 192.168.255.255 scope global br100
inet 10.0.0.1/24 brd 10.0.0.255 scope global br100
inet6 fe80::250:56ff:fea1:45/64 scope link
valid_lft forever preferred_lft forever
4: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether da:9f:b8:e3:d9:9b brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0