You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Joseph J. VLcek (JIRA)" <ji...@apache.org> on 2013/03/01 22:49:13 UTC

[jira] [Resolved] (DTACLOUD-484) RHEVm Need to handle GET for instances while some could be being destroyed.

     [ https://issues.apache.org/jira/browse/DTACLOUD-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph J. VLcek resolved DTACLOUD-484.
--------------------------------------

    Resolution: Fixed

Fix is available in this patch and at https://github.com/jvlcek/rbovirt
I have not yet pushed the fix upstream because I need to determine how
to test the changes to method vm_volumes()

                
> 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