diff --git a/IM/InfrastructureManager.py b/IM/InfrastructureManager.py index 5103df6a1..a2f83e244 100644 --- a/IM/InfrastructureManager.py +++ b/IM/InfrastructureManager.py @@ -558,7 +558,13 @@ def AddResource(inf_id, radl_data, auth, context=True): break # Concrete systems using VMRC - systems_with_vmrc = InfrastructureManager.systems_with_vmrc(sel_inf, radl, auth) + try: + systems_with_vmrc = InfrastructureManager.systems_with_vmrc(sel_inf, radl, auth) + except Exception as ex: + sel_inf.configured = False + sel_inf.add_cont_msg("Error getting VM images: %s" % str(ex)) + InfrastructureManager.logger.exception("Inf ID: " + sel_inf.id + " error getting VM images") + raise ex # Concrete systems with cloud providers and select systems with the greatest score # in every cloud diff --git a/changelog b/changelog index 80941ac08..8049f9771 100644 --- a/changelog +++ b/changelog @@ -562,3 +562,4 @@ IM 1.9.0: * Remove added VMs in case that all of them fails in the addition process. * Fix error OpenStack_2_NodeDriver object has no attribute 'get_floating_ip'. * Add deleting state. + * Error is shown if a VM does not set the image in case of async creation.