Ask Your Question
0

Unable to enable dhcp for network id error

asked 2014-05-20 04:59:00 -0600

San gravatar image

updated 2014-05-20 05:46:15 -0600

I have configured 3 node openstack icehouse on Ubunto 14.04, one controller node, one network node and one compute node. I am getting "Unable to enable dhcp error" by dhcp agent. Can some help me to resolve this issue.

---------- config details -------------------

/etc/neutron/dhcp_agent.ini :

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
use_namespaces = True
verbose=True

Not able to create VM failing with error.

{"message": "Unexpected vif_type=binding_failed", "code": 500, "details": "  File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 296, in decorated_function |
|                                      |     return function(self, context, *args, **kwargs)                                                                                                                             |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2075, in run_instance                                                                                 |
|                                      |     do_run_instance()                                                                                                                                                           |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py\", line 249, in inner                                                                              |
|                                      |     return f(*args, **kwargs)                                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2074, in do_run_instance                                                                              |
|                                      |     legacy_bdm_in_spec)                                                                                                                                                         |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 1207, in _run_instance                                                                                |
|                                      |     notify(\"error\", fault=e)  # notify that build failed                                                                                                                      |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 1191, in _run_instance                                                                                |
|                                      |     instance, image_meta, legacy_bdm_in_spec)                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 1355, in _build_instance                                                                              |
|                                      |     filter_properties, bdms, legacy_bdm_in_spec)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 1401, in _reschedule_or_error                                                                         |
|                                      |     self._log_original_error(exc_info, instance_uuid)                                                                                                                           |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 1396, in _reschedule_or_error                                                                         |
|                                      |     bdms, requested_networks)                                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2125, in _shutdown_instance                                                                           |
|                                      |     requested_networks)                                                                                                                                                         |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2115, in _shutdown_instance                                                                           |
|                                      |     block_device_info)                                                                                                                                                          |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py\", line 953, in destroy                                                                                   |
|                                      |     destroy_disks)                                                                                                                                                              |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py\", line 989, in cleanup                                                                                   |
|                                      |     self.unplug_vifs(instance, network_info)                                                                                                                                    |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py\", line 860, in unplug_vifs                                                                               |
|                                      |     self.vif_driver.unplug(instance, vif)                                                                                                                                       |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py\", line 798, in unplug                                                                                       |
|                                      |     _(\"Unexpected vif_type=%s\") % vif_type)                                                                                                                                   |
|                                      | ", "created": "2014-05-20T09:49:40Z"}                                

root@controller:~# neutron agent-list
+--------------------------------------+--------------------+---------+-------+----------------+
| id                                   | agent_type         | host    | alive | admin_state_up |
+--------------------------------------+--------------------+---------+-------+----------------+
| 172d4b7f-7d1b-4767-aa59-a3e1d145e1b1 | DHCP agent         | network | :-)   | True           |
| 1e4835e4-2c6e-402a-ab2c-91240e163e90 | Open vSwitch agent | network | :-)   | True           |
| 43dc80f7-aa78-438b-bbd1-0bd2c6466a9d | Metadata agent     | network | :-)   | True           |
| 6fc23e43-2ef7-405d-9af6-cbc7efd0348e | L3 agent           | network | :-)   | True           |
+--------------------------------------+--------------------+---------+-------+----------------+

log entry in /var/log/neutron/dhcp-agent.log

Stderr: '' execute /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:74
2014-05-20 04:14:34.655 2194 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for 31dbe4d-0269-42ae-a08e-3112b0401acd.
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2014-05-20 04:14:34 ...
(more)
edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-20 07:16:30 -0600

SGPJ gravatar image

Please use this document for troubleshooting: http://docs.openstack.org/trunk/opens...

edit flag offensive delete link more

Comments

Thanks for the response. I am new to opnestack and networking concepts. root@compute1:~# ovs-vsctl show a46caeb6-c737-4ad5-8f7a-0c687e11e90b Bridge br-int Port br-int Interface br-int type: internal ovs_version: "2.0.1" Do I need to do any additional configurations ?

San gravatar imageSan ( 2014-05-21 01:40:33 -0600 )edit
0

answered 2014-05-21 06:07:40 -0600

San gravatar image

Thank you all. The issue got resolved after changing the file /var/lib/neutron/dhcp/<net-id> owner and group to neutron from root.

edit flag offensive delete link more
0

answered 2016-12-16 06:45:37 -0600

katbeaulieu gravatar image

updated 2016-12-16 06:46:01 -0600

Hi San, Do you know why the permissions on that directory was a problem? We are experiencing a similar problem and would potentially like a different solution than changing the permissions each time a new tenant network is created.

edit flag offensive delete link more
0

answered 2014-05-20 05:47:36 -0600

huwei-xtu gravatar image

From this error information: " [Errno 13] Permission denied: '/var/lib/neutron/dhcp/31dbd35d-0269-42ae-a08e-3112b0401acd/tmpINZEM5'", it seems that it was result by file or directory permission issues. Can you check that ?

edit flag offensive delete link more

Comments

Thank you for response. There is no permission issue. root@network:~# ls -lrt /var/lib/neutron/dhcp/ total 4 drwxr-xr-x 2 root root 4096 May 20 00:10 31dbd35d-0269-42ae-a08e-3112b0401acd root@network:~# touch /var/lib/neutron/dhcp/31dbd35d-0269-42ae-a08e-3112b0401acd /tmpINZEM5

San gravatar imageSan ( 2014-05-20 23:56:38 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-20 04:59:00 -0600

Seen: 2,705 times

Last updated: Dec 16 '16