← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1481220] [NEW] Cannot boot from volume-backed instance snapshot

 

Public bug reported:

Since that https://review.openstack.org/#/c/188789/ is merged, Nova
fails to boot an instance from a volume-backed instance snapshot.

Steps to reproduce against DevStack:
1 boot an instance from a volume:
nova boot inst --block-device source=image,dest=volume,size=1,bootindex=0,id=<xxx> --flavor m1.nano

2 create a volume-backed snapshot
nova image-create inst volback

3 boot a new instance from the snapshot
nova boot inst1 --image volback --flavor m1.nano

Expected result: the new instance attributes.
Actual result:
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500)

n-api log:
   File "/opt/stack/nova/nova/compute/api.py", line 1488, in create
     check_server_group_quota=check_server_group_quota)
   File "/opt/stack/nova/nova/compute/api.py", line 1097, in _create_instance
     auto_disk_config, reservation_id, max_count)
   File "/opt/stack/nova/nova/compute/api.py", line 854, in _validate_and_build_base_options
     image_meta = objects.ImageMeta.from_dict(boot_meta)
   File "/opt/stack/nova/nova/objects/image_meta.py", line 91, in from_dict
     return cls(**image_meta)
   File "/opt/stack/nova/nova/objects/base.py", line 188, in __init__
     setattr(self, key, kwargs[key])
   File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 70, in setter
     field_value = field.coerce(self, name, value)
   File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 184, in coerce
     return self._null(obj, attr)
   File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 162, in _null
     raise ValueError(_("Field `%s' cannot be None") % attr)
 ValueError: Field `container_format' cannot be None

** Affects: nova
     Importance: Undecided
     Assignee: Feodor Tersin (ftersin)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Feodor Tersin (ftersin)

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

Title:
  Cannot boot from volume-backed instance snapshot

Status in OpenStack Compute (nova):
  New

Bug description:
  Since that https://review.openstack.org/#/c/188789/ is merged, Nova
  fails to boot an instance from a volume-backed instance snapshot.

  Steps to reproduce against DevStack:
  1 boot an instance from a volume:
  nova boot inst --block-device source=image,dest=volume,size=1,bootindex=0,id=<xxx> --flavor m1.nano

  2 create a volume-backed snapshot
  nova image-create inst volback

  3 boot a new instance from the snapshot
  nova boot inst1 --image volback --flavor m1.nano

  Expected result: the new instance attributes.
  Actual result:
  ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500)

  n-api log:
     File "/opt/stack/nova/nova/compute/api.py", line 1488, in create
       check_server_group_quota=check_server_group_quota)
     File "/opt/stack/nova/nova/compute/api.py", line 1097, in _create_instance
       auto_disk_config, reservation_id, max_count)
     File "/opt/stack/nova/nova/compute/api.py", line 854, in _validate_and_build_base_options
       image_meta = objects.ImageMeta.from_dict(boot_meta)
     File "/opt/stack/nova/nova/objects/image_meta.py", line 91, in from_dict
       return cls(**image_meta)
     File "/opt/stack/nova/nova/objects/base.py", line 188, in __init__
       setattr(self, key, kwargs[key])
     File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 70, in setter
       field_value = field.coerce(self, name, value)
     File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 184, in coerce
       return self._null(obj, attr)
     File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/fields.py", line 162, in _null
       raise ValueError(_("Field `%s' cannot be None") % attr)
   ValueError: Field `container_format' cannot be None

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


Follow ups