Ronelle Landy created DTACLOUD-481:
--------------------------------------
Summary: Digitalocean driver: Can't delete an instance - No delete
op returned for STOPPED instance
Key: DTACLOUD-481
URL: https://issues.apache.org/jira/browse/DTACLOUD-481
Project: DeltaCloud
Issue Type: Bug
Components: Native/Frontend
Environment: Deltacloud 1.1.1 - gem under test
Digitalocean driver
Reporter: Ronelle Landy
Note that the only op returned for a STOPPED instance below is /start:
>> curl -X GET --user "un:pw"
>> "intel-canoepass-09.lab.bos.redhat.com:3001/api/instances/102465?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<instance
href='http://intel-canoepass-09.lab.bos.redhat.com:3001/api/instances/102465'
id='102465'>
<name>inst1360936592</name>
<owner_id>....</owner_id>
<image
href='http://intel-canoepass-09.lab.bos.redhat.com:3001/api/images/43462'
id='43462'></image>
<realm href='http://intel-canoepass-09.lab.bos.redhat.com:3001/api/realms/1'
id='1'></realm>
<state>STOPPED</state>
<hardware_profile
href='http://intel-canoepass-09.lab.bos.redhat.com:3001/api/hardware_profiles/70'
id='70'>
</hardware_profile>
<actions>
<link
href='http://intel-canoepass-09.lab.bos.redhat.com:3001/api/instances/102465/start'
method='post' rel='start' />
</actions>
<public_addresses><address
type='ipv4'>192.81.218.93</address></public_addresses>
<private_addresses></private_addresses>
<storage_volumes></storage_volumes>
</instance>
Error when attempting to delete a stopped instance:
>> curl -X DELETE --user "un:pw"
>> "intel-canoepass-09.lab.bos.redhat.com:3001/api/instances/102465?format=xml"
<error status='405' url='/api/instances/102465'>
<message>
Requested method not allowed
</message>
<method>
DELETE
</method>
</error>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira