From 8b110e46f290175da8f50bb38ad13f4ca4c186f4 Mon Sep 17 00:00:00 2001 From: Alexander Indenbaum Date: Sun, 11 Aug 2024 08:22:51 +0000 Subject: [PATCH 1/2] spdk nvmf_subsystem_set_ns_ana_group https://review.spdk.io/gerrit/c/spdk/spdk/+/24059 https://review.spdk.io/gerrit/c/spdk/spdk/+/24060 Signed-off-by: Alexander Indenbaum --- spdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spdk b/spdk index a16bb032..cd16195a 160000 --- a/spdk +++ b/spdk @@ -1 +1 @@ -Subproject commit a16bb032516da05ea2b7c38fd0ad18e8a7190440 +Subproject commit cd16195a3dc914ea445e90b9cc8ba3211e17b267 From 00740eca8cb9d64f6ef61543d74d46d022261f43 Mon Sep 17 00:00:00 2001 From: Leonid Chernin Date: Mon, 12 Aug 2024 08:23:42 +0000 Subject: [PATCH 2/2] update grps code for changed spdk api nvmf_subsystem_set_ns_ana_group Signed-off-by: Leonid Chernin --- control/grpc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/control/grpc.py b/control/grpc.py index 55ea9303..9800c6cc 100644 --- a/control/grpc.py +++ b/control/grpc.py @@ -1122,13 +1122,14 @@ def namespace_change_load_balancing_group_safe(self, request, context): return pb2.req_status(status=errno.ENOENT, error_message=errmsg) try: - ret = rpc_nvmf.nvmf_subsystem_set_ns_anagrpid( + ret = rpc_nvmf.nvmf_subsystem_set_ns_ana_group( self.spdk_rpc_client, nqn=request.subsystem_nqn, nsid=request.nsid, - anagrpid=request.anagrpid + anagrpid=request.anagrpid, + transit_anagrpid=0 ) - self.logger.debug(f"nvmf_subsystem_set_ns_anagrpid: {ret}") + self.logger.debug(f"nvmf_subsystem_set_ns_ana_group: {ret}") except Exception as ex: errmsg = f"{change_lb_group_failure_prefix}:\n{ex}" resp = self.parse_json_exeption(ex)