-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9238/
-----------------------------------------------------------

Review request for cloudstack and Prachi Damle.


Description
-------

1. If volume is attached to a VM set attachment state based on the state of the 
VM it is attached to.
Running, Starting, Stopped -> Attached
Starting -> Attaching
Destroyed, Error -> Detached
2. If volume is not attached to a VM set attachment state as 'detached'


This addresses bug CLOUDSTACK-1129.


Diffs
-----

  awsapi/src/com/cloud/bridge/service/EC2SoapServiceImpl.java b2451c6 
  awsapi/src/com/cloud/bridge/service/core/ec2/EC2Engine.java 17752af 
  awsapi/src/com/cloud/bridge/service/core/ec2/EC2Volume.java 23d6d70 
  awsapi/src/com/cloud/bridge/service/core/ec2/EC2VolumeFilterSet.java 0594231 

Diff: https://reviews.apache.org/r/9238/diff/


Testing
-------

Run ec2_get_all_volumes for a volume_id with the corresponding volume in the 
following states - 
1. Volume not attached to any instance
2. Volume attached to an instance where the instance is in each of the 
following states - 
       Running, Starting, Stopped, Starting, Destroyed, Error 


Thanks,

Likitha Shetty

Reply via email to