egi-fedcloud-vmhound 0.0.2 → 0.0.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59f9e2aa22326c3b20d57eebdd6a6c9c20af61a7
|
|
4
|
+
data.tar.gz: e748665d3c1ae05c2864a18232a32d2d5bfcef7c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a414b844fc63a5a503e7d937561592042b4140dda21cc2b64bf7f5da8b01c9e2af90477a647ebbf3e788ec1dbccec201b533962689c951e4c5bf4ccb599d96a
|
|
7
|
+
data.tar.gz: 362e9c383857a3ca285535e015d5980c4a1bc8fafc571138e142f13d9da9fa809e2698fc74b4a06aad1e9ffbcbc90741355869eeef006aaa7fe41ea1d2be507b
|
|
@@ -3,9 +3,6 @@ require 'opennebula'
|
|
|
3
3
|
#
|
|
4
4
|
class Egi::Fedcloud::Vmhound::Connectors::OpennebulaConnector < Egi::Fedcloud::Vmhound::Connectors::BaseConnector
|
|
5
5
|
|
|
6
|
-
# Number of VMs to process in one iteration
|
|
7
|
-
VM_POOL_BATCH_SIZE = 10000
|
|
8
|
-
|
|
9
6
|
# Initializes a connector instance.
|
|
10
7
|
#
|
|
11
8
|
# @param opts [Hash] options for the connector
|
|
@@ -97,28 +94,16 @@ class Egi::Fedcloud::Vmhound::Connectors::OpennebulaConnector < Egi::Fedcloud::V
|
|
|
97
94
|
def instances_batch_pool(vm_pool)
|
|
98
95
|
fail 'Pool object not provided!' unless vm_pool
|
|
99
96
|
Egi::Fedcloud::Vmhound::Log.debug "[#{self.class}] Iterating over the VM " \
|
|
100
|
-
"pool
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
batch_start, batch_stop,
|
|
111
|
-
OpenNebula::VirtualMachinePool::INFO_NOT_DONE
|
|
112
|
-
)
|
|
113
|
-
Egi::Fedcloud::Vmhound::Log.debug "[#{self.class}] Got #{vm_pool.count.inspect} VMs from pool"
|
|
114
|
-
vm_pool_ary.concat vm_pool.to_a unless vm_pool.count < 1
|
|
115
|
-
|
|
116
|
-
batch_start = batch_stop + 1
|
|
117
|
-
batch_stop += VM_POOL_BATCH_SIZE
|
|
118
|
-
end until vm_pool.count < 1
|
|
119
|
-
|
|
120
|
-
vm_pool_ary.compact!
|
|
121
|
-
vm_pool_ary
|
|
97
|
+
"pool without batch processing"
|
|
98
|
+
|
|
99
|
+
check_retval vm_pool.info(
|
|
100
|
+
OpenNebula::VirtualMachinePool::INFO_ALL,
|
|
101
|
+
-1, -1,
|
|
102
|
+
OpenNebula::VirtualMachinePool::INFO_NOT_DONE
|
|
103
|
+
)
|
|
104
|
+
Egi::Fedcloud::Vmhound::Log.debug "[#{self.class}] Got #{vm_pool.count.inspect} VMs from pool"
|
|
105
|
+
|
|
106
|
+
vm_pool.to_a
|
|
122
107
|
end
|
|
123
108
|
|
|
124
109
|
# Retrieves a list of images.
|