[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.
Reviewed: https:/ /review. openstack. org/79510 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e5cd9d90062 d778b7725de0c76 d44d6077e8e237
Committed: https:/
Submitter: Jenkins
Branch: master
commit e5cd9d90062d778 b7725de0c76d44d 6077e8e237
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: Ifacf0ffcab4939 4def948d428c4c4 c13d08152f0
Closes-bug: #1280572