[Openstack] openstack havana dnsmasq not started by openstack

Anatoly Oreshkin Anatoly.Oreshkin at pnpi.spb.ru
Sun Feb 16 16:27:47 UTC 2014


Hello,

 I am a newbe in openstack. I've installed OpenStack Havana from RDO on single host
running Scientific Linux 6.4 using packstack --allinone
That is all openstack components are running on single host.
I am trying to run test instance cirros-0.3.1-x86_64 through dashboard.
As a private  network I've chosen 10.0.1.0/24. On dashboard I see that ip 10.0.1.2
is assigned to instance. Instance system log shows:

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
WARN: /etc/rc3.d/S40-network failed


That means that  instance has not recieved ip address from dnsmasq server.
As I understand dnsmasq process has to  be started up by nova or neutron components
and received MAC/IP pair.
But no dnsmasq processes were running on host. Then I've started dnsmasq by hand and
launched instance again. This time dasboard showed that instance is  assigned ip
address 10.0.1.2 and instance system log gave this lines:

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending select for 10.0.1.8...
Sending select for 10.0.1.8...
Lease of 10.0.1.8 obtained, lease time 43200
...

that is the instance received from  dnsmsq different ip address 10.0.1.8

Why is dnsmasq not started automatically by nova or neutron ?
Any hints ?
The openstack host has such interfaces:

netstat -r

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
239.2.11.72     *               255.255.255.255 UH        0 0          0 br1
172.24.4.224    *               255.255.255.240 U         0 0          0 br-ex
<external net>  *               255.255.255.224 U         0 0          0 br0
10.0.1.0        *               255.255.255.0   U         0 0          0 br-int
192.168.1.0     *               255.255.255.0   U         0 0          0 br1
link-local      *               255.255.0.0     U         0 0          0 br0
link-local      *               255.255.0.0     U         0 0          0 br1
link-local      *               255.255.0.0     U         0 0          0 br-ex
link-local      *               255.255.0.0     U         0 0          0 br-int
default         <gateway>       0.0.0.0         UG        0 0          0 br0


/etc/neutron/dhcp_agent.ini has:
---------------
...
interface_driver =neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq

dnsmasq_config_file = /etc/dnsmasq.conf
...
---------------

/etc/nova/nova.conf

-------------
...

dnsmasq_config_file=/etc/dnsmasq.conf
neutron_ovs_bridge=br-int
flat_network_bridge=br-int
...
-------------

/etc/dnsmasq.conf

dhcp-range=10.0.1.2,10.0.1.100,12h


Thanks.





More information about the Openstack mailing list