Fixing hostpath problem in debug mode for ro charm 29/12829/3
authorGulsum Atici <gulsum.atici@canonical.com>
Mon, 9 Jan 2023 22:38:31 +0000 (01:38 +0300)
committerGulsum Atici <gulsum.atici@canonical.com>
Wed, 18 Jan 2023 09:43:11 +0000 (12:43 +0300)
Solving nested hostpath problem in debug mode for RO charm and adding missing hostpath of RO-SDN-onos-openflow.

Change-Id: Id75ccdb1e5d713c910686aaeddf0acb2e275b1c2
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
installers/charm/osm-lcm/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-mon/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-nbi/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-ng-ui/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-pol/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-ro/lib/charms/osm_libs/v0/utils.py
installers/charm/osm-ro/src/charm.py

index df3da94..d739ba6 100644 (file)
@@ -137,7 +137,7 @@ LIBAPI = 0
 
 # Increment this PATCH version before using `charmcraft publish-lib` or reset
 # to 0 if you are raising the major API version
-LIBPATCH = 3
+LIBPATCH = 5
 
 logger = logging.getLogger(__name__)
 
@@ -250,7 +250,7 @@ class HostPath:
         if submodules:
             for submodule in submodules.keys():
                 self.sub_module_dict[submodule] = SubModule(
-                    sub_module_path=self.mount_path + "/" + submodule,
+                    sub_module_path=self.mount_path + "/" + submodule + "/" + submodules[submodule].split("/")[-1],
                     container_path=submodules[submodule],
                 )
         else:
index df3da94..d739ba6 100644 (file)
@@ -137,7 +137,7 @@ LIBAPI = 0
 
 # Increment this PATCH version before using `charmcraft publish-lib` or reset
 # to 0 if you are raising the major API version
-LIBPATCH = 3
+LIBPATCH = 5
 
 logger = logging.getLogger(__name__)
 
@@ -250,7 +250,7 @@ class HostPath:
         if submodules:
             for submodule in submodules.keys():
                 self.sub_module_dict[submodule] = SubModule(
-                    sub_module_path=self.mount_path + "/" + submodule,
+                    sub_module_path=self.mount_path + "/" + submodule + "/" + submodules[submodule].split("/")[-1],
                     container_path=submodules[submodule],
                 )
         else:
index df3da94..d739ba6 100644 (file)
@@ -137,7 +137,7 @@ LIBAPI = 0
 
 # Increment this PATCH version before using `charmcraft publish-lib` or reset
 # to 0 if you are raising the major API version
-LIBPATCH = 3
+LIBPATCH = 5
 
 logger = logging.getLogger(__name__)
 
@@ -250,7 +250,7 @@ class HostPath:
         if submodules:
             for submodule in submodules.keys():
                 self.sub_module_dict[submodule] = SubModule(
-                    sub_module_path=self.mount_path + "/" + submodule,
+                    sub_module_path=self.mount_path + "/" + submodule + "/" + submodules[submodule].split("/")[-1],
                     container_path=submodules[submodule],
                 )
         else:
index df3da94..d739ba6 100644 (file)
@@ -137,7 +137,7 @@ LIBAPI = 0
 
 # Increment this PATCH version before using `charmcraft publish-lib` or reset
 # to 0 if you are raising the major API version
-LIBPATCH = 3
+LIBPATCH = 5
 
 logger = logging.getLogger(__name__)
 
@@ -250,7 +250,7 @@ class HostPath:
         if submodules:
             for submodule in submodules.keys():
                 self.sub_module_dict[submodule] = SubModule(
-                    sub_module_path=self.mount_path + "/" + submodule,
+                    sub_module_path=self.mount_path + "/" + submodule + "/" + submodules[submodule].split("/")[-1],
                     container_path=submodules[submodule],
                 )
         else:
index df3da94..d739ba6 100644 (file)
@@ -137,7 +137,7 @@ LIBAPI = 0
 
 # Increment this PATCH version before using `charmcraft publish-lib` or reset
 # to 0 if you are raising the major API version
-LIBPATCH = 3
+LIBPATCH = 5
 
 logger = logging.getLogger(__name__)
 
@@ -250,7 +250,7 @@ class HostPath:
         if submodules:
             for submodule in submodules.keys():
                 self.sub_module_dict[submodule] = SubModule(
-                    sub_module_path=self.mount_path + "/" + submodule,
+                    sub_module_path=self.mount_path + "/" + submodule + "/" + submodules[submodule].split("/")[-1],
                     container_path=submodules[submodule],
                 )
         else:
index df3da94..d739ba6 100644 (file)
@@ -137,7 +137,7 @@ LIBAPI = 0
 
 # Increment this PATCH version before using `charmcraft publish-lib` or reset
 # to 0 if you are raising the major API version
-LIBPATCH = 3
+LIBPATCH = 5
 
 logger = logging.getLogger(__name__)
 
@@ -250,7 +250,7 @@ class HostPath:
         if submodules:
             for submodule in submodules.keys():
                 self.sub_module_dict[submodule] = SubModule(
-                    sub_module_path=self.mount_path + "/" + submodule,
+                    sub_module_path=self.mount_path + "/" + submodule + "/" + submodules[submodule].split("/")[-1],
                     container_path=submodules[submodule],
                 )
         else:
index 0c5ab9a..e112d4c 100755 (executable)
@@ -59,6 +59,7 @@ ro_host_paths = {
     "RO-SDN-ietfl2vpn": "/usr/lib/python3/dist-packages/osm_rosdn_ietfl2vpn",
     "RO-SDN-juniper_contrail": "/usr/lib/python3/dist-packages/osm_rosdn_juniper_contrail",
     "RO-SDN-odl_openflow": "/usr/lib/python3/dist-packages/osm_rosdn_odlof",
+    "RO-SDN-onos_openflow": "/usr/lib/python3/dist-packages/osm_rosdn_onosof",
     "RO-SDN-onos_vpls": "/usr/lib/python3/dist-packages/osm_rosdn_onos_vpls",
     "RO-VIM-aws": "/usr/lib/python3/dist-packages/osm_rovim_aws",
     "RO-VIM-azure": "/usr/lib/python3/dist-packages/osm_rovim_azure",