From: Gil Bregman Date: Thu, 12 Sep 2024 10:04:31 +0000 (+0000) Subject: mgr/cephadm: Default core mask for SPDK should be set in NVMEof spec file X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4a093a14363b7d85d83a36d821137852af22a176;p=ceph-ci.git mgr/cephadm: Default core mask for SPDK should be set in NVMEof spec file Resolves: rhbz#2311040 --- diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 9d2fd64d7d1..bd78406dc95 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -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