Skip to content

Commit

Permalink
Handle IOError exceptions with SSH connections
Browse files Browse the repository at this point in the history
  • Loading branch information
vitobotta committed Aug 18, 2021
1 parent 46749f2 commit ce6be4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
hetzner-k3s (0.3.5)
hetzner-k3s (0.3.6)
bcrypt_pbkdf
ed25519
http
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ Once the cluster is ready you can create persistent volumes out of the box with

## changelog

- 0.3.6
- Retry SSH commands when IO errors occur

- 0.3.5
- Add descriptions for firewall rules

Expand Down
2 changes: 1 addition & 1 deletion lib/hetzner/k3s/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def wait_for_ssh(server)

puts "...server #{server_name} is now up."
end
rescue Errno::ENETUNREACH, Errno::EHOSTUNREACH, Timeout::Error
rescue Errno::ENETUNREACH, Errno::EHOSTUNREACH, Timeout::Error, IOError
retry
end

Expand Down
2 changes: 1 addition & 1 deletion lib/hetzner/k3s/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Hetzner
module K3s
VERSION = "0.3.5"
VERSION = "0.3.6"
end
end

0 comments on commit ce6be4c

Please sign in to comment.