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

Joseph J. VLcek updated DTACLOUD-484:
-------------------------------------

    Attachment: 0001-RHEV-M-avoid-failure-when-accessing-instances-when-a.patch

I've tested part of this patch, the changes in vm_interfaces.

It's not clear to me how to exercise the changes in vm_volumes from the 
Deltacloud API to test them
                
> 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

Reply via email to