Invalid ec2 error code for absent volumes and snapshots

Bug #1323813 reported by Feodor Tersin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Feodor Tersin

Bug Description

ec2-api returns InvalidVolumeID.NotFound and InvalidSnapshotID.NotFound for absent volumes and snapshots.
But AWS returns InvalidVolume.NotFound and InvalidSnapshot.NotFound as it is documented in http://docs.aws.amazon.com/AWSEC2/latest/APIReference/api-error-codes.html

For example this affects Tempest. Tempest expects correct (AWS version) errors in waitXXXStatus functions and raises an error if other error cames for absent objects. So it make difficult writting tests.

Tags: ec2
Feodor Tersin (ftersin)
Changed in nova:
assignee: nobody → Feodor Tersin (ftersin)
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/95913

Changed in nova:
status: New → In Progress
Matt Riedemann (mriedem)
tags: added: ec2
Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit bb23a3730e5b2281e0a223a86c89f2a0bfcb4897
Author: Feodor Tersin <email address hidden>
Date: Wed May 28 01:18:24 2014 +0400

    Fix EC2 not found errors for volumes and snapshots.

    According to AWS docs
    (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/
    api-error-codes.html)

    Change-Id: I43af230b975263bb2a14e0cc0bd8718f55bd8a55
    Closes-Bug: #1323813

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-2 → 2014.2
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.