From: tierno Date: Wed, 2 Aug 2017 11:53:02 +0000 (+0200) Subject: Fix rollback error of not launched nets & vms X-Git-Tag: v3.0.0~17^2~14 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F2056%2F1;p=osm%2FRO.git Fix rollback error of not launched nets & vms Change-Id: I317ed62f4d4357855039ee4b91ba7c52dd9f3b5a Signed-off-by: tierno --- diff --git a/openmanod b/openmanod index fbd8e2e2..d73edd5e 100755 --- a/openmanod +++ b/openmanod @@ -48,9 +48,9 @@ import osm_ro __author__ = "Alfonso Tierno, Gerardo Garcia, Pablo Montes" __date__ = "$26-aug-2014 11:09:29$" -__version__ = "0.5.17-r526" -version_date = "Jul 2017" -database_version = 22 #expected database schema version +__version__ = "0.5.18-r527" +version_date = "Aug 2017" +database_version = 22 # expected database schema version global global_config global logger diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index 94b029aa..8f105c32 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -334,7 +334,9 @@ def rollback(mydb, vims, rollback_list): if item["where"]=="vim": if item["vim_id"] not in vims: continue - vim=vims[ item["vim_id"] ] + if is_task_id(item["uuid"]): + continue + vim = vims[item["vim_id"]] try: if item["what"]=="image": vim.delete_image(item["uuid"]) @@ -481,7 +483,7 @@ def check_vnf_descriptor(vnf_descriptor, vnf_descriptor_version=1): HTTP_Bad_Request) -def create_or_use_image(mydb, vims, image_dict, rollback_list, only_create_at_vim=False, return_on_error = None): +def create_or_use_image(mydb, vims, image_dict, rollback_list, only_create_at_vim=False, return_on_error=None): #look if image exist if only_create_at_vim: image_mano_id = image_dict['uuid']