[EC2] Attaching volume returns volume is 'detached' in response

Bug #1280572 reported by Rushi Agrawal
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Liusheng

Bug Description

While attaching the volume, the API response is that the volume state is detached, while it should be 'attaching' as per EC2's API docs.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-AttachVolume.html

Tags: ec2 volumes
Revision history for this message
Rushi Agrawal (rushiagr) wrote :

Actually reported by Rui Chen. I am the one who confirmed the bug.

Changed in nova:
status: New → Confirmed
Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

Adds some information:
Detaching volume returns volume is 'attached'.

Rushi Agrawal (rushiagr)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
Lingxian Kong (kong) wrote :

hello, Rushi, do you still work on this bug?

Revision history for this message
Liusheng (liusheng) wrote :

Hi Rushi, we have affected by this bug, I am not sure you are still work on this.
I am sorry,I want to commit a patch to close this bug.
Best.
liusheng

Revision history for this message
Liusheng (liusheng) wrote :
Changed in nova:
assignee: Rushi Agrawal (rushiagr) → Liusheng (liusheng)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Rushi Agrawal (rushiagr) wrote :

Sure Liusheng. Don't say sorry. I unfortunately didn't start looking into it. And thanks for the patch!

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

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

commit e5cd9d90062d778b7725de0c76d44d6077e8e237
Author: liu-sheng <email address hidden>
Date: Tue Mar 11 10:24:59 2014 +0800

    [EC2]Correct the return status of attaching volume

    The EC2 API return volume's status as 'detached' in response when
    attaching a volume.
    It should be 'attaching' according to EC2's API docs, so we should convert
    the volume_status or volume attach_status to ec2 volume attachment status.
    The situation is similar in detaching volume.

    Change-Id: Ifacf0ffcab49394def948d428c4c4c13d08152f0
    Closes-bug: #1280572

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