openstack 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/openstack/compute/connection.rb +7 -0
- data/lib/openstack/network/connection.rb +12 -0
- data/lib/openstack/volume/connection.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e45a4fa4b60e2d4c6ed538ad2f07b9d3f9c58cc0
|
4
|
+
data.tar.gz: 1ca3386b95f1fcf1a348e48d117da534bcfd0c3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81adf1e03224df17c61fe9696abb83ae03dd97db7b45e39aa32f5847a0e48cec68835370b4643ad02aeb7dc5953d779422133be777f6e3d6bfa74fc76a225f64
|
7
|
+
data.tar.gz: fcd9cff58a6f1438fe1d1a63d42e7cd91a7f3187b9fdb6f3d603525dd509233bfc9a289a2c874ebdece58f71991b77e93d9730e93f101c2f075d1906f98e0c30
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
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.
|
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-
|
15
|
+
date: 2016-10-08 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: mocha
|