Heal: Await heal operation in RO before N2VC part to avoid errors 07/12707/2
authorGabriel Cuba <gcuba@whitestack.com>
Tue, 8 Nov 2022 00:28:14 +0000 (19:28 -0500)
committerGabriel Cuba <gcuba@whitestack.com>
Fri, 18 Nov 2022 23:07:52 +0000 (18:07 -0500)
Change-Id: I1d201be817246fe025cfa4fc77bce5b54151e3a8
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
(cherry picked from commit 73d550fb553ef164b3c5512370bdf03175c9ca16)

osm_lcm/ns.py

index 56d87cf..4fb8d5d 100644 (file)
@@ -7785,17 +7785,12 @@ class NsLcm(LcmBase):
             self.update_db_2("nsrs", nsr_id, db_nsr_update)
 
             step = "Sending heal order to VIM"
-            task_ro = asyncio.ensure_future(
-                self.heal_RO(
-                    logging_text=logging_text,
-                    nsr_id=nsr_id,
-                    db_nslcmop=db_nslcmop,
-                    stage=stage,
-                )
+            await self.heal_RO(
+                logging_text=logging_text,
+                nsr_id=nsr_id,
+                db_nslcmop=db_nslcmop,
+                stage=stage,
             )
-            self.lcm_tasks.register("ns", nsr_id, nslcmop_id, "heal_RO", task_ro)
-            tasks_dict_info[task_ro] = "Healing at VIM"
-
             # VCA tasks
             # read from db: nsd
             stage[1] = "Getting nsd={} from db.".format(db_nsr["nsd-id"])