Ask Your Question
0

VM creation failure :NovaException: Unexpected vif_type=binding_failed

asked 2015-12-05 05:26:48 -0500

uts9 gravatar image

updated 2015-12-05 13:13:21 -0500

VM creation is failing on my OpenStack Kilo setup on Centos7 . Below is the error message. I have also posted nova.conf, neutron.conf , ml2_conf.ini and ovs_neutron_plugin.ini configuration files.

Any help would be greatly appreciated.

UPDATE1 - Issue started after setting host parameter in /etc/nova/nova.conf. If I comment this parameter I am able to launch a VM. Is there any way to set the hostname withut breaking the setup?

2015-12-04 15:42:02.210 9571 INFO nova.compute.resource_tracker [req-9152f41d-f4fc-4901-a420-013df7f1e656 - - - - -] Compute_service record updated for hpgen6:localhost.localdomain
2015-12-04 15:42:04.768 9571 ERROR nova.compute.manager [req-491a677b-118b-456d-8089-4b448420b24a b5b27e2547cb4b15968788d0416286f2 84433161b0254f5bb712d9eed6c37992 - - -] [instance: 81959887-811b-46d7-88ff-728c7be5241a] Instance failed to spawn
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a] Traceback (most recent call last):
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2473, in _build_resources
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]     yield resources
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2345, in _build_and_run_instance
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]     block_device_info=block_device_info)
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2388, in spawn
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]     write_to_disk=True)
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4189, in _get_guest_xml
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]     context)
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4060, in _get_guest_config
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]     flavor, virt_type)
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/vif.py", line 374, in get_config
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]     _("Unexpected vif_type=%s") % vif_type)
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a] NovaException: Unexpected vif_type=binding_failed
2015-12-04 15:42:04.768 9571 TRACE nova.compute.manager [instance: 81959887-811b-46d7-88ff-728c7be5241a]

nova.conf

[DEFAULT]
notification_driver=ceilometer.compute.nova_notifier
notification_driver=nova.openstack.common.notifier.rpc_notifier
notification_topics=notifications
core_plugin=ml2
rpc_backend=rabbit
network_manager = nova.network.manager.FlatDHCPManager
internal_service_availability_zone=internal
default_availability_zone=nova
my_ip=10.0.0.4
host=hpgen6
notify_api_faults=False
state_path=/var/lib/nova
report_interval=10
enabled_apis=ec2,osapi_compute,metadata
ec2_listen=0.0.0.0
ec2_workers=24
osapi_compute_listen=0.0.0.0
osapi_compute_workers=24
metadata_listen=0.0.0.0
metadata_workers=24
compute_manager=nova.compute.manager.ComputeManager
service_down_time=60
rootwrap_config=/etc/nova/rootwrap.conf
auth_strategy=keystone
use_forwarded_for=False
novncproxy_host=0.0.0.0
novncproxy_port=6080
heal_instance_info_cache_interval=60
reserved_host_memory_mb=512
network_api_class=nova.network.neutronv2 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-12-24 07:28:28 -0500

fnawaz gravatar image

to set the hostname do the following edit /etc/hosts and add the line below your_ip hostname_desired edit /etc/hostname file and put your desired hostname there .. done..

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-12-05 05:26:48 -0500

Seen: 258 times

Last updated: Dec 24 '15