Add log when ns distributed failed 31/21231/1
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 30 Oct 2017 08:51:54 +0000 (16:51 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 30 Oct 2017 08:51:54 +0000 (16:51 +0800)
Change-Id: If3432173eb44cf89c8a0cdbdee77ab0ded782901
Issue-Id: VFC-565
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/packages/ns_package.py

index c12b1b6..5474a47 100644 (file)
@@ -129,6 +129,8 @@ class NsPackage(object):
             vnfd_id = vnf["properties"]["id"]
             pkg = VnfPackageModel.objects.filter(vnfdId=vnfd_id)
             if not pkg:
+                vnfd_name = vnf.get("vnf_id", "undefined")
+                logger.error("[%s] is not distributed.", vnfd_name)
                 raise CatalogException("VNF package(%s) is not distributed." % vnfd_id)
 
         NSPackageModel(