Skip to content

Commit

Permalink
Merge pull request #964 from grycap/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
micafer authored Dec 19, 2019
2 parents 7dc8660 + 957bcfb commit afe6634
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion IM/InfrastructureManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit afe6634

Please sign in to comment.