force_dhcp_release is currently unsupported on Fedora

Bug #953712 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

The implementation for the --force_dhcp_release currently fails on Fedora. When trying to use this flag I'm getting the following error in network.log:

(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/rpc/amqp.py", line 252, in _process_data
(nova.rpc.amqp): TRACE: rval = node_func(context=ctxt, **node_args)
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 260, in wrapped
(nova.rpc.amqp): TRACE: return func(self, context, *args, **kwargs)
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 374, in deallocate_for_instance
(nova.rpc.amqp): TRACE: super(FloatingIP, self).deallocate_for_instance(context, **kwargs)
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 260, in wrapped
(nova.rpc.amqp): TRACE: return func(self, context, *args, **kwargs)
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 929, in deallocate_for_instance
(nova.rpc.amqp): TRACE: **kwargs)
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 250, in deallocate_fixed_ip
(nova.rpc.amqp): TRACE: address)
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 1219, in deallocate_fixed_ip
(nova.rpc.amqp): TRACE: self.driver.release_dhcp(dev, address, vif['address'])
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/network/linux_net.py", line 664, in release_dhcp
(nova.rpc.amqp): TRACE: utils.execute('dhcp_release', dev, address, mac_address, run_as_root=True)
(nova.rpc.amqp): TRACE: File "/usr/lib/python2.7/site-packages/nova/utils.py", line 240, in execute
(nova.rpc.amqp): TRACE: cmd=' '.join(cmd))
(nova.rpc.amqp): TRACE: ProcessExecutionError: Unexpected error while running command.
(nova.rpc.amqp): TRACE: Command: sudo nova-rootwrap dhcp_release br100 192.168.0.2 fe:16:3e:20:b3:ee
(nova.rpc.amqp): TRACE: Exit code: 1
(nova.rpc.amqp): TRACE: Stdout: ''
(nova.rpc.amqp): TRACE: Stderr: 'Traceback (most recent call last):\n File "/usr/bin/nova-rootwrap", line 69, in <module>\n env=filtermatch.get_environment(userargs))\n File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__\n errread, errwrite)\n File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child\n raise child_exception\nOSError: [Errno 2] No such file or directory\n'

----

The issue seems to be that we need the dnsmasq-utils package? We are essentially missing /usr/bin/dhcp_release which nova currently requires.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

dhcp_release is an optional command that is part of the dnsmasq source. Ubuntu packaged it up in dnsmasq-utils, but you could also just add it to the dnmasq package.

Looks like this has been addressed, but possibly it is being installed to a different location?

https://bugzilla.redhat.com/show_bug.cgi?id=788485

Revision history for this message
Pádraig Brady (p-draigbrady) wrote :

This is OK in Fedora 17. Fedora 16 is lagging a little because of dnsmasq gating issues.
I'll close this here so.
Note it's nice to see the ENOENT error BTW, rather than the previous "not authorized" :)

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.