diff --git a/sdcm/cluster.py b/sdcm/cluster.py index 78517f0272..29622fb5c2 100644 --- a/sdcm/cluster.py +++ b/sdcm/cluster.py @@ -1792,7 +1792,6 @@ def download_scylla_repo(self, scylla_repo): self.install_package('gnupg2') self.remoter.sudo("mkdir -p /etc/apt/keyrings") for apt_key in self.parent_cluster.params.get("scylla_apt_keys"): - self.remoter.sudo(f"apt-key adv --keyserver keyserver.ubuntu.com --recv-keys {apt_key}", retry=3) self.remoter.sudo(f"gpg --homedir /tmp --no-default-keyring --keyring /etc/apt/keyrings/scylladb.gpg " f"--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys {apt_key}", retry=3) self.update_repo_cache() @@ -1812,7 +1811,6 @@ def download_scylla_manager_repo(self, scylla_repo: str) -> None: if self.distro.is_debian_like: self.remoter.sudo("mkdir -p /etc/apt/keyrings") for apt_key in self.parent_cluster.params.get("scylla_apt_keys"): - self.remoter.sudo(f"apt-key adv --keyserver keyserver.ubuntu.com --recv-keys {apt_key}", retry=3) self.remoter.sudo(f"gpg --homedir /tmp --no-default-keyring --keyring /etc/apt/keyrings/scylladb.gpg " f"--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys {apt_key}", retry=3) self.remoter.sudo("apt-get update", ignore_status=True)