VM is unable to get network in Openstack with neutron Hyper-V plugin

asked 2014-09-11 05:18:07 -0500

divya_julakanti gravatar image

updated 2014-09-12 18:29:06 -0500

smaffulli gravatar image

I have an openstack controller installed using COI in which all openstack services are running except nova-compute. Used Cloudbase openstack compute installer for setting up hyper-v compute node in which nova-compute is running. Able to boot the instance but dhcp agent is unable to assign ip to the instance.

/etc/neutron/neutron.conf has:

**core_plugin = neutron.plugins.hyperv.hyperv_neutron_plugin.HyperVNeutronPlugin**

/etc/neutron/dhcp_agent.ini

**interface_driver =neutron.agent.linux.interface.OVSInterfaceDriver**

neutron_hyperv_agent.conf:

**[AGENT]  
polling_interval = 2  
physical_network_vswitch_mappings = *:external  
local_network_vswitch = private  
enable_metrics_collection=false**

Error in the /var/log/neutron/dhcp-agent.log

2014-09-11 14:09:03.407 22809 INFO neutron.agent.dhcp_agent [-] Synchronizing state complete
2014-09-11 14:09:33.409 22809 INFO neutron.agent.dhcp_agent [-] Synchronizing state
2014-09-11 14:09:33.799 22809 ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp for db68640c-3367-49b0-88f1-1e91ffcf611e.
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/dhcp_agent.py", line 127, in call_driver
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent     getattr(driver, action)(**action_kwargs)
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 166, in enable
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent     reuse_existing=True)
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/dhcp.py", line 832, in setup
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent     namespace=network.namespace)
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 169, in plug
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent     self.check_bridge_exists(bridge)
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.py", line 106, in check_bridge_exists
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent     raise exceptions.BridgeDoesNotExist(bridge=bridge)
2014-09-11 14:09:33.799 22809 TRACE neutron.agent.dhcp_agent BridgeDoesNotExist: Bridge br-int does not exist.

There seems to be no bridges concept in hyper-v, we have vswitch and portgroup networking stack. Is there any interface driver which is compatible with hyper-v plugin? Anyone please suggest where can I find detailed networking guide for hyper-v plugin.

edit retag flag offensive close merge delete