Ask Your Question

dnsmasq: lease-init script returned exit code 1

asked 2011-09-15 01:21:45 -0500

gagupta gravatar image

Running nova-network fails with the following error:

root@openstack1:nova-2011.3# ./bin/nova-network --flagfile=/etc/nova/nova.conf Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/eventlet/hubs/", line 336, in fire_timers timer() File "/usr/lib/pymodules/python2.7/eventlet/hubs/", line 56, in __call__ cb(args, *kw) File "/usr/lib/pymodules/python2.7/eventlet/", line 192, in main result = function(args, *kwargs) File "/home/openstack/nova-2011.3/nova/", line 77, in run_server server.start() File "/home/openstack/nova-2011.3/nova/", line 137, in start self.manager.init_host() File "/home/openstack/nova-2011.3/nova/network/", line 928, in init_host super(FlatDHCPManager, self).init_host() File "/home/openstack/nova-2011.3/nova/network/", line 360, in init_host self._setup_network(ctxt, network) File "/home/openstack/nova-2011.3/nova/network/", line 942, in _setup_network self.driver.update_dhcp(context, dev, network_ref) File "/home/openstack/nova-2011.3/nova/", line 684, in inner retval = f(args, *kwargs) File "/home/openstack/nova-2011.3/nova/network/", line 566, in update_dhcp _execute(cmd, run_as_root=True) File "/home/openstack/nova-2011.3/nova/network/", line 643, in _execute return utils.execute(cmd, **kwargs) File "/home/openstack/nova-2011.3/nova/", line 187, in execute cmd=' '.join(cmd)) ProcessExecutionError: Unexpected error while running command. Command: sudo FLAGFILE=/etc/nova/nova.conf NETWORK_ID=10 dnsmasq --strict-order --bind-interfaces --interface=br100 --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/ --listen-address= --except-interface=lo --dhcp-range=,static,120s --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro Exit code: 11 Stdout: '' Stderr: '\ndnsmasq: lease-init script returned exit code 1\n'

Here is my nova.conf: root@openstack1:nova-2011.3# cat /etc/nova/nova.conf --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --nodaemon

--s3_host= --rabbit_host= --cc_host= --ec2_url=

--FAKE_subdomain=ec2 --routing_source_ip= --sql_connection=mysql://root:password@

--glance_host= --image_service=nova.image.glance.GlanceImageService --glance_api_servers=

--bridge_interface=br100 --fixed_range= --network_size=8


Here is my ifconfig: root@openstack1:nova-2011.3# ifconfig br100 Link encap:Ethernet HWaddr 10:78:d2:e7:ce:cb
inet addr: Bcast: Mask: inet6 addr: fe80::1278:d2ff:fee7:cecb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1131063 errors:0 dropped:122104 overruns:0 frame:0 TX packets:408742 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:547869799 (547.8 MB) TX bytes:150190551 (150.1 MB)

eth0 Link encap:Ethernet HWaddr 10 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2011-09-15 18:08:58 -0500

gagupta gravatar image

I tried to run dnsmasq command, and it gives the same error:

root@openstack1:nova-2011.3# sudo FLAGFILE=/etc/nova/nova.conf NETWORK_ID=10 dnsmasq --strict-order --bind-interfaces --interface=br100 --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/ --listen-address= --except-interface=lo --dhcp-range=,static,120s --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro

dnsmasq: lease-init script returned exit code 1

edit flag offensive delete link more

answered 2011-09-16 18:14:18 -0500

gagupta gravatar image

I found the problem. The script passed in '--dhcp-script' (/usr/bin/nova-dhcpbridge' was not compatible with the version of nova I was running. Once, I specified the script under the source tree (bin/nova-dhcpbridge), I can start nova-network successfully.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-09-15 01:21:45 -0500

Seen: 1,239 times

Last updated: Sep 16 '11