← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1289283] [NEW] Cannot boot from volume that was created from an image

 

Public bug reported:

I'm using Devstack. I discovered this using the dashboard, here's how to
reproduce on the command line.  The image is a raw Fedora 20 cloud image
(
http://download.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64
/Fedora-x86_64-20-20131211.1-sda.raw.xz ).

$ cinder create --image-id 16e4aba3-7980-4b4a-aea5-787be62b03ef 1

Then using the id of the new volume:

$ nova boot --boot-volume 2e42b0ac-5910-4e11-ab07-5968d984b364 --flavor
1 test

The instances errors, from nova show:
| fault                                | {"message": "'name'", "code": 500, "created": "2014-03-07T11:03:53Z"} |

Nova CPU logs:

2014-03-07 11:03:53.735 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is 4ea53d662ce44c7aaae28fb8feecd08e. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
2014-03-07 11:03:53.820 DEBUG nova.compute.utils [req-6e38fca5-410f-421a-87fc-b83fd3afede0 demo demo] [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] 'name' from (pid=11493) notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:335
2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] Traceback (most recent call last):
2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead]   File "/opt/stack/nova/nova/compute/manager.py", line 971, in _run_instance
2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead]     extra_usage_info = {"image_name": image_meta['name']}
2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] KeyError: 'name'
2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] 
2014-03-07 11:03:53.821 DEBUG nova.openstack.common.lockutils [req-6e38fca5-410f-421a-87fc-b83fd3afede0 demo demo] Semaphore / lock released "do_run_instance" from (pid=11493) inner /opt/stack/nova/nova/openstack/common/lockutils.py:252
2014-03-07 11:03:53.822 DEBUG oslo.messaging._drivers.amqpdriver [-] MSG_ID is fd7da43b1fcf429b9b6e7dbe964e8aba from (pid=11493) _send /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py:377
2014-03-07 11:03:53.822 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is e3df4171e97c47ce89096f0593cb02cf. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
2014-03-07 11:03:53.846 DEBUG oslo.messaging._drivers.amqpdriver [-] MSG_ID is d8f418d961fd49d092767a310df0348c from (pid=11493) _send /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py:377
2014-03-07 11:03:53.847 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is d3eebe0a77294d209d9918a4633a6fa0. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
2014-03-07 11:03:53.885 DEBUG oslo.messaging._drivers.amqpdriver [-] MSG_ID is 08a04f80a6294785947e6c07ed1b6c57 from (pid=11493) _send /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py:377
2014-03-07 11:03:53.885 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is 1f76132cc21d4d8280c45ea661b9d4fb. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
2014-03-07 11:03:53.957 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: 'name'
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     payload)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 244, in decorated_function
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     pass
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 259, in decorated_function
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 1848, in run_instance
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     do_run_instance()
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return f(*args, **kwargs)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 1847, in do_run_instance
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     legacy_bdm_in_spec)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 996, in _run_instance
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     notify("error", fault=e)  # notify that build failed
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 971, in _run_instance
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     extra_usage_info = {"image_name": image_meta['name']}
2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher KeyError: 'name'
2014-03-07 11:03:53.959 ERROR oslo.messaging._drivers.common [-] Returning exception 'name' to caller

** 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/1289283

Title:
  Cannot boot from volume that was created from an image

Status in OpenStack Compute (Nova):
  New

Bug description:
  I'm using Devstack. I discovered this using the dashboard, here's how
  to reproduce on the command line.  The image is a raw Fedora 20 cloud
  image (
  http://download.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64
  /Fedora-x86_64-20-20131211.1-sda.raw.xz ).

  $ cinder create --image-id 16e4aba3-7980-4b4a-aea5-787be62b03ef 1

  Then using the id of the new volume:

  $ nova boot --boot-volume 2e42b0ac-5910-4e11-ab07-5968d984b364
  --flavor 1 test

  The instances errors, from nova show:
  | fault                                | {"message": "'name'", "code": 500, "created": "2014-03-07T11:03:53Z"} |

  Nova CPU logs:

  2014-03-07 11:03:53.735 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is 4ea53d662ce44c7aaae28fb8feecd08e. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
  2014-03-07 11:03:53.820 DEBUG nova.compute.utils [req-6e38fca5-410f-421a-87fc-b83fd3afede0 demo demo] [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] 'name' from (pid=11493) notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:335
  2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] Traceback (most recent call last):
  2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead]   File "/opt/stack/nova/nova/compute/manager.py", line 971, in _run_instance
  2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead]     extra_usage_info = {"image_name": image_meta['name']}
  2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] KeyError: 'name'
  2014-03-07 11:03:53.820 TRACE nova.compute.utils [instance: 82f1d951-b5d0-43fa-a244-922beae98ead] 
  2014-03-07 11:03:53.821 DEBUG nova.openstack.common.lockutils [req-6e38fca5-410f-421a-87fc-b83fd3afede0 demo demo] Semaphore / lock released "do_run_instance" from (pid=11493) inner /opt/stack/nova/nova/openstack/common/lockutils.py:252
  2014-03-07 11:03:53.822 DEBUG oslo.messaging._drivers.amqpdriver [-] MSG_ID is fd7da43b1fcf429b9b6e7dbe964e8aba from (pid=11493) _send /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py:377
  2014-03-07 11:03:53.822 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is e3df4171e97c47ce89096f0593cb02cf. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
  2014-03-07 11:03:53.846 DEBUG oslo.messaging._drivers.amqpdriver [-] MSG_ID is d8f418d961fd49d092767a310df0348c from (pid=11493) _send /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py:377
  2014-03-07 11:03:53.847 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is d3eebe0a77294d209d9918a4633a6fa0. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
  2014-03-07 11:03:53.885 DEBUG oslo.messaging._drivers.amqpdriver [-] MSG_ID is 08a04f80a6294785947e6c07ed1b6c57 from (pid=11493) _send /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py:377
  2014-03-07 11:03:53.885 DEBUG oslo.messaging._drivers.amqp [-] UNIQUE_ID is 1f76132cc21d4d8280c45ea661b9d4fb. from (pid=11493) _add_unique_id /opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py:338
  2014-03-07 11:03:53.957 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: 'name'
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/oslo.messaging/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     payload)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 244, in decorated_function
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     pass
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 259, in decorated_function
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 1848, in run_instance
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     do_run_instance()
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     return f(*args, **kwargs)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 1847, in do_run_instance
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     legacy_bdm_in_spec)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 996, in _run_instance
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     notify("error", fault=e)  # notify that build failed
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 68, in __exit__
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 971, in _run_instance
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher     extra_usage_info = {"image_name": image_meta['name']}
  2014-03-07 11:03:53.957 TRACE oslo.messaging.rpc.dispatcher KeyError: 'name'
  2014-03-07 11:03:53.959 ERROR oslo.messaging._drivers.common [-] Returning exception 'name' to caller

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


Follow ups

References