Ask Your Question
0

While spawning the instance in Openstack with VMware getting error in logs in mentions InvalidInput: Invalid input received: vif type bridge not supported

asked 2017-02-14 03:44:18 -0500

jarvis@openstack gravatar image

updated 2017-02-14 03:57:06 -0500

nova-compute log is:

2017-02-14 12:16:41.404 1791 INFO nova.compute.claims [req-56c73e6d-9a6e-440b-9c62-0dd2519e044d d9333b2a461b4d379ef68edd5163505f 33a8a2f4773b4aa5b777e93ea24f0d5e - - -] [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f] Claim successful
2017-02-14 12:16:44.002 1791 INFO os_vif [req-56c73e6d-9a6e-440b-9c62-0dd2519e044d d9333b2a461b4d379ef68edd5163505f 33a8a2f4773b4aa5b777e93ea24f0d5e - - -] Loaded VIF plugin class '<class 'vif_plug_ovs.ovs.OvsPlugin'>' with name 'ovs'
2017-02-14 12:16:44.004 1791 INFO os_vif [req-56c73e6d-9a6e-440b-9c62-0dd2519e044d d9333b2a461b4d379ef68edd5163505f 33a8a2f4773b4aa5b777e93ea24f0d5e - - -] Loaded VIF plugin class '<class 'vif_plug_linux_bridge.linux_bridge.LinuxBridgePlugin'>' with name 'linux_bridge'
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [req-56c73e6d-9a6e-440b-9c62-0dd2519e044d d9333b2a461b4d379ef68edd5163505f 33a8a2f4773b4aa5b777e93ea24f0d5e - - -] [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f] Instance failed to spawn
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f] Traceback (most recent call last):
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2078, in _build_resources
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     yield resources
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1920, in _build_and_run_instance
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     block_device_info=block_device_info)
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/driver.py", line 316, in spawn
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     admin_password, network_info, block_device_info)
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vmops.py", line 739, in spawn
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     metadata)
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vmops.py", line 281, in build_virtual_machine
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     network_info)
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vif.py", line 178, in get_vif_info
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     is_neutron, vif))
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vif.py", line 164, in get_vif_dict
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     ref = get_network_ref(session, cluster, vif, is_neutron)
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vif.py", line 153, in get_network_ref
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     network_ref = _get_neutron_network(session, cluster, vif)
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]   File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vif.py", line 147, in _get_neutron_network
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f]     raise exception.InvalidInput(reason=reason)
2017-02-14 12:16:46.124 1791 ERROR nova.compute.manager [instance: 219ac8ab-9454-44db-ba67-ca6832d6f83f] **InvalidInput: Invalid input received: vif type bridge not supported**


please help providing ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-02-14 09:32:11 -0500

Hi, I just went through the same with Newton. Thing is, the VMWare API code has changed after Liberty and it's allowing only OVS or DVS as VIF types, so I guess you need to use one of those as mechanism drivers.

Compare Liberty code (get_neutron_network function): https://github.com/openstack/nova/blo... With Newton's: https://github.com/openstack/nova/blo...

Anyway, with Neutron and linux bridges, you could still hack some of the Liberty code back. I made a simple one which works fine for testing, documented here: https://ask.openstack.org/en/question...

edit flag offensive delete link more

Comments

Thanks gianpietro the liberty code changes made it worked.

jarvis@openstack gravatar imagejarvis@openstack ( 2017-04-19 00:25:07 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-14 03:44:18 -0500

Seen: 594 times

Last updated: Feb 14 '17