deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-484) RHEVm Need to handle GET for instances while some could be being destroyed.
Date Wed, 13 Mar 2013 15:20:13 GMT

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

Ronelle Landy commented on DTACLOUD-484:
----------------------------------------

waiting for new rbovirt gem to be available before testing + closing this JIRA.
                
> RHEVm Need to handle GET for instances while some could be being destroyed.
> ---------------------------------------------------------------------------
>
>                 Key: DTACLOUD-484
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-484
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>            Reporter: Joseph J. VLcek
>            Assignee: Joseph J. VLcek
>         Attachments: 0001-RHEV-M-avoid-failure-when-accessing-instances-when-a.patch
>
>
> If an instance (vm) is being destroyed a GET for all instances could fail.
> This needs to be fix in rbovirt by adding a rescue in vm_interfaces to
> catch where a vm is being destroyed.
> pseudo code:
> lib/client/vm_api.rb
> def vm_interfaces vm_id
>   begin
>   http_get("/vms/%s/nics" % vm_id, http_headers).xpath('/nics/nic').collect do |nic|
>     OVIRT::Interface::new(self, nic)
>   end
>   rescue # Catch case were vm_id is destroyed.
>     [] 
>   end
> end

--
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

Mime
View raw message