Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(fix-snapshot-importer-ssh-timeout): Add TCP keep alive and server alive interval flags to snapshot_tool SSH command | NPG-0000 #630

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ async def inner():
and ssh_snapshot_tool_path is not None
and ssh_snapshot_tool_output_dir is not None
):
ssh_config = SSHConfig(ssh_keyfile, ssh_destination, ssh_snapshot_tool_path, ssh_snapshot_tool_output_dir)
ssh_config = SSHConfig(
keyfile_path=ssh_keyfile,
destination=ssh_destination,
snapshot_tool_path=ssh_snapshot_tool_path,
snapshot_tool_output_dir=ssh_snapshot_tool_output_dir,
)
else:
if snapshot_tool_ssh:
logger.error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ async def _run_snapshot_tool(self):
snapshot_tool_cmd = (
"ssh"
f" -i {self.ssh_config.keyfile_path}"
" -oTCPKeepAlive=no -oServerAliveInterval=20"
f" {self.ssh_config.destination}"
f" {self.ssh_config.snapshot_tool_path}"
f" --db-user {db_user}"
Expand Down
Loading