aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaopeng zhang <zhang.maopeng1@zte.com.cn>2019-05-10 09:41:52 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-10 09:41:52 +0000
commit9908dbec29def4af83eaac4f5e468b3eb262a544 (patch)
tree4faf5eed1c4096d5fd169777b3d7ba6017325887
parentf8ad221b968ac85391d79a11db6546c933947f9d (diff)
parenta2aa259c038558cb527021639df80eaeefa5f45f (diff)
Merge "Fix bugs for nslcm"
-rw-r--r--lcm/ns_vnfs/biz/create_vnfs.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lcm/ns_vnfs/biz/create_vnfs.py b/lcm/ns_vnfs/biz/create_vnfs.py
index a968d640..4f270b50 100644
--- a/lcm/ns_vnfs/biz/create_vnfs.py
+++ b/lcm/ns_vnfs/biz/create_vnfs.py
@@ -352,7 +352,7 @@ class CreateVnfs(Thread):
cloud_region_id="none",
vdu_info="none"
)
- raise Exception("Received a Bad Sync from OOF with response code %s" % resp_status)
+ logger.error("Received a Bad Sync from OOF with response code %s" % resp_status)
logger.info("Completed Homing request to OOF")
def send_get_vnfm_request_to_extsys(self):
@@ -395,7 +395,10 @@ class CreateVnfs(Thread):
'vnfInstanceId': self.vnfm_nf_inst_id,
'vnfmId': self.vnfm_inst_id
}
- SubscriptionCreation(data).do_biz()
+ try:
+ SubscriptionCreation(data).do_biz()
+ except Exception as e:
+ logger.error("subscribe failed: %s", e.message)
def write_vnf_creation_info(self):
logger.debug("write_vnf_creation_info start")