]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: Default core mask for SPDK should be set in NVMEof spec file
authorGil Bregman <gbregman@redhat.com>
Thu, 12 Sep 2024 10:04:31 +0000 (10:04 +0000)
committerAlexander Indenbaum <aindenba@redhat.com>
Wed, 19 Nov 2025 18:41:52 +0000 (20:41 +0200)
Resolves: rhbz#2311040

src/python-common/ceph/deployment/service_spec.py

index 9d2fd64d7d101d99ead734233a40d97b2d12386c..bd78406dc9513234b587087989bef1c49136d987 100644 (file)
@@ -1445,6 +1445,10 @@ class NvmeofServiceSpec(ServiceSpec):
         self.transport_tcp_options: Optional[Dict[str, int]] = transport_tcp_options
         #: ``tgt_cmd_extra_args`` extra arguments for the nvmf_tgt process
         self.tgt_cmd_extra_args = tgt_cmd_extra_args
+        if not self.tgt_cmd_extra_args:
+            self.tgt_cmd_extra_args = '--cpumask=0xF'
+        elif '--cpumask' not in self.tgt_cmd_extra_args:
+            self.tgt_cmd_extra_args = self.tgt_cmd_extra_args + ' --cpumask=0xF'
         #: ``discovery_addr`` address of the discovery service
         self.discovery_addr = discovery_addr
         #: ``discovery_port`` port of the discovery service