From 4a1177ffb19c76b496aeba68ddf0f8739ad64019 Mon Sep 17 00:00:00 2001 From: Carlos da Silva Date: Fri, 29 Aug 2025 17:26:03 -0300 Subject: [PATCH] Fixes an issue that prevented ensure shares to be run A typo in the URL for ensure shares was created and the API endpoint did not match as a result. Fixed the issue by replacing '_' by '-' to match the endpoint correctly. Closes-bug: #2109376 Change-Id: I025d0f853bced49a2d484dc75db809b3d7edb498 Signed-off-by: Carlos da Silva (cherry picked from commit 43ee9f0e59e6c44d3975e31129aefb124c96473d) (cherry picked from commit b44aae26b80e21db3f3c803ea5259fa7f58573e4) --- manilaclient/v2/services.py | 2 +- ...g-2109376-fix-ensure-shares-command-69feb1794fea418a.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-2109376-fix-ensure-shares-command-69feb1794fea418a.yaml diff --git a/manilaclient/v2/services.py b/manilaclient/v2/services.py index f87fff6a1..0fd288c32 100644 --- a/manilaclient/v2/services.py +++ b/manilaclient/v2/services.py @@ -89,7 +89,7 @@ class ServiceManager(base.Manager): @api_versions.wraps("2.86") def ensure_shares(self, host): # noqa - resource_path = f'{RESOURCE_PATH}/ensure_shares' + resource_path = f'{RESOURCE_PATH}/ensure-shares' body = {"host": host} return self.api.client.post(resource_path, body=body) diff --git a/releasenotes/notes/bug-2109376-fix-ensure-shares-command-69feb1794fea418a.yaml b/releasenotes/notes/bug-2109376-fix-ensure-shares-command-69feb1794fea418a.yaml new file mode 100644 index 000000000..03cf4ac95 --- /dev/null +++ b/releasenotes/notes/bug-2109376-fix-ensure-shares-command-69feb1794fea418a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed an issue while running ensure shares and getting a not found + response. The command should now work properly.