mirror of
https://github.com/puppetlabs/vmpooler-provider-ec2.git
synced 2026-01-26 10:28:41 -05:00
adding debug
This commit is contained in:
parent
b178aba883
commit
cab859272e
1 changed files with 2 additions and 1 deletions
|
|
@ -391,9 +391,10 @@ module Vmpooler
|
||||||
# TODO: we could use a healthcheck resource attached to instance
|
# TODO: we could use a healthcheck resource attached to instance
|
||||||
domain_set = domain || global_config[:config]['domain']
|
domain_set = domain || global_config[:config]['domain']
|
||||||
if domain_set.nil?
|
if domain_set.nil?
|
||||||
vm_ip = get_vm(pool_name, vm_name)['private_ip_address']
|
vm_ip = get_vm(pool_name, vm_name)['private_dns_name']
|
||||||
vm_name = vm_ip unless vm_ip.nil?
|
vm_name = vm_ip unless vm_ip.nil?
|
||||||
end
|
end
|
||||||
|
@logger.log('s', "[>] [#{pool_name}] '#{vm_name}' vm_ready? #{domain_set} #{vm_ip}")
|
||||||
open_socket(vm_name, domain_set)
|
open_socket(vm_name, domain_set)
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
@logger.log('s', "[!] [#{pool_name}] '#{vm_name}' instance cannot be reached by vmpooler on tcp port 22; #{e}")
|
@logger.log('s', "[!] [#{pool_name}] '#{vm_name}' instance cannot be reached by vmpooler on tcp port 22; #{e}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue