Heal: Await heal operation in RO before N2VC part to avoid errors 37/12637/2
authorGabriel Cuba <gcuba@whitestack.com>
Tue, 8 Nov 2022 00:28:14 +0000 (19:28 -0500)
committercubag <gcuba@whitestack.com>
Fri, 18 Nov 2022 22:49:52 +0000 (23:49 +0100)
Change-Id: I1d201be817246fe025cfa4fc77bce5b54151e3a8
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
osm_lcm/ns.py

index 61899bb..0b69062 100644 (file)
@@ -7523,17 +7523,22 @@ 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(
+            #task_ro = asyncio.ensure_future(
+            #    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"
+            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"])