ironfan 4.9.1 → 4.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ # v4.9.2
2
+ * Ec2::Machine: trying a more brute-force solution to 'server went away' bug
3
+
1
4
  # v4.9.1
2
5
  * adding missed rbvmomi dependency
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.9.1
1
+ 4.9.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ironfan"
8
- s.version = "4.9.1"
8
+ s.version = "4.9.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Infochimps"]
12
- s.date = "2013-04-09"
12
+ s.date = "2013-04-15"
13
13
  s.description = "Ironfan allows you to orchestrate not just systems but clusters of machines. It includes a powerful layer on top of knife and a collection of cloud cookbooks."
14
14
  s.email = "coders@infochimps.com"
15
15
  s.extra_rdoc_files = [
@@ -170,13 +170,19 @@ module Ironfan
170
170
  computer.machine = machine
171
171
  remember machine, :id => computer.name
172
172
 
173
- # AWS sometimes takes too long to respond for this block's liking.
174
- # Expand its wait interval, so that it doesn't just bomb out
175
- # after three quick failures in succession.
176
- # For more info, see:
177
- # - http://rubydoc.info/gems/fog/1.9.0/Fog/Model#wait_for-instance_method
178
- # - https://github.com/fog/fog/blob/master/lib/fog/core/wait_for.rb
179
- fog_server.wait_for(Fog.timeout, 5) { ready? }
173
+ # Trying a more brute force "I tell you 3 times", to get around
174
+ # https://github.com/infochimps-labs/ironfan/issues/271
175
+ begin
176
+ fog_server.wait_for { ready? }
177
+ rescue Fog::Errors::Error => e
178
+ try ||= 0
179
+ raise if try > 3
180
+ try += 1
181
+ pause_for = 3 * try
182
+ ui.info "Rescue ##{try} for #{e}, sleeping #{pause_for} seconds"
183
+ sleep pause_for
184
+ retry
185
+ end
180
186
  end
181
187
 
182
188
  # tag the computer correctly
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ironfan
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.1
4
+ version: 4.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-09 00:00:00.000000000 Z
12
+ date: 2013-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -359,7 +359,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  segments:
361
361
  - 0
362
- hash: 2375484175096244469
362
+ hash: -1939807353001774463
363
363
  required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  none: false
365
365
  requirements: