The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #10206

bootstrap fails with: err: Puppet::Util::Log requires a message

Added by Dan Bode over 2 years ago. Updated 4 months ago.

Status:In Topic Branch Pending ReviewStart date:10/20/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:cloud provisioner
Target version:-
Keywords: cloud_provisioner Affected URL:
Branch:https://github.com/puppetlabs/puppetlabs-cloud-provisioner/pull/42 Affected PE version:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the ENTERPRISE project on JIRA using the button below:


Description

After updating to the latest version of cloud provisioner, I see the following error

puppet node_aws bootstrap --image=ami-750cc01c --keyname=dans_keys --type=t1.micro --debug --keyfile ~/.ssh/dans_keys.pem --login root --install-script=puppet-enterprise --installer-answers=agent-answers.txt --installer-payload=/opt/enterprise/dists/puppet-enterprise-cmdrkeith_rc0-215-g2510a4b-el-5-i386.tar.gz --enc-server=`cat master` --enc-port=3000 --ssldir=ssl --node-group=build_server --group=tomcat_server --server=`cat master` --certname=dans_controller_node --puppetagent-certname=dans_cert_19 --trace
info: Connecting to AWS us-east-1 ...
info: Connecting to AWS us-east-1 ... Done
info: Instance Type: t1.micro
notice: Creating new instance ...
notice: Creating new instance ... Done
info: Instance identifier: i-e2809982
notice: Creating tags for instance ...
notice: Creating tags for instance ... Done
notice: Launching server i-e2809982 ...
##############
notice: Server i-e2809982 is now launched
notice: Server i-e2809982 public dns name: ec2-107-22-8-240.compute-1.amazonaws.com
notice: Waiting for SSH response ...
info: Executing remote command ...
debug: Command: date
info: Caught exception execution expired
/Users/danbode/dev/puppet/lib/puppet/util/log.rb:226:in `message='
/Users/danbode/dev/puppet/lib/puppet/util/log.rb:208:in `initialize'
/Users/danbode/dev/puppet/lib/puppet/util/log.rb:82:in `new'
/Users/danbode/dev/puppet/lib/puppet/util/log.rb:82:in `create'
/Users/danbode/dev/puppet/lib/puppet/util/logging.rb:7:in `send_log'
/Users/danbode/dev/puppet/lib/puppet/util/logging.rb:14:in `info'
/Users/danbode/dev/puppet-cloudpack/lib/puppet/cloudpack/utils.rb:31:in `retry_action'
/Users/danbode/dev/puppet-cloudpack/lib/puppet/cloudpack.rb:741:in `ssh_test_connect'
/Users/danbode/dev/puppet-cloudpack/lib/puppet/cloudpack.rb:756:in `ssh_connect'
/Users/danbode/dev/puppet-cloudpack/lib/puppet/cloudpack.rb:638:in `install'
/Users/danbode/dev/puppet-cloudpack/lib/puppet/cloudpack.rb:591:in `init'
/Users/danbode/dev/puppet-cloudpack/lib/puppet/cloudpack.rb:377:in `bootstrap'
/Users/danbode/dev/puppet-cloudpack/lib/puppet/face/node_aws/bootstrap.rb:13:in `bootstrap implementation, required on Ruby 1.8'
/Users/danbode/dev/puppet/lib/puppet/interface/action.rb+eval[wrapper]:203:in `__send__'
/Users/danbode/dev/puppet/lib/puppet/interface/action.rb+eval[wrapper]:203:in `bootstrap'
/Users/danbode/dev/puppet/lib/puppet/application/face_base.rb:235:in `send'
/Users/danbode/dev/puppet/lib/puppet/application/face_base.rb:235:in `main'
/Users/danbode/dev/puppet/lib/puppet/application.rb:314:in `run_command'
/Users/danbode/dev/puppet/lib/puppet/application.rb:306:in `run'
/Users/danbode/dev/puppet/lib/puppet/application.rb:410:in `hook'
/Users/danbode/dev/puppet/lib/puppet/application.rb:306:in `run'
/Users/danbode/dev/puppet/lib/puppet/application.rb:401:in `exit_on_fail'
/Users/danbode/dev/puppet/lib/puppet/application.rb:306:in `run'
/Users/danbode/dev/puppet/lib/puppet/util/command_line.rb:69:in `execute'
/opt/local/dev/puppet/bin/puppet:4
err: Puppet::Util::Log requires a message
err: Try 'puppet help node_aws bootstrap' for usage

History

#1 Updated by Dan Bode over 2 years ago

The problem is this line:

Puppet.info(parameters[:retry_exceptions][e])

it is using the exception instance as the key instead of the exception class constant

#2 Updated by Dan Bode over 2 years ago

  • Status changed from Unreviewed to In Topic Branch Pending Review
  • Branch set to https://github.com/puppetlabs/puppetlabs-cloud-provisioner/pull/42

#3 Updated by Charlie Sharpsteen 4 months ago

  • Project changed from Cloud-Provisioner to Puppet Enterprise (Public)

#4 Updated by Kenn Hussey 4 months ago

  • Category set to cloud provisioner

Also available in: Atom PDF