azure-armrest 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39ae852a7c1d574a83dde09cd448745e2e881388
4
- data.tar.gz: 48c5a7219743e3b5aea2c0ca8270c7a26d9c1be2
3
+ metadata.gz: 74bb8a3af14d347ed47d16bfedd8d610ee487289
4
+ data.tar.gz: 99bc7c02d7a5bf8d5972f3551a2629f212bd9ae7
5
5
  SHA512:
6
- metadata.gz: b368e813ee681505fa2d3e5bf7d53fc86a14a410d72b00208645886e3b6c98c903d67ea5669ea96ef73dc574aa2c42ea349474eaee2e25cb482e16eb72e93884
7
- data.tar.gz: 56abea12095d06f948eda3c6fae8bf778bede353ecdfa4df2d331d34b64e3a9b275c767bad45f7788b1c237edc44cafbd76aae837d0f881549a470c65fbd0cdf
6
+ metadata.gz: b3fb8f96855a6d11893fe8be0b44db591b2aea35197d8c1e303c01769c124fbd55719844b575eebad50aff32d489a727b332aa4a230e6fdb36664edbde4d78d3
7
+ data.tar.gz: 45da2361f44891bd3919954d89e4a58981aac02f08c1f4a8541fe31cfc23e3f96151a3e59e5fa9c076fe68f74f85a16c93669515fabaa89fae863a79ba3e5c80
data/CHANGES CHANGED
@@ -1,3 +1,10 @@
1
+ = 0.7.3 - 11-May-2017
2
+ * Added guards against ECONNREFUSED and TimeoutException for the
3
+ StorageAccountService#get_private_images and StorageAccount#all_blobs
4
+ methods. These errors are sporadic and could cause some of our inner
5
+ looping methods to fail. Consequently, they are now just logged with
6
+ a warning and skipped.
7
+
1
8
  = 0.7.2 - 26-Apr-2017
2
9
  * Added the Storage::DiskService#get_blob_raw method. This is similar to the
3
10
  StorageAccount#get_blob_raw method, but works for managed disks.
@@ -274,7 +274,13 @@ module Azure
274
274
  mutex = Mutex.new
275
275
 
276
276
  Parallel.each(containers(key), :in_threads => max_threads) do |container|
277
- mutex.synchronize { array.concat(blobs(container.name, key)) }
277
+ begin
278
+ mutex.synchronize { array.concat(blobs(container.name, key)) }
279
+ rescue Errno::ECONNREFUSED, Azure::Armrest::TimeoutException => err
280
+ msg "Unable to gather blob information for #{container.name}: #{err}"
281
+ log('warn', msg)
282
+ next
283
+ end
278
284
  end
279
285
 
280
286
  array
@@ -292,7 +292,15 @@ module Azure
292
292
  next unless File.extname(blob.name).casecmp('.vhd') == 0
293
293
  next unless blob.properties.lease_state.casecmp('available') == 0
294
294
 
295
- blob_properties = storage_account.blob_properties(blob.container, blob.name, key)
295
+ # In rare cases the endpoint will be unreachable. Warn and move on.
296
+ begin
297
+ blob_properties = storage_account.blob_properties(blob.container, blob.name, key)
298
+ rescue Errno::ECONNREFUSED, Azure::Armrest::TimeoutException => err
299
+ msg = "Unable to collect blob properties for #{blob.name}/#{blob.container}: #{err}"
300
+ log('warn', msg)
301
+ next
302
+ end
303
+
296
304
  next unless blob_properties.respond_to?(:x_ms_meta_microsoftazurecompute_osstate)
297
305
  next unless blob_properties.x_ms_meta_microsoftazurecompute_osstate.casecmp('generalized') == 0
298
306
 
@@ -1,6 +1,6 @@
1
1
  module Azure
2
2
  module Armrest
3
3
  # The version of the azure-armrest library.
4
- VERSION = '0.7.2'.freeze
4
+ VERSION = '0.7.3'.freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-armrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-04-26 00:00:00.000000000 Z
14
+ date: 2017-05-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  version: '0'
300
300
  requirements: []
301
301
  rubyforge_project:
302
- rubygems_version: 2.6.11
302
+ rubygems_version: 2.5.2
303
303
  signing_key:
304
304
  specification_version: 4
305
305
  summary: An interface for ARM/JSON Azure REST API