summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-10-30 16:51:54 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-10-30 16:51:54 +0800
commitc5f7410c69a75e66e0f17851f736046057b3eb35 (patch)
tree10e5df120f9a0349dfb96869198c30613aab895c
parent7dadf6fde6a00572a296f022901d4d9fe9e7db5b (diff)
Add log when ns distributed failed
Change-Id: If3432173eb44cf89c8a0cdbdee77ab0ded782901 Issue-Id: VFC-565 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/packages/ns_package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/catalog/packages/ns_package.py b/catalog/packages/ns_package.py
index c12b1b66..5474a472 100644
--- a/catalog/packages/ns_package.py
+++ b/catalog/packages/ns_package.py
@@ -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(