aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-11-01 16:05:49 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-11-01 16:05:49 +0800
commit77ab2d63c1e84c36f35c69623ea110c77519c709 (patch)
treeeb6eb301e08e4707ee2092f3a3b62b5fc51b3846
parent635886dfc12300038ef096d08f8eb4c09ce075a4 (diff)
Update job error code of buildin workflow
Change-Id: Ie1463d37486ac5ddd2ebc649568b38a2a903f82a Issue-Id: VFC-575 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/workflows/build_in.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lcm/workflows/build_in.py b/lcm/workflows/build_in.py
index 86378ad2..f58ec7e5 100644
--- a/lcm/workflows/build_in.py
+++ b/lcm/workflows/build_in.py
@@ -59,27 +59,27 @@ def run_ns_instantiate(input_data):
sdnc_id = ignore_case_get(input_data, "sdnControllerId")
g_jobs_status[job_id] = [1 for i in range(vnf_count)]
try:
- update_job(job_id, 10, "0", "Start to create VL")
+ update_job(job_id, 10, "true", "Start to create VL")
for i in range(vl_count):
create_vl(ns_inst_id, i + 1, nsd_json, ns_param_json)
- update_job(job_id, 30, "0", "Start to create VNF")
+ update_job(job_id, 30, "true", "Start to create VNF")
jobs = [create_vnf(ns_inst_id, i + 1, vnf_param_json) for i in range(vnf_count)]
wait_until_jobs_done(job_id, jobs)
[confirm_vnf_status(inst_id) for inst_id, _, _ in jobs]
- update_job(job_id, 70, "0", "Start to create SFC")
+ update_job(job_id, 70, "true", "Start to create SFC")
g_jobs_status[job_id] = [1 for i in range(sfc_count)]
jobs = [create_sfc(ns_inst_id, i + 1, nsd_json, sdnc_id) for i in range(sfc_count)]
wait_until_jobs_done(job_id, jobs)
[confirm_sfc_status(inst_id) for inst_id, _, _ in jobs]
- update_job(job_id, 90, "0", "Start to post deal")
+ update_job(job_id, 90, "true", "Start to post deal")
post_deal(ns_inst_id, "true")
- update_job(job_id, 100, "0", "Create NS successfully.")
+ update_job(job_id, 100, "true", "Create NS successfully.")
ns_instantiate_ok = True
except NSLCMException as e:
logger.error("Failded to Create NS: %s", e.message)