opennebula 5.11.85.pre → 5.11.90.pre
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 +4 -4
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/host_pool.rb +9 -2
- data/lib/opennebula/virtual_machine.rb +3 -1
- data/lib/opennebula/virtual_machine_pool.rb +6 -3
- 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: 66f5101f43db2d5926a91cf47d329b3195267d3c
|
|
4
|
+
data.tar.gz: 57d61ad0c4d687eadeb7521dc9e7a68c6214ec38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3c263ed781184aad101a456e83909bb0c6c149e3b0e931d4560772bbae13e9888cd4e866e886548eccff3b89b8067e0ec2882052ff930e94da88e4d2c00d657
|
|
7
|
+
data.tar.gz: f79a5e7d90929e2a1fef95e615971d41a82d558597ccac349be2fb7c8ae81b2bcae46ceee57eb5059987ab993fed492887ecec772606d23243a37e81411a7665
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula.rb
CHANGED
data/lib/opennebula/host_pool.rb
CHANGED
|
@@ -99,9 +99,16 @@ module OpenNebula
|
|
|
99
99
|
|
|
100
100
|
# Retrieves the monitoring data for all the Hosts in the pool, in XML
|
|
101
101
|
#
|
|
102
|
+
# @param [Integer] num Optional number of monitoring records to be
|
|
103
|
+
# retrieved. If nill all records are retrieved
|
|
104
|
+
#
|
|
102
105
|
# @return [String] VM monitoring data, in XML
|
|
103
|
-
def monitoring_xml()
|
|
104
|
-
return @client.call(HOST_POOL_METHODS[:monitoring])
|
|
106
|
+
def monitoring_xml(num = nil)
|
|
107
|
+
return @client.call(HOST_POOL_METHODS[:monitoring]) if num.nil?
|
|
108
|
+
|
|
109
|
+
@client.call(HOST_POOL_METHODS[:monitoring], num.to_i)
|
|
105
110
|
end
|
|
111
|
+
|
|
106
112
|
end
|
|
113
|
+
|
|
107
114
|
end
|
|
@@ -122,6 +122,7 @@ module OpenNebula
|
|
|
122
122
|
DISK_RESIZE
|
|
123
123
|
DISK_RESIZE_POWEROFF
|
|
124
124
|
DISK_RESIZE_UNDEPLOYED
|
|
125
|
+
HOTPLUG_NIC_POWEROFF
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
SHORT_VM_STATES={
|
|
@@ -202,7 +203,8 @@ module OpenNebula
|
|
|
202
203
|
"PROLOG_MIGRATE_UNKNOWN_FAILURE" => "fail",
|
|
203
204
|
"DISK_RESIZE" => "drsz",
|
|
204
205
|
"DISK_RESIZE_POWEROFF" => "drsz",
|
|
205
|
-
"DISK_RESIZE_UNDEPLOYED" => "drsz"
|
|
206
|
+
"DISK_RESIZE_UNDEPLOYED" => "drsz",
|
|
207
|
+
"HOTPLUG_NIC_POWEROFF" => "hotp"
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
HISTORY_ACTION=%w{none migrate live-migrate shutdown shutdown-hard
|
|
@@ -199,10 +199,13 @@ module OpenNebula
|
|
|
199
199
|
#
|
|
200
200
|
# @param [Integer] filter_flag Optional filter flag to retrieve all or
|
|
201
201
|
# part of the Pool. Possible values: INFO_ALL, INFO_GROUP, INFO_MINE.
|
|
202
|
-
#
|
|
202
|
+
# @param [Integer] num Optional number of monitoring records to be
|
|
203
|
+
# retrieved. If nill all records are retrieved
|
|
203
204
|
# @return [String] VM monitoring data, in XML
|
|
204
|
-
def monitoring_xml(filter_flag=INFO_ALL)
|
|
205
|
-
return @client.call(VM_POOL_METHODS[:monitoring], filter_flag)
|
|
205
|
+
def monitoring_xml(filter_flag=INFO_ALL, num=nil)
|
|
206
|
+
return @client.call(VM_POOL_METHODS[:monitoring], filter_flag) if num.nil?
|
|
207
|
+
|
|
208
|
+
@client.call(VM_POOL_METHODS[:monitoring], filter_flag, num.to_i)
|
|
206
209
|
end
|
|
207
210
|
|
|
208
211
|
# Processes all the history records, and stores the monthly cost for
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opennebula
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.11.
|
|
4
|
+
version: 5.11.90.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenNebula
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|