← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1714192] Re: can not create instance when using vmware nova driver

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1714192

Title:
  can not create instance when using vmware nova driver

Status in OpenStack Compute (nova):
  Expired

Bug description:
  Hello,

  I am on a testing of interoperation between vCenter 6.5U1 and OpenStack Newton. I get the Nova driver from here: 
  https://github.com/openstack/nova/tree/stable/newton/nova/virt/vmwareapi
  I download the vmdk file from here:
  http://partnerweb.vmware.com/programs/vmdkimage/cirros-0.3.2-i386-disk.vmdk

  I am getting the follow error when I try to create a instance from
  vmdk.

  --------------------
  2017-08-31 11:06:57.532 10238 DEBUG oslo_vmware.exceptions [-] Fault PlatformConfigFault not matched. get_fault_class /usr/local/lib/python2.7/dist-packages/oslo_vmware/exceptions.py:295
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall [-] in fixed duration looping call
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall Traceback (most recent call last):
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall   File "/usr/local/lib/python2.7/dist-packages/oslo_vmware/common/loopingcall.py", line 75, in _inner
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall     self.f(*self.args, **self.kw)
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall   File "/usr/local/lib/python2.7/dist-packages/oslo_vmware/api.py", line 452, in _poll_task
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall     raise task_ex
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall VimFaultException: An error occurred during host configuration.
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall Faults: ['PlatformConfigFault']
  2017-08-31 11:06:57.533 10238 ERROR oslo_vmware.common.loopingcall 
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [req-883b383d-7af4-419e-b7df-70c39f50c178 admin alt_demo] [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0] Instance failed to spawn
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0] Traceback (most recent call last):
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/compute/manager.py", line 2083, in _build_resources
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     yield resources
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/compute/manager.py", line 1924, in _build_and_run_instance
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     block_device_info=block_device_info)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 316, in spawn
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     admin_password, network_info, block_device_info)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 739, in spawn
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     metadata)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 306, in build_virtual_machine
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     config_spec, self._root_resource_pool)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/virt/vmwareapi/vm_util.py", line 1332, in create_vm
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     {'ostype': config_spec.guestId})
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     self.force_reraise()
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     six.reraise(self.type_, self.value, self.tb)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/virt/vmwareapi/vm_util.py", line 1317, in create_vm
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     task_info = session._wait_for_task(vm_create_task)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 539, in _wait_for_task
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     return self.wait_for_task(task_ref)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/usr/local/lib/python2.7/dist-packages/oslo_vmware/api.py", line 396, in wait_for_task
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     return evt.wait()
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     return hubs.get_hub().switch()
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 294, in switch
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     return self.greenlet.switch()
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/usr/local/lib/python2.7/dist-packages/oslo_vmware/common/loopingcall.py", line 75, in _inner
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     self.f(*self.args, **self.kw)
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]   File "/usr/local/lib/python2.7/dist-packages/oslo_vmware/api.py", line 452, in _poll_task
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0]     raise task_ex
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0] VimFaultException: An error occurred during host configuration.
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0] Faults: ['PlatformConfigFault']
  2017-08-31 11:06:57.534 10238 ERROR nova.compute.manager [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0] 
  2017-08-31 11:06:57.538 10238 INFO nova.compute.manager [req-883b383d-7af4-419e-b7df-70c39f50c178 admin alt_demo] [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0] Terminating instance
  2017-08-31 11:06:57.540 10238 DEBUG oslo_messaging._drivers.amqpdriver [req-883b383d-7af4-419e-b7df-70c39f50c178 admin alt_demo] CAST unique_id: f3633ba6c7974346866492e3e3fc644b NOTIFY exchange 'nova' topic 'notifications.info' _send /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:552
  2017-08-31 11:06:57.542 10238 DEBUG nova.compute.manager [req-883b383d-7af4-419e-b7df-70c39f50c178 admin alt_demo] [instance: 7f7484b4-9438-4659-b2af-d08ce0d450f0] Start destroying the instance on the hypervisor. _shutdown_instance /opt/stack/nova/nova/compute/manager.py:2197
  2017-08-31 11:06:57.543 10238 DEBUG oslo_vmware.service [-] Invoking SearchIndex.FindAllByUuid with opID=oslo.vmware-dd5a9c3f-befb-42b9-96a3-c3b2fa19fe00 request_handler /usr/local/lib/python2.7/dist-packages/oslo_vmware/service.py:354
  /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
    InsecureRequestWarning)
  --------------------

  
  I setup the openstack by using DevStack
  here is my nova.conf
  ------------
  [DEFAULT]
  vif_plugging_timeout = 300
  vif_plugging_is_fatal = True
  firewall_driver = nova.virt.firewall.NoopFirewallDriver
  use_neutron = True
  compute_driver = vmwareapi.VMwareVCDriver
  .....
  .....
  [vmware]
  insecure = true
  datastore_regex = stack_0
  cluster_name = cluster
  host_password = ******
  host_username = administrator@vsphere.local
  host_ip = XX.XX.XX.XX
  ----------------

  I create the instance by using Dashboard interface.

  
  yours,
  Kyou

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1714192/+subscriptions