Skip to content

Commit

Permalink
Fix rescue during PXE and ISO provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Odnopozov committed May 1, 2017
1 parent 768244a commit f57fa3b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module ManageIQ::Providers::Redhat::InfraManager::OvirtServices
require_nested :OvirtServices
class Error < StandardError; end
class VmNotReadyToBoot < Error; end
end

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ def powered_off_in_provider?
end

def powered_on_in_provider?
destination.ext_management_system.ovirt_service.powered_on_in_provider?(destination)
destination.ext_management_system.ovirt_services.powered_on_in_provider?(destination)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def boot_from_cdrom

begin
ext_management_system.ovirt_services.vm_boot_from_cdrom(self, iso_image.name)
rescue OvirtServices::VmNotReadyToBoot
rescue ManageIQ::Providers::Redhat::InfraManager::OvirtServices::VmNotReadyToBoot
_log.info("#{destination_type} [#{dest_name}] is not yet ready to boot, will retry")
requeue_phase
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def boot_from_network

begin
ext_management_system.ovirt_services.vm_boot_from_network(self)
rescue OvirtServices::VmNotReadyToBoot
rescue ManageIQ::Providers::Redhat::InfraManager::OvirtServices::VmNotReadyToBoot
_log.info("#{destination_type} [#{dest_name}] is not yet ready to boot, will retry")
requeue_phase
else
Expand Down

0 comments on commit f57fa3b

Please sign in to comment.