New Question

Revision history [back]

click to hide/show revision 1
initial version

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

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??

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

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??