1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

M #-: Fix issue with retries in clone (#1668)

This commit is contained in:
Carlos J. Herrera 2021-12-13 11:53:13 -05:00 committed by GitHub
parent 46bc7fb46d
commit 3209dc5f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,13 @@ begin
rescue StandardError => e
message = "Error clone virtual disk #{src_path} in "\
"datastore #{target_ds_name_vc}. "\
"Reason: #{e.message}."
"Reason: #{e.message}." \
"on attempt \##{retries}."
if (retries += 1) > CONFIG[:retries]
message << "\nPlease check vCenter logs directly\n"
end
OpenNebula.log_error(message)
if VCenterDriver::CONFIG[:debug_information]
STDERR.puts "#{message} #{e.backtrace}"