From: tierno Date: Thu, 9 Jul 2020 13:51:20 +0000 (+0000) Subject: fix 1132. Capture fs.sync exceptions at instantiation X-Git-Tag: v8.0.0rc3~13 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FLCM.git;a=commitdiff_plain;h=b3edda0a6df394f85d3c095f808f3d7922747f68 fix 1132. Capture fs.sync exceptions at instantiation Change-Id: I8d1200acb685d6fd494dd71d36fbe0568a6c50c4 Signed-off-by: tierno --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 6af20dd..31c1f6f 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -1824,9 +1824,6 @@ class NsLcm(LcmBase): logging_text = "Task ns={} instantiate={} ".format(nsr_id, nslcmop_id) self.logger.debug(logging_text + "Enter") - # Sync from FSMongo - self.fs.sync() - # get all needed from database # database nsrs record @@ -1852,8 +1849,11 @@ class NsLcm(LcmBase): # wait for any previous tasks in process await self.lcm_tasks.waitfor_related_HA('ns', 'nslcmops', nslcmop_id) + stage[1] = "Sync filesystem from database" + self.fs.sync() # TODO, make use of partial sync, only for the needed packages + # STEP 0: Reading database (nslcmops, nsrs, nsds, vnfrs, vnfds) - stage[1] = "Reading from database," + stage[1] = "Reading from database" # nsState="BUILDING", currentOperation="INSTANTIATING", currentOperationID=nslcmop_id db_nsr_update["detailed-status"] = "creating" db_nsr_update["operational-status"] = "init"