You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Michal Fojtik (JIRA)" <ji...@apache.org> on 2013/03/07 15:04:13 UTC
[jira] [Resolved] (DTACLOUD-481) Digitalocean driver: Can't delete
an STOPPED instance - delete op advertized on a RUNNING instance only
[ https://issues.apache.org/jira/browse/DTACLOUD-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Fojtik resolved DTACLOUD-481.
------------------------------------
Resolution: Fixed
Assignee: Michal Fojtik
Nice one, state machine fixed:
http://tracker.deltacloud.org/set/378
> Digitalocean driver: Can't delete an STOPPED instance - delete op advertized on a RUNNING instance only
> --------------------------------------------------------------------------------------------------------
>
> 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
> Assignee: Michal Fojtik
>
> 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>
> Note that the RUNNING instance advertises the destroy op:
> .........
> <state>RUNNING</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/reboot' method='post' rel='reboot' />
> <link href='http://intel-canoepass-09.lab.bos.redhat.com:3001/api/instances/102465/stop' method='post' rel='stop' />
> <link href='http://intel-canoepass-09.lab.bos.redhat.com:3001/api/instances/102465' method='delete' rel='destroy' />
> </actions>
> .........
--
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