Invalid error message for snapshot creation in EC2 layer

Bug #1325079 reported by Feodor Tersin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Low
Unassigned
ec2-api
Fix Released
Undecided
Unassigned

Bug Description

Volume snapshots in EC2 can be created only for volumes in some particular statuses. For other statuses creation an error should be returned. Current EC2 code doesn't check the statuses and pass the request to Cinder code. When it fails creating it returns its own native error which is incorrectly reported further by EC2 layer.

Environment: DevStack

Steps to reproduce:
1 Run from script:
vol=$(euca-create-volume -z nova -s 1 --snapshot snap-xxx | awk -F " " '{print $2}')
euca-create-snapshot $vol

InvalidInput: Invalid input received: Invalid volume: must be available

If run tthis agains AWS the error output is
IncorrectState: Volume 'vol-xxx' is not in a state where snapshots are allowed.

Note. To reproduce the error on AWS i recommend to get a non-empty snapshot about 10GB and increase the size parameter in euca-create-volume.

Tags: ec2
Feodor Tersin (ftersin)
Changed in nova:
assignee: nobody → Feodor Tersin (ftersin)
Changed in nova:
status: New → In Progress
Revision history for this message
Sean Dague (sdague) wrote :

Does not appear to be in progress

Changed in nova:
status: In Progress → Confirmed
importance: Undecided → Low
assignee: Feodor Tersin (ftersin) → nobody
tags: added: ec2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/96280
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Andrey Pavlov (apavlov-e) wrote :

it works in stackforge/ec2-api project.

Changed in ec2-api:
status: New → Fix Released
Changed in nova:
status: Confirmed → Won't Fix
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.