openstack 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d38f9aecda8d0669fc12af8dd23ffab397aa9918
4
- data.tar.gz: 6a1b99ea421f84a89820153a1b2388b7d83a4302
3
+ metadata.gz: e45a4fa4b60e2d4c6ed538ad2f07b9d3f9c58cc0
4
+ data.tar.gz: 1ca3386b95f1fcf1a348e48d117da534bcfd0c3f
5
5
  SHA512:
6
- metadata.gz: 827c41dd88de063fb6614dcb3a09f801a632644052a4ea4f4360233eb24d41bce913c7b94b5c904bfa5048d802d932dde26931b5f3e108da22a6a5d2ca9b081e
7
- data.tar.gz: 0fbea0cc05bd5e862c646ebc4b8fe09c21cfd539f06d746828c6e0b82965b486ec974448e08987cf086d20d83253f4f7fe89c756aa4756ecdd6989037050bb8a
6
+ metadata.gz: 81adf1e03224df17c61fe9696abb83ae03dd97db7b45e39aa32f5847a0e48cec68835370b4643ad02aeb7dc5953d779422133be777f6e3d6bfa74fc76a225f64
7
+ data.tar.gz: fcd9cff58a6f1438fe1d1a63d42e7cd91a7f3187b9fdb6f3d603525dd509233bfc9a289a2c874ebdece58f71991b77e93d9730e93f101c2f075d1906f98e0c30
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.3.0
@@ -547,6 +547,13 @@ module Compute
547
547
  JSON.generate(response)
548
548
  end
549
549
 
550
+ # Shows summary statistics for all hypervisors over all compute nodes
551
+ def get_hypervisor_stats
552
+ response = @connection.req('GET', '/os-hypervisors/statistics')
553
+ OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
554
+ JSON.parse(response.body)['hypervisor_statistics']
555
+ end
556
+
550
557
  private
551
558
 
552
559
  def check_extension(name)
@@ -180,6 +180,18 @@ module Network
180
180
  OpenStack::Network::QoSPolicy.new(@connection, JSON.parse(response.body)["policy"])
181
181
  end
182
182
 
183
+ def get_ip_availabilities
184
+ response = @connection.req("GET", "/network-ip-availabilities")
185
+ OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
186
+ JSON.parse(response.body)["network_ip_availabilities"]
187
+ end
188
+
189
+ def get_ip_availability(network_id)
190
+ response = @connection.req("GET", "/network-ip-availabilities/#{network_id}")
191
+ OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
192
+ JSON.parse(response.body)["network_ip_availability"]
193
+ end
194
+
183
195
  end
184
196
 
185
197
  end
@@ -113,6 +113,14 @@ module Volume
113
113
  JSON.parse(response.body)['quota_set']
114
114
  end
115
115
 
116
+ # Lists all back-end storage pools that are known to the scheduler service
117
+ def get_pools(details = true)
118
+ path = details ? "/scheduler-stats/get_pools?detail=true" : "/scheduler-stats/get_pools"
119
+ response = @connection.req('GET', path)
120
+ OpenStack::Exception.raise_exception(response) unless response.code.match(/^20.$/)
121
+ JSON.parse(response.body)['pools']
122
+ end
123
+
116
124
  private
117
125
 
118
126
  #fudge... not clear if volumes support is available as 'native' volume API or
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Prince
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-09-30 00:00:00.000000000 Z
15
+ date: 2016-10-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: mocha