← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1680254] [NEW] VMware: Failed at boot instance from volume

 

Public bug reported:

Instance is failing with booting from volume

 [req-e1b1ac9c-3394-44c6-8453-b05f41f2aa16 admin admin]  Instance failed to spawn
  Traceback (most recent call last):
    File "/opt/stack/nova/nova/compute/manager.py", line 2120, in _build_resources
      yield resources
    File "/opt/stack/nova/nova/compute/manager.py", line 1925, in _build_and_run_instance
      block_device_info=block_device_info)
    File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 324, in spawn
      admin_password, network_info, block_device_info)
    File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 791, in spawn
      instance, vi.datastore.ref, adapter_type)
    File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 606, in attach_root_volume
      self.attach_volume(connection_info, instance, adapter_type)
    File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 383, in attach_volume
      self._attach_volume_vmdk(connection_info, instance, adapter_type)
    File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 337, in _attach_volume_vmdk
      if state.lower() != 'poweredoff':
  AttributeError: 'int' object has no attribute 'lower'

Because in nova/compute/power_state.py, all states are in index, so
state should be int not str. So the driver code need to be updated
accordingly.

Command to reproduce in devstack(all repos are in master level):
nova boot --nic net-id=<net-id> --flavor <flavor-id> --block-device source=image,id=<image-id>,dest=volume,size=2,shutdown=preserve,bootindex=0 mystanceFromVolume1

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  VMware: Failed at boot instance from volume

Status in OpenStack Compute (nova):
  New

Bug description:
  Instance is failing with booting from volume

   [req-e1b1ac9c-3394-44c6-8453-b05f41f2aa16 admin admin]  Instance failed to spawn
    Traceback (most recent call last):
      File "/opt/stack/nova/nova/compute/manager.py", line 2120, in _build_resources
        yield resources
      File "/opt/stack/nova/nova/compute/manager.py", line 1925, in _build_and_run_instance
        block_device_info=block_device_info)
      File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 324, in spawn
        admin_password, network_info, block_device_info)
      File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 791, in spawn
        instance, vi.datastore.ref, adapter_type)
      File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 606, in attach_root_volume
        self.attach_volume(connection_info, instance, adapter_type)
      File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 383, in attach_volume
        self._attach_volume_vmdk(connection_info, instance, adapter_type)
      File "/opt/stack/nova/nova/virt/vmwareapi/volumeops.py", line 337, in _attach_volume_vmdk
        if state.lower() != 'poweredoff':
    AttributeError: 'int' object has no attribute 'lower'

  Because in nova/compute/power_state.py, all states are in index, so
  state should be int not str. So the driver code need to be updated
  accordingly.

  Command to reproduce in devstack(all repos are in master level):
  nova boot --nic net-id=<net-id> --flavor <flavor-id> --block-device source=image,id=<image-id>,dest=volume,size=2,shutdown=preserve,bootindex=0 mystanceFromVolume1

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


Follow ups