Skip to content

Commit ac1272d

Browse files
authored
Merge pull request #1388 from rackerlabs/cinder-netapp-multiattach
fix(cinder): backport NetApp multiattach paths
2 parents f310fcf + 0b04d6a commit ac1272d

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

containers/cinder/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ RUN --mount=type=cache,target=/root/.cache/uv \
1313

1414
FROM quay.io/airshipit/cinder:${OPENSTACK_VERSION}-ubuntu_jammy AS final
1515

16+
RUN apt-get update && \
17+
apt-get install -y --no-install-recommends \
18+
patch \
19+
quilt \
20+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
21+
1622
RUN --mount=type=cache,target=/root/.cache/pip \
1723
--mount=from=builder,source=/tmp/wheels,target=/tmp/wheels \
1824
/var/lib/openstack/bin/python -m pip install --no-input --find-links /tmp/wheels/ cinder-understack
25+
26+
COPY containers/cinder/patches /tmp/patches/
27+
RUN cd /var/lib/openstack/lib/python3.10/site-packages && \
28+
QUILT_PATCHES=/tmp/patches quilt push -a
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

containers/cinder/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cinder-962085.patch

0 commit comments

Comments
 (0)