From 8675e580f375a52b790c899420cebae973ea0c7f Mon Sep 17 00:00:00 2001 From: Gulsum Atici Date: Tue, 10 Jan 2023 01:38:31 +0300 Subject: [PATCH] Fixing hostpath problem in debug mode for ro charm 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 --- installers/charm/osm-lcm/lib/charms/osm_libs/v0/utils.py | 4 ++-- installers/charm/osm-mon/lib/charms/osm_libs/v0/utils.py | 4 ++-- installers/charm/osm-nbi/lib/charms/osm_libs/v0/utils.py | 4 ++-- installers/charm/osm-ng-ui/lib/charms/osm_libs/v0/utils.py | 4 ++-- installers/charm/osm-pol/lib/charms/osm_libs/v0/utils.py | 4 ++-- installers/charm/osm-ro/lib/charms/osm_libs/v0/utils.py | 4 ++-- installers/charm/osm-ro/src/charm.py | 1 + 7 files changed, 13 insertions(+), 12 deletions(-) diff --git a/installers/charm/osm-lcm/lib/charms/osm_libs/v0/utils.py b/installers/charm/osm-lcm/lib/charms/osm_libs/v0/utils.py index df3da94e..d739ba68 100644 --- a/installers/charm/osm-lcm/lib/charms/osm_libs/v0/utils.py +++ b/installers/charm/osm-lcm/lib/charms/osm_libs/v0/utils.py @@ -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: diff --git a/installers/charm/osm-mon/lib/charms/osm_libs/v0/utils.py b/installers/charm/osm-mon/lib/charms/osm_libs/v0/utils.py index df3da94e..d739ba68 100644 --- a/installers/charm/osm-mon/lib/charms/osm_libs/v0/utils.py +++ b/installers/charm/osm-mon/lib/charms/osm_libs/v0/utils.py @@ -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: diff --git a/installers/charm/osm-nbi/lib/charms/osm_libs/v0/utils.py b/installers/charm/osm-nbi/lib/charms/osm_libs/v0/utils.py index df3da94e..d739ba68 100644 --- a/installers/charm/osm-nbi/lib/charms/osm_libs/v0/utils.py +++ b/installers/charm/osm-nbi/lib/charms/osm_libs/v0/utils.py @@ -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: diff --git a/installers/charm/osm-ng-ui/lib/charms/osm_libs/v0/utils.py b/installers/charm/osm-ng-ui/lib/charms/osm_libs/v0/utils.py index df3da94e..d739ba68 100644 --- a/installers/charm/osm-ng-ui/lib/charms/osm_libs/v0/utils.py +++ b/installers/charm/osm-ng-ui/lib/charms/osm_libs/v0/utils.py @@ -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: diff --git a/installers/charm/osm-pol/lib/charms/osm_libs/v0/utils.py b/installers/charm/osm-pol/lib/charms/osm_libs/v0/utils.py index df3da94e..d739ba68 100644 --- a/installers/charm/osm-pol/lib/charms/osm_libs/v0/utils.py +++ b/installers/charm/osm-pol/lib/charms/osm_libs/v0/utils.py @@ -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: diff --git a/installers/charm/osm-ro/lib/charms/osm_libs/v0/utils.py b/installers/charm/osm-ro/lib/charms/osm_libs/v0/utils.py index df3da94e..d739ba68 100644 --- a/installers/charm/osm-ro/lib/charms/osm_libs/v0/utils.py +++ b/installers/charm/osm-ro/lib/charms/osm_libs/v0/utils.py @@ -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: diff --git a/installers/charm/osm-ro/src/charm.py b/installers/charm/osm-ro/src/charm.py index 0c5ab9a3..e112d4cc 100755 --- a/installers/charm/osm-ro/src/charm.py +++ b/installers/charm/osm-ro/src/charm.py @@ -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", -- 2.25.1