openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #20250
QUANTUM: DHCP issue with dnsmasq starting on network node under Folsom release on Ubuntu 12.04-1
Hi all,
I've hit a brick wall trying to get the dnsmasq process to bind
correctly and get itself ready to answer bootp/dhcp broadcasts.
Any ideas appreciated, please note this is Ubuntu 12.04-1(LTS) not 12.10.
*NICS*
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 <http://127.0.0.1/8> scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state
UNKNOWN qlen 1000
link/ether 00:0c:29:77:74:5f brd ff:ff:ff:ff:ff:ff
inet 192.168.3.10/20 <http://192.168.3.10/20> brd 192.168.15.255
scope global eth0
inet6 fe80::20c:29ff:fe77:745f/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state
UNKNOWN qlen 1000
link/ether 00:0c:29:77:74:69 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.10/32 <http://10.10.10.10/32> scope global eth1
inet6 fe80::20c:29ff:fe77:7469/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state
UNKNOWN qlen 1000
link/ether 00:0c:29:77:74:73 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe77:7473/64 scope link
valid_lft forever preferred_lft forever
6: br-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UNKNOWN
link/ether 62:66:0f:50:4b:4f brd ff:ff:ff:ff:ff:ff
inet6 fe80::6066:fff:fe50:4b4f/64 scope link
valid_lft forever preferred_lft forever
7: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UNKNOWN
link/ether 00:0c:29:77:74:73 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe77:7473/64 scope link
valid_lft forever preferred_lft forever
8: tapc0732abd-3b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UNKNOWN
link/ether fe:29:1c:e6:18:41 brd ff:ff:ff:ff:ff:ff
inet 172.16.11.3/24 <http://172.16.11.3/24> brd 172.16.11.255 scope
global tapc0732abd-3b
inet6 fe80::fc29:1cff:fee6:1841/64 scope link
valid_lft forever preferred_lft forever
9: br-tun: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UNKNOWN
link/ether b2:62:b5:4e:ea:4a brd ff:ff:ff:ff:ff:ff
inet6 fe80::b062:b5ff:fe4e:ea4a/64 scope link
valid_lft forever preferred_lft forever
*
*
*dnsmasq version*
root@quantum:/var/log/quantum# dnsmasq -version
Dnsmasq version 2.59 Copyright (c) 2000-2011 Simon Kelley
Compile time options IPv6 GNU-getopt DBus i18n DHCP TFTP conntrack IDN
*In dhcp-agent.log *
2013-01-18 21:56:49 DEBUG [quantum.agent.dhcp_agent] Reusing existing
device: tapc0732abd-3b.
2013-01-18 21:56:49 DEBUG [quantum.agent.linux.utils] Running
command: ip addr show tapc0732abd-3b permanent scope global
2013-01-18 21:56:49 DEBUG [quantum.agent.linux.utils]
Command: ['ip', 'addr', 'show', 'tapc0732abd-3b', 'permanent', 'scope',
'global']
Exit code: 0
Stdout: '16: tapc0732abd-3b: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP>
mtu 1500 qdisc noqueue state UNKNOWN \n link/ether fa:16:3e:f8:76:94
brd ff:ff:ff:ff:ff:ff\n inet 172.16.11.3/24 <http://172.16.11.3/24>
brd 172.16.11.255 scope global tapc0732abd-3b\n'
Stderr: ''
2013-01-18 21:56:49 DEBUG [quantum.agent.linux.dhcp] Unable to access
/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/pid
2013-01-18 21:56:49 DEBUG [quantum.agent.linux.utils] Running
command: sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf
QUANTUM_RELAY_SOCKET_PATH=/var/lib/quantum/dhcp/lease_relay
QUANTUM_NETWORK_ID=682d81ca-5ab9-490f-9397-ab28d9f3c850 dnsmasq
--no-hosts --no-resolv --strict-order --bind-interfaces
--interface=tapc0732abd-3b --except-interface=lo --domain=openstacklocal
--pid-file=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/pid --dhcp-hostsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/host
--dhcp-optsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/opts
--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update
--leasefile-ro --dhcp-range=set:tag0,172.16.11.0,static,120s
2013-01-18 21:56:49 DEBUG [quantum.agent.linux.utils]
Command: ['sudo', '/usr/bin/quantum-rootwrap',
'/etc/quantum/rootwrap.conf',
'QUANTUM_RELAY_SOCKET_PATH=/var/lib/quantum/dhcp/lease_relay',
'QUANTUM_NETWORK_ID=682d81ca-5ab9-490f-9397-ab28d9f3c850', 'dnsmasq',
'--no-hosts', '--no-resolv', '--strict-order', '--bind-interfaces',
'--interface=tapc0732abd-3b', '--except-interface=lo',
'--domain=openstacklocal',
'--pid-file=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/pid',
'--dhcp-hostsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/host',
'--dhcp-optsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/opts',
'--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update',
'--leasefile-ro', '--dhcp-range=set:tag0,172.16.11.0,static,120s']
Exit code: 2
Stdout: ''
Stderr: '\ndnsmasq: failed to create listening socket for 172.16.11.3
<http://172.16.11.3>: Address already in use\n'
2013-01-18 21:56:49 ERROR [quantum.agent.dhcp_agent] Unable to enable
dhcp.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 91, in call_driver
getattr(driver, action)()
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py",
line 112, in enable
*OVS show*
root@quantum:/var/log/quantum# ovs-vsctl show
0adf8822-6fae-4d10-a855-e39241b5d432
Bridge br-int
Port br-int
Interface br-int
type: internal
Port "tapc0732abd-3b"
tag: 1
Interface "tapc0732abd-3b"
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-tun
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port br-tun
Interface br-tun
type: internal
Bridge br-ex
Port "eth2"
Interface "eth2"
Port br-ex
Interface br-ex
type: internal
ovs_version: "1.4.0+build0"
Follow ups