aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-05-10 17:04:17 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-05-10 17:04:17 +0800
commita2aa259c038558cb527021639df80eaeefa5f45f (patch)
tree3bbe2c1e6724a7ca49b0677ce8d3f452ee20e197
parentc363c2c9e5fd2cad61d9f64bea3d1a911e13e987 (diff)
Fix bugs for nslcm
Change-Id: I05d080d32a36eba308be33d99383f3ca2c6c2fed Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-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")