Skip to content

Commit

Permalink
feat: ignore unreachable machines when deploying safenodes
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Nov 15, 2023
1 parent a395285 commit bc2f2dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions resources/ansible/nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
hosts: all
become: False
max_fail_percentage: 10
ignore_unreachable: yes
tasks:
- name: copy public logstash certificate to node
copy:
Expand All @@ -14,6 +15,7 @@
hosts: all
become: False
max_fail_percentage: 10
ignore_unreachable: yes
vars:
is_genesis: False
roles:
Expand Down
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,14 +715,16 @@ impl TestnetDeploy {
println!("Retrieving sample peers. This can take several minutes.");
// Todo: RPC into nodes to fetch the multiaddr.
for (_, ip_address) in remaining_nodes_inventory {
let output = self.ssh_client.run_script(
match self.ssh_client.run_script(
&ip_address,
"safe",
PathBuf::from("scripts").join("get_peer_multiaddr.sh"),
true,
)?;
for line in output.iter() {
peers.push(line.to_string());
) {
Ok(output) => {
peers.extend(output);
}
Err(err) => println!("Failed to SSH into {ip_address:?} with err: {err:?}"),
}
}

Expand Down

0 comments on commit bc2f2dd

Please sign in to comment.