deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph J. VLcek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DTACLOUD-484) RHEVm Need to handle GET for instances while some could be being destroyed.
Date Fri, 15 Feb 2013 20:23:12 GMT
Joseph J. VLcek created DTACLOUD-484:
----------------------------------------

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


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