Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions containers/cinder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ RUN --mount=type=cache,target=/root/.cache/uv \

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

RUN apt-get update && \
apt-get install -y --no-install-recommends \
patch \
quilt \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

RUN --mount=type=cache,target=/root/.cache/pip \
--mount=from=builder,source=/tmp/wheels,target=/tmp/wheels \
/var/lib/openstack/bin/python -m pip install --no-input --find-links /tmp/wheels/ cinder-understack

COPY containers/cinder/patches /tmp/patches/
RUN cd /var/lib/openstack/lib/python3.10/site-packages && \
QUILT_PATCHES=/tmp/patches quilt push -a
44 changes: 44 additions & 0 deletions containers/cinder/patches/cinder-962085.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
From d2c0217a5adfa283bae8f1a1189131c4b83de5f4 Mon Sep 17 00:00:00 2001
From: hemanthc <hemanth.c@netapp.com>
Date: Tue, 23 Sep 2025 06:24:58 -0400
Subject: [PATCH] [NetApp] Fixed NVMe over TCP multipath attach path issue

Initially Netapp used to handle a single nvme path.
With this fix, we have enhanced it to handle multiple
paths.

Change-Id: If09b206f719645c1358868ae7ae1422982f732f5
Signed-off-by: hemanthc <hemanthc@netapp.com>
---

diff --git a/cinder/volume/drivers/netapp/dataontap/nvme_library.py b/cinder/volume/drivers/netapp/dataontap/nvme_library.py
index 81e0e62..68113a0 100644
--- a/cinder/volume/drivers/netapp/dataontap/nvme_library.py
+++ b/cinder/volume/drivers/netapp/dataontap/nvme_library.py
@@ -726,11 +726,12 @@
raise exception.VolumeBackendAPIException(
data=msg % name)

- portal = (target_portals[0], self.NVME_PORT, self.NVME_TRANSPORT)
+ portals = [(ip, self.NVME_PORT,
+ self.NVME_TRANSPORT) for ip in target_portals]
data = {
"target_nqn": str(target_nqn),
"host_nqn": host_nqn,
- "portals": [portal],
+ "portals": portals,
"vol_uuid": namespace_uuid
}
conn_info = {"driver_volume_type": "nvmeof", "data": data}
diff --git a/releasenotes/notes/bug-2121791-fixing-nvme-multipath-issue-389c393b6c4b33fc.yaml b/releasenotes/notes/bug-2121791-fixing-nvme-multipath-issue-389c393b6c4b33fc.yaml
new file mode 100644
index 0000000..1ff27fb
--- /dev/null
+++ b/releasenotes/notes/bug-2121791-fixing-nvme-multipath-issue-389c393b6c4b33fc.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+ - |
+ NetApp driver `bug #2121791
+ <https://bugs.launchpad.net/cinder/+bug/2121791>`_: Fixed
+ Fixed NVMe over TCP multipath issue
1 change: 1 addition & 0 deletions containers/cinder/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cinder-962085.patch
Loading