Openstack + VMware stange error

asked 2015-05-09 21:24:02 -0600

Satish Patel gravatar image

I have integrate VMware (vCenter 6.x) with openstack and they are communicating correctly, If i create any VM manaully on VMware i can see it on openstack GUI interface. But If i launch any instance from Openstack then i can see it start created VM on VMware but it creates and delete 3 time and if i check Openstack GUI it say's we have tried 3 time and then it shows error, but at same time if i check on VMware VM is running and i can see OS also booted. but strange if i reboot that VM on VMware then it removed all file and say no VMDK found. look like openstack doesn't correctly comminicating to VMware, following are nova.logs

Notes: we are using netron networking, If i launch VM on KVM it works!! but only issue with VMware. what i am missing?

[DEFAULT] compute_driver=vmwareapi.VMwareVCDriver connection_type = vmwareapi [vmware] host_ip = lnx host_username = user@IMP.local host_password = XXXXXXXXXXXXXX cluster_name = IMP-VM datastore_regex = "LNX-*"

Image created

glance image-create --name "cirros-i386" --disk-format vmdk --container-format bare --property vmware_disktype="sparse" is_public=true < cirros-0.3.2-i386-disk.vmdk

Blockquote

2015-05-09 20:48:48.625 29674 INFO nova.scheduler.filter_scheduler [req-1e440c82-21c4-4010-9d99-b2623c7547a1 b872b754f8774f64b3344e1ef9c245db 49de35ef22bb4bb08355fb2bb163a588] Attempting to build 1 instance(s) uuids: [u'060dba43-3065-4927-bf1f-50abdc72da7d'] 2015-05-09 20:48:48.695 29674 INFO nova.scheduler.filter_scheduler [req-1e440c82-21c4-4010-9d99-b2623c7547a1 b872b754f8774f64b3344e1ef9c245db 49de35ef22bb4bb08355fb2bb163a588] Choosing host WeighedHost [host: lnx01, weight: 1.0] for instance 060dba43-3065-4927-bf1f-50abdc72da7d 2015-05-09 20:49:48.299 29674 INFO nova.scheduler.filter_scheduler [req-1e440c82-21c4-4010-9d99-b2623c7547a1 b872b754f8774f64b3344e1ef9c245db 49de35ef22bb4bb08355fb2bb163a588] Attempting to build 1 instance(s) uuids: [u'060dba43-3065-4927-bf1f-50abdc72da7d'] 2015-05-09 20:49:48.302 29674 ERROR nova.scheduler.filter_scheduler [req-1e440c82-21c4-4010-9d99-b2623c7547a1 b872b754f8774f64b3344e1ef9c245db 49de35ef22bb4bb08355fb2bb163a588] [instance: 060dba43-3065-4927-bf1f-50abdc72da7d] Error from last host: lnx01 (node domain-c18(IMP-VM)): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1340, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 401, in decorated_function\n return function(self, context, *args, **kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1779, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1765, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 854, in spawn\n admin_password, network_info, block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py", line 757, in spawn\n _power_on_vm()\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py", line 540, in _power_on_vm\n self._session._wait_for_task(power_on_task)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 1220, in _wait_for_task\n ret_val = done.wait()\n', u' File "/usr/lib/python2.6/site-packages/eventlet/event.py", line 116, in wait\n return hubs.get_hub().switch()\n ... (more)

edit retag flag offensive close merge delete