Invalid error message for snapshot creation in EC2 layer
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-
euca-create-
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.
Changed in nova: | |
assignee: | nobody → Feodor Tersin (ftersin) |
Changed in nova: | |
status: | New → In Progress |
Changed in ec2-api: | |
status: | New → Fix Released |
Changed in nova: | |
status: | Confirmed → Won't Fix |
Does not appear to be in progress