[Rdo-list] dnsmasq: failed to set SO_REUSE{ADDR|PORT} on DHCP socket: Protocol not available

Dmitry Makovey dmitry at athabascau.ca
Thu Dec 11 22:34:36 UTC 2014


Hi, I've got my RDO OpenStack IceHouse assembled and working, but only
to a point of assigning IPs, I'm getting errors in logs:

dnsmasq: failed to set SO_REUSE{ADDR|PORT} on DHCP socket: Protocol not
available

(see attached logs for more traceback)

I have located the post:
https://ask.openstack.org/en/question/52570/update-to-dnsmasq-doesnt-solve-bug-977555/
(along with RHBZ case #977555), however both sources suggest that "most
recent" dnsmasq should fix the issue.

My current dnsmasq set is:

# rpm -qa | grep dnsmasq
dnsmasq-utils-2.48-14.el6.x86_64
dnsmasq-2.48-14.el6.x86_64

both comming from RH repos (and not RDO repo).

Also started up cirros image and by the looks of it it did not received
DHCP-managed IP (in fact it didn't receive anything):

### ifconfig -a
eth0      Link encap:Ethernet  HWaddr FA:16:3E:BA:EC:D1
          inet6 addr: fe80::f816:3eff:feba:ecd1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1106 (1.0 KiB)  TX bytes:1114 (1.0 KiB)


Where should I look for clues for what's *really* wrong here - I can't
believe it won't be a major issue for everyone else out there.

-- 
Dmitry Makovey
Web Systems Administrator
Athabasca University
(780) 675-6245
---
Confidence is what you have before you understand the problem
    Woody Allen

When in trouble when in doubt run in circles scream and shout
     http://www.wordwizard.com/phpbb3/viewtopic.php?f=16&t=19330
-------------- next part --------------
2014-12-11 14:59:16.491 20564 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for df9dc8c6-447f-42a9-aece-d7743e204ea3.
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/dhcp_agent.py", line 129, in call_driver
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 180, in enable
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent     self.spawn_process()
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/dhcp.py", line 382, in spawn_process
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent     ip_wrapper.netns.execute(cmd, addl_env=env)
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/ip_lib.py", line 468, in execute
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent     check_exit_code=check_exit_code, extra_ok_codes=extra_ok_codes)
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.6/site-packages/neutron/agent/linux/utils.py", line 82, in execute
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent     raise RuntimeError(m)
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent RuntimeError: 
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-df9dc8c6-447f-42a9-aece-d7743e204ea3', 'env', 'NEUTRON_NETWORK_ID=df9dc8c6-447f-42a9-aece-d7743e204ea3', 'dnsmasq', '--no-hosts', '--no-resolv', '--strict-order', '--bind-interfaces', '--interface=tapdf7a6130-3c', '--except-interface=lo', '--pid-file=/var/lib/neutron/dhcp/df9dc8c6-447f-42a9-aece-d7743e204ea3/pid', '--dhcp-hostsfile=/var/lib/neutron/dhcp/df9dc8c6-447f-42a9-aece-d7743e204ea3/host', '--addn-hosts=/var/lib/neutron/dhcp/df9dc8c6-447f-42a9-aece-d7743e204ea3/addn_hosts', '--dhcp-optsfile=/var/lib/neutron/dhcp/df9dc8c6-447f-42a9-aece-d7743e204ea3/opts', '--leasefile-ro', '--dhcp-range=tag0,10.2.0.0,static,86400s', '--dhcp-lease-max=256', '--conf-file=/etc/neutron/dnsmasq-neutron.conf', '--domain=openstacklocal']
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent Exit code: 2
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent Stdout: ''
2014-12-11 14:59:16.491 20564 TRACE neutron.agent.dhcp_agent Stderr: '\ndnsmasq: failed to set SO_REUSE{ADDR|PORT} on DHCP socket: Protocol not available\n'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: OpenPGP digital signature
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20141211/0beea1c9/attachment.sig>


More information about the dev mailing list