New Question
0

nova-compute not attaching VM to a Hypver-V vSwitch

asked 2015-03-27 21:16:05 +0200

pthornton gravatar image

updated 2016-11-11 22:51:42 +0200

Claudiu Belu gravatar image

I have installed nova compute stack on Windows 2012 hyper-v server and created a "switch20" during install. When I launch instances from my managment stack on Centos 7, the instance launches successfully and boots correctly. Problem is that the network shows that the cable is not connected in the VM. I have to connect the "switch20" to the instance from the Microsoft Hyper-V Management tools in order to access the network. How do I get this to happen during the launch?

This seems to be the underlying issue:

INFO neutron.plugins.hyperv.agent.hyperv_neutron_agent [req-d47b8e63-1b97-4763-81b2-697de2aead69 None] Adding port 9744688c-ad55-434d-9fc6-f4aa15d9d007
INFO neutron.plugins.hyperv.agent.hyperv_neutron_agent [req-d47b8e63-1b97-4763-81b2-697de2aead69 None] Adding port Network Adapter
INFO neutron.plugins.hyperv.agent.hyperv_neutron_agent [req-d47b8e63-1b97-4763-81b2-697de2aead69 None] Removing port 9744688c-ad55-434d-9fc6-f4aa15d9d007
ERROR neutron.plugins.hyperv.agent.hyperv_neutron_agent [req-d47b8e63-1b97-4763-81b2-697de2aead69 None] Error in agent event loop: 'NoneType' object is not iterable
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent Traceback (most recent call last):
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\age
nt\hyperv_neutron_agent.py", line 448, in daemon_loop
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent     sync = self._process_network_ports(port_info)
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\age
nt\hyperv_neutron_agent.py", line 426, in _process_network_ports
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent     resync_b = self._treat_devices_removed(port_info['removed'])
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\age
nt\hyperv_neutron_agent.py", line 417, in _treat_devices_removed
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent     self._port_unbound(device, True)
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\age
nt\hyperv_neutron_agent.py", line 310, in _port_unbound
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent     (net_uuid, map) = self._get_network_vswitch_map_by_port_id(port_id)
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent TypeError: 'NoneType' object is not iterable
TRACE neutron.plugins.hyperv.agent.hyperv_neutron_agent
INFO neutron.plugins.hyperv.agent.hyperv_neutron_agent [req-d47b8e63-1b97-4763-81b2-697de2aead69 None] Agent out of sync with plugin!
INFO neutron.plugins.hyperv.agent.hyperv_neutron_agent [req-d47b8e63-1b97-4763-81b2-697de2aead69 None] Adding port Network Adapter
INFO neutron.plugins.hyperv.agent.hyperv_neutron_agent [req-d47b8e63-1b97-4763-81b2-697de2aead69 None] Adding port 827a5f61-c8d9-4009-a413-83a634a68b58

Any help appreciated??

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-11-11 22:57:28 +0200

Claudiu Belu gravatar image

Hello,

The trace you've posted is not the cause of your problem (but the source of it has been fixed).

It seems that there is a misconfiguration in your environment. You should take a look at the Hyper-V Neutron Agent guide [1] for debugging networking issues, but my guess is that you have not configured Neutron to use the hyperv mechanism_driver. More details in the article.

[1] https://cloudbase.it/neutron-hyper-v-...

Best regards,

Claudiu Belu

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-27 21:16:05 +0200

Seen: 825 times

Last updated: Nov 11 '16