Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to enable dhcp for network id error

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.655 2194 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 126, in call_driver 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent getattr(driver, action)(**action_kwargs) 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 170, in enable 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent self.interface_name = interface_name 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 259, in interface_name 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent utils.replace_file(interface_file_path, value) 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 107, in replace_file 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent tmp_file = tempfile.NamedTemporaryFile('w+', dir=base_dir, delete=False) 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/tempfile.py", line 462, in NamedTemporaryFile 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent fd = _os.open(file, flags, 0600) 2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent OSError: [Errno 13] Permission denied: '/var/lib/neutron/dhcp/31dbd35d-0269-42ae-a08e-3112b0401acd/tmpINZEM5'

Unable to enable dhcp for network id error

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

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) *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) 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.655 2194 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 126, in call_driver
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 170, in enable
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent     self.interface_name = interface_name
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 259, in interface_name
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent     utils.replace_file(interface_file_path, value)
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 107, in replace_file
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent     tmp_file = tempfile.NamedTemporaryFile('w+', dir=base_dir, delete=False)
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/tempfile.py", line 462, in NamedTemporaryFile
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent     (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent     fd = _os.open(file, flags, 0600)
2014-05-20 04:14:34.655 2194 TRACE neutron.agent.dhcp_agent OSError: [Errno 13] Permission denied: '/var/lib/neutron/dhcp/31dbd35d-0269-42ae-a08e-3112b0401acd/tmpINZEM5'

'/var/lib/neutron/dhcp/31dbd35d-0269-42ae-a08e-3112b0401acd/tmpINZEM5'