some more logs

This commit is contained in:
amartynov 2015-08-18 17:41:17 +03:00
parent aa1ab103e0
commit 4b9a5f9c49
2 changed files with 5 additions and 8 deletions

View File

@ -218,9 +218,7 @@ module Provider
'Capabilities' => ['CAPABILITY_IAM'] 'Capabilities' => ['CAPABILITY_IAM']
} }
) )
body = response.body stack.id = response.body['StackId']
out << "Body: #{body.inspect}\n"
stack.id = body['StackId']
out << "Stack id: #{stack.id}\n" out << "Stack id: #{stack.id}\n"
rescue Excon::Errors::Conflict => e rescue Excon::Errors::Conflict => e
raise ProviderErrors::NameConflict raise ProviderErrors::NameConflict
@ -243,11 +241,9 @@ module Provider
end end
def stack_details(stack) def stack_details(stack)
body = cloud_formation.describe_stacks({'StackName' => stack.name}).body d = cloud_formation.describe_stacks({'StackName' => stack.name}).body['Stacks'][0]
d = body['Stacks'][0]['stack'] pp d
#d = cloud_formation.describe_stacks({'StackName' => stack.name}).body['Stacks'][0]['stack'] d
puts "Details body: #{body.inspect}"
puts "Details: #{d.inspect}"
end end
def stack_resources(stack) def stack_resources(stack)

View File

@ -29,6 +29,7 @@ class StackBootstrapWorker < Worker
mongo.stack_insert(stack) mongo.stack_insert(stack)
sync_bootstrap_proc.call(out, stack, mongo) sync_bootstrap_proc.call(out, stack, mongo)
out << "\nStack '#{stack.name}' has been created\n"
servers = persist_stack_servers!(stack, provider) servers = persist_stack_servers!(stack, provider)
unless options['stack_attributes']['without_bootstrap'] unless options['stack_attributes']['without_bootstrap']
statuses = servers.map do |s| statuses = servers.map do |s|