|
| 1 | +From d2c0217a5adfa283bae8f1a1189131c4b83de5f4 Mon Sep 17 00:00:00 2001 |
| 2 | +From: hemanthc < [email protected]> |
| 3 | +Date: Tue, 23 Sep 2025 06:24:58 -0400 |
| 4 | +Subject: [PATCH] [NetApp] Fixed NVMe over TCP multipath attach path issue |
| 5 | + |
| 6 | +Initially Netapp used to handle a single nvme path. |
| 7 | +With this fix, we have enhanced it to handle multiple |
| 8 | +paths. |
| 9 | + |
| 10 | +Change-Id: If09b206f719645c1358868ae7ae1422982f732f5 |
| 11 | +Signed-off-by: hemanthc < [email protected]> |
| 12 | +--- |
| 13 | + |
| 14 | +diff --git a/cinder/volume/drivers/netapp/dataontap/nvme_library.py b/cinder/volume/drivers/netapp/dataontap/nvme_library.py |
| 15 | +index 81e0e62..68113a0 100644 |
| 16 | +--- a/cinder/volume/drivers/netapp/dataontap/nvme_library.py |
| 17 | ++++ b/cinder/volume/drivers/netapp/dataontap/nvme_library.py |
| 18 | +@@ -726,11 +726,12 @@ |
| 19 | + raise exception.VolumeBackendAPIException( |
| 20 | + data=msg % name) |
| 21 | + |
| 22 | +- portal = (target_portals[0], self.NVME_PORT, self.NVME_TRANSPORT) |
| 23 | ++ portals = [(ip, self.NVME_PORT, |
| 24 | ++ self.NVME_TRANSPORT) for ip in target_portals] |
| 25 | + data = { |
| 26 | + "target_nqn": str(target_nqn), |
| 27 | + "host_nqn": host_nqn, |
| 28 | +- "portals": [portal], |
| 29 | ++ "portals": portals, |
| 30 | + "vol_uuid": namespace_uuid |
| 31 | + } |
| 32 | + conn_info = {"driver_volume_type": "nvmeof", "data": data} |
| 33 | +diff --git a/releasenotes/notes/bug-2121791-fixing-nvme-multipath-issue-389c393b6c4b33fc.yaml b/releasenotes/notes/bug-2121791-fixing-nvme-multipath-issue-389c393b6c4b33fc.yaml |
| 34 | +new file mode 100644 |
| 35 | +index 0000000..1ff27fb |
| 36 | +--- /dev/null |
| 37 | ++++ b/releasenotes/notes/bug-2121791-fixing-nvme-multipath-issue-389c393b6c4b33fc.yaml |
| 38 | +@@ -0,0 +1,6 @@ |
| 39 | ++--- |
| 40 | ++fixes: |
| 41 | ++ - | |
| 42 | ++ NetApp driver `bug #2121791 |
| 43 | ++ <https://bugs.launchpad.net/cinder/+bug/2121791>`_: Fixed |
| 44 | ++ Fixed NVMe over TCP multipath issue |
0 commit comments