Currently startinstance response doesn't have the
instanceset information with InstanceID, current state
and previous state. It just returns the "True".
As per the AWS API reference document, the StartInstance
response elements should include the instanceset information
as below:
<StartInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2014-02-01/">
<requestId>req-a7326465-5ce2-4ed6-ab89-394b38cca85f</requestId>
<instancesSet>
<item> <instanceId>i-00000001</instanceId> <currentState> <code>16</code> <name>running</name> </currentState> <previousState> <code>80</code> <name>stopped</name> </previousState>
</item>
</instancesSet>
</StartInstancesResponse>
Included the instanceset in to startinstance response elements
and updated the test cases for startinstance response elements
in nova/tests/api/ec2/test_cloud.py file.
Reviewed: https:/ /review. openstack. org/100438 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=37520a7dc14 971b2d244f37feb db9fb13edbfd2f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 37520a7dc14971b 2d244f37febdb9f b13edbfd2f
Author: Swami Reddy <email address hidden>
Date: Wed Jun 18 15:49:18 2014 +0530
Add instanceset info to StartInstance response
Currently startinstance response doesn't have the ncesResponse xmlns="http:// ec2.amazonaws. com/doc/ 2014-02- 01/"> requestId> req-a7326465- 5ce2-4ed6- ab89-394b38cca8 5f</requestId> instancesSet>
<instanceId> i-00000001< /instanceId>
<currentStat e>
<code> 16</code>
<name> running< /name>
</currentSta te>
<previousSta te>
<code> 80</code>
<name> stopped< /name>
</previousSt ate> /instancesSet> ancesResponse>
instanceset information with InstanceID, current state
and previous state. It just returns the "True".
As per the AWS API reference document, the StartInstance
response elements should include the instanceset information
as below:
<StartInsta
<
<
<item>
</item>
<
</StartInst
Included the instanceset in to startinstance response elements api/ec2/ test_cloud. py file.
and updated the test cases for startinstance response elements
in nova/tests/
Change-Id: I08ef7ed88f983b 66a30c76d6b7b75 4222097a03b
Closes-bug: #1321220