Skip to content

Conversation

@gadididi
Copy link
Contributor

@gadididi gadididi commented Dec 29, 2025

Describe what this PR does

Add new option in nvmeof storageClass "networkMask" . This property can replace the exists property "listeners"
Instead of search and add every GW ip and host name in SC and every redeploy the GW the Admin should reedit this file.. the admin just need by one searching of the subnet mask of the deployment, and add it to the SC , and that's it!

the Auto listener feature was merged into nvmeof GW:
ceph/ceph-nvmeof#1381
it means, the nvmeof creates the listeners automictically, and no need to provide the IPs. it searches them by its own.

Is there anything that requires special attention

  • This feature is added (and not replaced) because the auto listeners is not supported in old Ceph (and nvmeof) versions. I could not test it in ODF env.

Future concerns

once this PR #5890 is merged, rebase this PR to devel and can review it.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow
    guidelines in the developer
    guide
    .
  • Reviewed the developer guide on Submitting a Pull
    Request
  • Pending release
    notes

    updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

Bumps to the devel latest.
proto file in nvmeof repo has been updated.

Signed-off-by: gadi-didi <gadi.didi@ibm.com>
@gadididi gadididi requested a review from nixpanic December 29, 2025 12:50
@gadididi gadididi self-assigned this Dec 29, 2025
@gadididi gadididi added the component/nvme-of Issues and PRs related to NVMe-oF. label Dec 29, 2025
@gadididi gadididi changed the title nvmeof: add auto listeners nvmeof: add auto listeners feature into NVMe-oF CSI driver Dec 29, 2025
add ListListeners grpc query to fetch the current
listener list for specific subsystem.
added because auto-listener feature creates automatically
listeners, and the listeners list is needed for the node-server.

Signed-off-by: gadi-didi <gadi.didi@ibm.com>
add the option "networkMask" in SC. This
option is intoduced to replace the listener list entry
in the SC. with this param the admin does need to know
what are GWs IPs. just needs to provide the network mask
of the deployment. one way to get it, by run
`oc get network.config/cluster -o \
 jsonpath='{.status.clusterNetwork[*].cidr}'`
then, assign the value in networkMask field,
and that's it.

Signed-off-by: gadi-didi <gadi.didi@ibm.com>
add the networkMask param into create subsystem call.

Signed-off-by: gadi-didi <gadi.didi@ibm.com>
@gadididi gadididi force-pushed the nvmeof/add_auto_listeners branch from 99962d5 to 2d1d4eb Compare December 30, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/nvme-of Issues and PRs related to NVMe-oF.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant