diff --git a/src/im_mad/remotes/lib/vcenter_cluster.rb b/src/im_mad/remotes/lib/vcenter_cluster.rb index 01ffa51a6a..bd26162b36 100644 --- a/src/im_mad/remotes/lib/vcenter_cluster.rb +++ b/src/im_mad/remotes/lib/vcenter_cluster.rb @@ -767,7 +767,12 @@ class ClusterSet rc = hpool.info if OpenNebula.is_error?(rc) - raise "Could not get hosts information - #{rc.message}" + # Wait 5 seconds and retry + sleep 5 + rc = hpool.info + if OpenNebula.is_error?(rc) + raise "Could not get hosts information - #{rc.message}" + end end $logger.info("Bootstraping list of clusters")