[
https://issues.apache.org/jira/browse/DTACLOUD-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ronelle Landy closed DTACLOUD-207.
----------------------------------
Verified that the attached patch fixes the issue. Delete/destroy is now shown
as an action on images:
curl -X GET --user "<un>:<pwd>"
"http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/images/14075?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<image href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/images/14075'
id='14075'>
<name>Fedora 16 Server 64-bit 20120518</name>
<owner_id>xxxxxx</owner_id>
<description>Fedora 16 Server 64-bit 20120518</description>
<architecture>x86_64</architecture>
<state>ACTIVE</state>
<hardware_profiles>
<hardware_profile
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/hardware_profiles/100'
id='100' rel='hardware_profile'></hardware_profile>
<hardware_profile
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/hardware_profiles/101'
id='101' rel='hardware_profile'></hardware_profile>
<hardware_profile
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/hardware_profiles/105'
id='105' rel='hardware_profile'></hardware_profile>
<hardware_profile
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/hardware_profiles/103'
id='103' rel='hardware_profile'></hardware_profile>
<hardware_profile
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/hardware_profiles/102'
id='102' rel='hardware_profile'></hardware_profile>
<hardware_profile
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/hardware_profiles/104'
id='104' rel='hardware_profile'></hardware_profile>
</hardware_profiles>
<actions>
<link
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/instances;image_id=14075'
method='post' rel='create_instance' />
<link
href='http://qe-blade-02.idm.lab.bos.redhat.com:3005/api/images/14075'
method='delete' rel='destroy_image' />
</actions>
</image>
Tested patch + git commit version: 5aa335beff48436fa913d0c145bfe9169f3a8342
> 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