Skip to content

Commit 3e958a6

Browse files
committed
mgr/cephadm: conflict resolution for cephadm NFS BYOK support 8.1z1
Signed-off-by: Adam King <[email protected]> Resolves: rhbz#2373703
1 parent d4c8375 commit 3e958a6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/pybind/mgr/cephadm/services/nfs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,16 @@ def prepare_create(self, daemon_spec: CephadmDaemonDeploySpec) -> CephadmDaemonD
7272
def get_daemon_nodeid(self, service_name: str, rank: Optional[int]) -> str:
7373
out = self.mgr.get_store('nfs_services_with_old_nodeid')
7474
if out and service_name in out.split(','):
75-
return f'{service_name}.{rank}'
75+
return f'{service_name}.{rank}'
7676
return str(rank)
7777

7878
@classmethod
7979
def get_dependencies(
8080
cls,
8181
mgr: "CephadmOrchestrator",
8282
spec: Optional[ServiceSpec] = None,
83-
daemon_type: Optional[str] = None
83+
daemon_type: Optional[str] = None,
84+
hostname: Optional[str] = None
8485
) -> List[str]:
8586
deps: List[str] = []
8687
if not spec:

src/pybind/mgr/cephadm/tests/test_services.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3747,8 +3747,6 @@ def test_nfs_config_bind_addr(self, _run_cephadm, cephadm_module: CephadmOrchest
37473747
ganesha_conf = nfs_generated_conf['files']['ganesha.conf']
37483748
assert "Bind_addr = 1.2.3.7" in ganesha_conf
37493749

3750-
3751-
class TestNFS:
37523750
@patch("cephadm.serve.CephadmServe._run_cephadm")
37533751
@patch("cephadm.services.nfs.NFSService.fence_old_ranks", MagicMock())
37543752
@patch("cephadm.services.nfs.NFSService.run_grace_tool", MagicMock())

src/pybind/mgr/nfs/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ def create_nfs_cluster(
196196
virtual_ip,
197197
ingress_mode,
198198
port,
199+
enable_virtual_server,
199200
kmip_cert,
200201
kmip_key,
201202
kmip_ca_cert,
202203
kmip_host_list,
203-
enable_virtual_server
204204
)
205205
return
206206
raise NonFatalError(f"{cluster_id} cluster already exists")

0 commit comments

Comments
 (0)