From: bravof Date: Wed, 13 Oct 2021 20:37:36 +0000 (-0300) Subject: bugfix(filesystem sync): sync vnf descriptor files before running a primitive. Bug... X-Git-Tag: v12.0.0rc1~37 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=a96dd9c3f653a8055187adb6671ffc34f228b8a5;p=osm%2FLCM.git bugfix(filesystem sync): sync vnf descriptor files before running a primitive. Bug 1690 Change-Id: I8ccad0836c8392d97be9417b61f438316fc2e6d4 Signed-off-by: bravof --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index b13d466..d6184fd 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -4787,6 +4787,9 @@ class NsLcm(LcmBase): ) step = "Getting vnfd from database" db_vnfd = self.db.get_one("vnfds", {"_id": db_vnfr["vnfd-id"]}) + + # Sync filesystem before running a primitive + self.fs.sync(db_vnfr["vnfd-id"]) else: step = "Getting nsd from database" db_nsd = self.db.get_one("nsds", {"_id": db_nsr["nsd-id"]})