Ask Your Question
0

Launched hyper-v instances not connecting to switch

asked 2015-03-26 14:40:03 -0500

saleen1989 gravatar image

updated 2015-03-27 14:04:22 -0500

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 in next steps appreciated??

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-03-27 10:50:19 -0500

alexpilotti gravatar image

Are you assigning a network to your instances when booting them?

The neutron-hyperv-agent service is responsible for attaching instances to virtual switches, so the related log and configuration might help troubleshooting your issue.

edit flag offensive delete link more

Comments

No errors in the neutron_hyperv_agent log, really not much at all with verbose on.
One warning: Driver configuration doesn't match with enable_security_group

[SECURITYGROUP]
firewall_driver=neutron.plugins.hyperv.agent.security_groups_driver.HyperVSecurityGroupsDriver

Suggestions?

saleen1989 gravatar imagesaleen1989 ( 2015-03-27 13:33:01 -0500 )edit

If I set enable_security_group=true then I get error from hyperv_neutron_agent: Agent out of sync with plugin!

saleen1989 gravatar imagesaleen1989 ( 2015-03-27 13:49:01 -0500 )edit

Dear Saleen1989,

Do you solve your OpVswitch Problem ?

Best Regard,

smago34 gravatar imagesmago34 ( 2015-05-06 12:00:22 -0500 )edit
0

answered 2015-05-06 11:59:25 -0500

Dear Saleen1989,

Do you solve your problem with OpenVSwtich ?

Best Regard,

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-26 14:40:03 -0500

Seen: 442 times

Last updated: Mar 27 '15