bugfix(filesystem sync): sync vnf descriptor files before running a primitive. Bug... 58/11258/2
authorbravof <fbravo@whitestack.com>
Wed, 13 Oct 2021 20:37:36 +0000 (17:37 -0300)
committerbravof <fbravo@whitestack.com>
Fri, 12 Nov 2021 12:48:41 +0000 (13:48 +0100)
Change-Id: I8ccad0836c8392d97be9417b61f438316fc2e6d4
Signed-off-by: bravof <fbravo@whitestack.com>
osm_lcm/ns.py

index b13d466..d6184fd 100644 (file)
@@ -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"]})