Skip to content

Commit 2d6bc73

Browse files
committed
Dev: bootstrap: Remove unused function join_remote_auth
Since /etc/pacemaker/authkey will be synced from init node
1 parent 1b89f20 commit 2d6bc73

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

crmsh/bootstrap.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,6 @@ def bootstrap_join(context):
22632263
service_manager = ServiceManager()
22642264
_context.node_list_in_cluster = utils.fetch_cluster_node_list_from_node(cluster_node)
22652265
setup_passwordless_with_other_nodes(cluster_node, remote_user)
2266-
join_remote_auth(cluster_node, remote_user)
22672266
_context.skip_csync2 = not service_manager.service_is_active(CSYNC2_SERVICE, cluster_node)
22682267
if _context.skip_csync2:
22692268
service_manager.stop_service(CSYNC2_SERVICE, disable=True)
@@ -2293,14 +2292,6 @@ def join_ocfs2(peer_host, peer_user):
22932292
ocfs2_inst.join_ocfs2(peer_host)
22942293

22952294

2296-
def join_remote_auth(node, user):
2297-
if os.path.exists(PCMK_REMOTE_AUTH):
2298-
utils.rmfile(PCMK_REMOTE_AUTH)
2299-
pcmk_remote_dir = os.path.dirname(PCMK_REMOTE_AUTH)
2300-
utils.mkdirs_owned(pcmk_remote_dir, mode=0o750, gid="haclient")
2301-
utils.touch(PCMK_REMOTE_AUTH)
2302-
2303-
23042295
def remove_qdevice() -> None:
23052296
"""
23062297
Remove qdevice service and configuration from cluster

crmsh/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,6 @@ def chmod(path, mod):
477477
fatal("Failed to chmod {}: {}".format(path, err))
478478

479479

480-
def touch(file_name):
481-
rc, out, err = ShellUtils().get_stdout_stderr("touch " + file_name, no_reg=True)
482-
if rc != 0:
483-
rc, out, err = ShellUtils().get_stdout_stderr("sudo touch " + file_name, no_reg=True)
484-
if rc != 0:
485-
fatal("Failed create file {}: {}".format(file_name, err))
486-
487-
488480
def copy_local_file(src, dest):
489481
try:
490482
shutil.copyfile(src, dest)

0 commit comments

Comments
 (0)