You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Marios Andreou (JIRA)" <ji...@apache.org> on 2012/06/01 15:01:23 UTC

[jira] [Commented] (DTACLOUD-207) GET /api/images/:id - XML and JSON output do not show 'destroy/delete' as an action for images

    [ https://issues.apache.org/jira/browse/DTACLOUD-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287372#comment-13287372 ] 

Marios Andreou commented on DTACLOUD-207:
-----------------------------------------

pushed to master - commit hash: cdc488e6deed03777afb12f6c5804de7fa49185c
                
>  GET /api/images/:id - XML and JSON output do not show 'destroy/delete' as an action for images
> -----------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-207
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-207
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit version: c13da7b50bbbbdc529b42207f58dbe5099006ad1
> RHEL 6.2, Fedora 16
> Openstack V2.0 ( not Openstack specific)
>            Reporter: Ronelle Landy
>            Assignee: Ronelle Landy
>         Attachments: 0001-Adds-destroy_image-action-to-image-xml-also-adds-gua.patch
>
>
> Destroying images: the XML  and JSON output do not show 'destroy/delete' as an action for images. User are able to delete/destroy an image using the Deltacloud GUI.
> >> curl -X GET --user "<un>:<pw>" "http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/images/8215?format=xml"
> <?xml version='1.0' encoding='utf-8' ?>
> <image href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/images/8215' id='8215'>
>   <name>myImage</name>
>   <owner_id>XXXX</owner_id>
>   <description>myImage</description>
>   <architecture>x86_64</architecture>
>   <state>ACTIVE</state>
>   <hardware_profiles>
>     <hardware_profile href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/hardware_profiles/100' id='100' rel='hardware_profile'></hardware_profile>
>     <hardware_profile href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/hardware_profiles/101' id='101' rel='hardware_profile'></hardware_profile>
>     <hardware_profile href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/hardware_profiles/105' id='105' rel='hardware_profile'></hardware_profile>
>     <hardware_profile href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/hardware_profiles/103' id='103' rel='hardware_profile'></hardware_profile>
>     <hardware_profile href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/hardware_profiles/102' id='102' rel='hardware_profile'></hardware_profile>
>     <hardware_profile href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/hardware_profiles/104' id='104' rel='hardware_profile'></hardware_profile>
>   </hardware_profiles>
>   <actions>
>     <link href='http://qe-blade-14.idm.lab.bos.redhat.com:3008/api/instances;image_id=8215' method='post' rel='create_instance' />
>   </actions>
> </image>
> ************************
> Note from Marios:
> jira please - this is not an openstack specific issue - looking at the haml template, seems like we ommit the destroy action from /images/show.xml.haml

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira