EC2 API fails to create a snapshot of a volume backed instance

Bug #1439820 reported by Feodor Tersin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Feodor Tersin

Bug Description

EC2 API fails to create a snapshot of a volume backed instance

It's reproduced with current (~Kilo-3) devstack.

Steps to reproduce:

$ nova boot inst --block-device id=<cirros>,source=image,dest=volume,bootindex=0,size=1--flavor m1.nano
$ euca-create-image <ec2-instance-id> -n volback-ec2

Returns:
euca-create-image: error (AttributeError): Unknown error occurred.

n-api logs:
Unexpected AttributeError raised: 'NoneType' object has no attribute 'split'
EC2 error response: AttributeError: Unknown error occurred. ec2_error_response /opt/stack/nova/nova/api/ec2/faults.py:29
0.748414s 169.254.5.50 POST / CloudController:CreateImage 500 [euca2ools/3.0.1 (CPython 2.7.6; Linux 3.13.0-48-generic; x86_64) requestbuilder/0.1.0-beta1 requests/2.2.1] application/x-www-form-urlencoded text/xml

EC2 API layer tries to construct metadata for a snapshot from an instance image, but it is None. EC2 API doesn't expect this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/170243

Changed in nova:
assignee: nobody → Feodor Tersin (ftersin)
status: New → In Progress
Changed in nova:
importance: Undecided → Low
Changed in nova:
assignee: Feodor Tersin (ftersin) → Michael Still (mikalstill)
Changed in nova:
assignee: Michael Still (mikalstill) → Feodor Tersin (ftersin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/198958
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8c93400b5ba218a15757efd852226413923837a0
Submitter: Jenkins
Branch: master

commit 8c93400b5ba218a15757efd852226413923837a0
Author: Feodor Tersin <email address hidden>
Date: Mon Jul 6 21:29:33 2015 +0300

    Simplify interface for creating snapshot of volume-backed instance

    Initialize new image metadata inside the creation method instead of
    outside it. This reduce code duplication.

    Also this fixes snapshot creation in EC2, since it had bugs in image
    metadata initialization.

    Closes-Bug: #1439820
    Change-Id: If3efa2a274517a9ad51d5dfff0134ae9e8e702a4

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-3 → 12.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.