Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
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