[ https://issues.apache.org/jira/browse/DTACLOUD-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559733#comment-13559733 ]
Marios Andreou commented on DTACLOUD-426: ----------------------------------------- * for 'create_instance' - are you thinking of a specific scenario where an instance cannot be created from an image? (e.g. rhevm/vsphere)? If so please elaborate. * for 'delete_image' - the "/server/views/images/show.xml.haml" template is doing: 18 - if driver.respond_to? :destroy_image$ 19 %link{ :rel => 'destroy_image', :method => :delete, :href => "#{destroy_image_url(@image.id)}" }$ i.e., checking if 'destroy_image' is defined in the driver. Again, are you thinking of a specific scenario where an driver *does* have the 'destroy_image' method defined, but the image cannot be deleted, for example because it is in use for a particular instance? If this is the case, I don't know what we can do, since we don't maintain state and so wouldn't know which current instances are using which images; we could 'brute force' it, by retrieving every instance and checking if instance.image_id == to_be_deleted_image.id. But again, needs discussion (I'd be against this 'solution' for performance reasons - imaging 1000 instances ...). Or, you may be thinking of a different scenario and if so please elaborate. > Only create links for actions that can currently be performed > ------------------------------------------------------------- > > Key: DTACLOUD-426 > URL: https://issues.apache.org/jira/browse/DTACLOUD-426 > Project: DeltaCloud > Issue Type: Bug > Components: Native/Frontend > Reporter: Joseph J. VLcek > Assignee: Marios Andreou > Priority: Minor > > In the XML template for image, links for 'create_instance' and > 'delete_image' are unconditionally generated. > That needs to be changed so only links for actions that > can currently be performed are created. -- 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