← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1712281] [NEW] Attach volume failed for vmware driver

 

Public bug reported:

VMware nova CI always failed when attach volume.
The error logs are shown as following.

2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [req-cb1de0dd-4108-4217-ba74-c217bb17cd6f tempest-ServersTestBootFromVolume-634134128 tempest-ServersTestBootFromVolume-634134128] [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707] Instance failed to spawn: AttributeError: 'int' object has no attribute 'lower'
 Traceback (most recent call last):
  File "/opt/stack/nova/nova/compute/manager.py", line 2139, in _build_resources
     yield resources
  File "/opt/stack/nova/nova/compute/manager.py", line 1954, in _build_and_run_instance
    block_device_info=block_device_info)
   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 323, in spawn
     admin_password, network_info, block_device_info)
   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 790, in spawn
     instance, vi.datastore.ref, adapter_type)
   File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 604, in attach_root_volume
     self.attach_volume(connection_info, instance, adapter_type)
   File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 381, in attach_volume
     self._attach_volume_vmdk(connection_info, instance, adapter_type)
   File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 335, in _attach_volume_vmdk
     if state.lower() != 'poweredoff':
 AttributeError: 'int' object has no attribute 'lower'

** Affects: nova
     Importance: Undecided
     Assignee: KaiLi (damonl1)
         Status: In Progress

** Description changed:

  VMware nova CI always failed when attach volume.
  The error logs are shown as following.
  
  2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [req-cb1de0dd-4108-4217-ba74-c217bb17cd6f tempest-ServersTestBootFromVolume-634134128 tempest-ServersTestBootFromVolume-634134128] [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707] Instance failed to spawn: AttributeError: 'int' object has no attribute 'lower'
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707] Traceback (most recent call last):
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]   File "/opt/stack/nova/nova/compute/manager.py", line 2139, in _build_resources
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]     yield resources
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]   File "/opt/stack/nova/nova/compute/manager.py", line 1954, in _build_and_run_instance
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]     block_device_info=block_device_info)
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 323, in spawn
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]     admin_password, network_info, block_device_info)
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 790, in spawn
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]     instance, vi.datastore.ref, adapter_type)
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]   File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 604, in attach_root_volume
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]     self.attach_volume(connection_info, instance, adapter_type)
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]   File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 381, in attach_volume
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]     self._attach_volume_vmdk(connection_info, instance, adapter_type)
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]   File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 335, in _attach_volume_vmdk
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]     if state.lower() != 'poweredoff':
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707] AttributeError: 'int' object has no attribute 'lower'
- 2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707]
+  Traceback (most recent call last):
+   File "/opt/stack/nova/nova/compute/manager.py", line 2139, in _build_resources
+      yield resources
+   File "/opt/stack/nova/nova/compute/manager.py", line 1954, in _build_and_run_instance
+     block_device_info=block_device_info)
+    File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 323, in spawn
+      admin_password, network_info, block_device_info)
+    File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 790, in spawn
+      instance, vi.datastore.ref, adapter_type)
+    File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 604, in attach_root_volume
+      self.attach_volume(connection_info, instance, adapter_type)
+    File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 381, in attach_volume
+      self._attach_volume_vmdk(connection_info, instance, adapter_type)
+    File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 335, in _attach_volume_vmdk
+      if state.lower() != 'poweredoff':
+  AttributeError: 'int' object has no attribute 'lower'

-- 
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/1712281

Title:
  Attach volume failed for vmware driver

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  VMware nova CI always failed when attach volume.
  The error logs are shown as following.

  2017-08-21 23:41:08.001 4576 ERROR nova.compute.manager [req-cb1de0dd-4108-4217-ba74-c217bb17cd6f tempest-ServersTestBootFromVolume-634134128 tempest-ServersTestBootFromVolume-634134128] [instance: 980f0c9e-30d3-4ae5-ae83-e6b8e17cb707] Instance failed to spawn: AttributeError: 'int' object has no attribute 'lower'
   Traceback (most recent call last):
    File "/opt/stack/nova/nova/compute/manager.py", line 2139, in _build_resources
       yield resources
    File "/opt/stack/nova/nova/compute/manager.py", line 1954, in _build_and_run_instance
      block_device_info=block_device_info)
     File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 323, in spawn
       admin_password, network_info, block_device_info)
     File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 790, in spawn
       instance, vi.datastore.ref, adapter_type)
     File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 604, in attach_root_volume
       self.attach_volume(connection_info, instance, adapter_type)
     File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 381, in attach_volume
       self._attach_volume_vmdk(connection_info, instance, adapter_type)
     File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 335, in _attach_volume_vmdk
       if state.lower() != 'poweredoff':
   AttributeError: 'int' object has no attribute 'lower'

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


Follow ups