From 996393b7561c65c5980bf48310bcf419f43b3a26 Mon Sep 17 00:00:00 2001 From: zhiyuan_cai Date: Tue, 7 Feb 2017 17:07:42 +0800 Subject: [PATCH] [Urgent] Fix error in XJob RPC API 1. What is the problem After the patch for subnet update was merged, the patch for xjob enhancement didn't modify the xjob rpc api for subnet update to adapt the change brought by the enhancement. 2. What is the solution to the problem Modify the xjob rpc api for subnet update. 3. What the features need to be implemented to the Tricircle N/A. Change-Id: Idd504a1fa1c57183983a3392dda1282be4d2ad53 --- tricircle/common/xrpcapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tricircle/common/xrpcapi.py b/tricircle/common/xrpcapi.py index 36346f8a..21110bee 100644 --- a/tricircle/common/xrpcapi.py +++ b/tricircle/common/xrpcapi.py @@ -111,6 +111,7 @@ class XJobAPI(object): def update_subnet(self, ctxt, subnet_id, pod_id): combine_id = '%s#%s' % (pod_id, subnet_id) + db_api.new_job(ctxt, constants.JT_SUBNET_UPDATE, combine_id) self.client.prepare(exchange='openstack').cast( ctxt, 'update_subnet', payload={constants.JT_SUBNET_UPDATE: combine_id})