Skip to content

Commit

Permalink
Merge pull request #24513 from redpanda-data/DEVPROD-1918
Browse files Browse the repository at this point in the history
[rptest] RedpandaInstaller async download rework
  • Loading branch information
clee authored Jan 8, 2025
2 parents d869996 + c3d358f commit f6f74c2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/rptest/services/redpanda_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,16 @@ def _async_download_on_node_unlocked(self, node, version):
"""
version_root = self.root_for_version(version)

results = []
tgz = "redpanda.tar.gz"
cmd = f"curl -vfsSL {self._version_package_url(version)} --retry 3 --retry-connrefused --retry-delay 2 --create-dir -o {version_root}/{tgz} && echo 'curl finished successfully' && gunzip -c {version_root}/{tgz} | tar -xf - -C {version_root} && echo 'tarball extraction finished successfully' && rm {version_root}/{tgz} && echo 'tarball cleanup finished successfully'"
return node.account.ssh_capture(cmd)
cmds = [
f"curl -vfsSL {self._version_package_url(version)} --retry 3 --retry-connrefused --retry-delay 2 --create-dir -o {version_root}/{tgz}",
f"gunzip -c {version_root}/{tgz} | tar -xf - -C {version_root}",
f"rm {version_root}/{tgz}"
]
for cmd in cmds:
results.extend(node.account.ssh_capture(cmd))
return results

def reset_current_install(self, nodes):
"""
Expand Down

0 comments on commit f6f74c2

Please sign in to comment.