diff options
author | Gil Bregman <gbregman@il.ibm.com> | 2025-01-16 13:21:33 +0100 |
---|---|---|
committer | Gil Bregman <gbregman@il.ibm.com> | 2025-01-16 17:48:28 +0100 |
commit | 42bac97b53e2cc618070b72fab8bb1c2485ceceb (patch) | |
tree | 18024cc87bc33285ce5f31821811f293812b365a /src/pybind/mgr/cephadm/services/nvmeof.py | |
parent | Merge pull request #61349 from VallariAg/wip-vallari-nvmeof-ceph-version (diff) | |
download | ceph-42bac97b53e2cc618070b72fab8bb1c2485ceceb.tar.xz ceph-42bac97b53e2cc618070b72fab8bb1c2485ceceb.zip |
mgr/cephadm/nvmeof: Add SPDK iobuf options field to NVMeOF configuration
Fixes https://tracker.ceph.com/issues/69554
Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
Diffstat (limited to 'src/pybind/mgr/cephadm/services/nvmeof.py')
-rw-r--r-- | src/pybind/mgr/cephadm/services/nvmeof.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pybind/mgr/cephadm/services/nvmeof.py b/src/pybind/mgr/cephadm/services/nvmeof.py index b3fd526815e..8acec94f382 100644 --- a/src/pybind/mgr/cephadm/services/nvmeof.py +++ b/src/pybind/mgr/cephadm/services/nvmeof.py @@ -47,6 +47,7 @@ class NvmeofService(CephService): # TODO: check if we can force jinja2 to generate dicts with double quotes instead of using json.dumps transport_tcp_options = json.dumps(spec.transport_tcp_options) if spec.transport_tcp_options else None + iobuf_options = json.dumps(spec.iobuf_options) if spec.iobuf_options else None name = '{}.{}'.format(utils.name_to_config_section('nvmeof'), nvmeof_gw_id) rados_id = name[len('client.'):] if name.startswith('client.') else name @@ -67,6 +68,7 @@ class NvmeofService(CephService): 'rpc_socket_dir': '/var/tmp/', 'rpc_socket_name': 'spdk.sock', 'transport_tcp_options': transport_tcp_options, + 'iobuf_options': iobuf_options, 'rados_id': rados_id } gw_conf = self.mgr.template.render('services/nvmeof/ceph-nvmeof.conf.j2', context) |