vmpooler-provider-vsphere 3.2.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vmpooler/providers/vsphere.rb +7 -4
- data/lib/vmpooler-provider-vsphere/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3993f61e1f93d1b0d899b9004551d873ca88eb2975c5d3286f892cf75e6299fb
|
4
|
+
data.tar.gz: bb24ee80ded8c8f7ae95d4b29539b24115d0d507b26cb8f2bc6d165211c1711b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b11026cd5e1ea73065d6389c069bf98fc7622efa9e68fdd0d1e7beca533d32d3a7e7928b4780635e544b7ac0131f7e99a0835a6e0c141411308a4c794dcad147
|
7
|
+
data.tar.gz: dde0222e755ddd8ffe9fc132f32677472e8ae33630b39cc3a8a6644ea613fc6e00984ce9b1e28b983cf0ab67e51fb6fb41761754df3081d57acec35f03307a3b
|
@@ -555,14 +555,15 @@ module Vmpooler
|
|
555
555
|
true
|
556
556
|
end
|
557
557
|
|
558
|
-
def vm_ready?(pool_name, vm_name)
|
558
|
+
def vm_ready?(pool_name, vm_name, redis)
|
559
559
|
begin
|
560
560
|
domain = domain(pool_name)
|
561
561
|
open_socket(vm_name, domain)
|
562
|
-
rescue StandardError =>
|
562
|
+
rescue StandardError => e
|
563
|
+
redis.hset("vmpooler__vm__#{vm_name}", 'open_socket_error', e.to_s)
|
563
564
|
return false
|
564
565
|
end
|
565
|
-
|
566
|
+
redis.hdel("vmpooler__vm__#{vm_name}", 'open_socket_error')
|
566
567
|
true
|
567
568
|
end
|
568
569
|
|
@@ -598,13 +599,15 @@ module Vmpooler
|
|
598
599
|
boottime = vm_object.runtime.bootTime if vm_object.runtime&.bootTime
|
599
600
|
powerstate = vm_object.runtime.powerState if vm_object.runtime&.powerState
|
600
601
|
|
601
|
-
ip_maxloop =
|
602
|
+
ip_maxloop = 120
|
602
603
|
ip_loop_delay = 1
|
603
604
|
ip_loop_count = 1
|
604
605
|
ip = nil
|
606
|
+
invalid_addresses = /(0|169)\.(0|254)\.\d+\.\d+/
|
605
607
|
while ip.nil?
|
606
608
|
sleep(ip_loop_delay)
|
607
609
|
ip = vm_object.guest_ip
|
610
|
+
ip = nil if !ip.nil? && ip.match?(invalid_addresses)
|
608
611
|
unless ip_maxloop == 0
|
609
612
|
break if ip_loop_count >= ip_maxloop
|
610
613
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmpooler-provider-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|