Ravi
2012-Jan-27 21:53 UTC
[Puppet Users] Help need for resolving the error while bootstrapping a new instance with my puppet master on EC2 instance.
At first, I fired the command: puppet node_aws bootstrap --image ami-0166b168 --keyname Test_Server -- type t1.micro --group default --login root --keyfile /aws_key_pair/ Test_Server.pem I got the error as: notice: Creating new instance ... notice: Creating new instance ... Done notice: Creating tags for instance ... notice: Creating tags for instance ... Done notice: Launching server i-794db51c ... ###################### notice: Server i-794db51c is now launched notice: Server i-794db51c public dns name: ec2-174-129-96-47.compute-1.amazonaws.com notice: Waiting for SSH response ... notice: Waiting for SSH response ... Done notice: Installing Puppet ... notice: Puppet is now installed on: ec2-174-129-96-47.compute-1.amazonaws.com notice: No classification method selected notice: Signing certificate ... err: Signing certificate ... Failed err: Signing certificate error: Could not render to pson: getaddrinfo: Name or service not known err: exit err: Try ''puppet help node_aws bootstrap'' for usage Then again I tried, with the command: puppet node_aws bootstrap --image ami-0166b168 --keyname Test_Server -- type t1.micro --group default --login root --keyfile /aws_key_pair/ Test_Server.pem --mode agent --pe-version 2.0. But it was of no help, this time the error was: notice: Creating new instance ... notice: Creating new instance ... Done notice: Creating tags for instance ... notice: Creating tags for instance ... Done notice: Launching server i-e1b84384 ... ####################### notice: Server i-e1b84384 is now launched notice: Server i-e1b84384 public dns name: ec2-174-129-103-118.compute-1.amazonaws.com notice: Waiting for SSH response ... notice: Waiting for SSH response ... Done notice: Installing Puppet ... notice: Puppet is now installed on: ec2-174-129-103-118.compute-1.amazonaws.com notice: No classification method selected notice: Signing certificate ... err: Signing certificate ... Failed err: Signing certificate error: Could not render to pson: private method `gsub'' called for nil:NilClass err: exit err: Try ''puppet help node_aws bootstrap'' for usage [root@domU-12-31-39-0A-42-86 ~]# puppet cert --list [root@domU-12-31-39-0A-42-86 ~]# As you can see above, there is no pending certificate request pending with the master, and the node was created with puppet installed on it, but the certificate generation and signing is getting me this error. But then, I tried to manually connect to my master from the instance created above, i.e. After adding necessary dns entries in /etc/hosts file on both the machine’s files, I went to my agent machine & fired the command : puppet agent --server=domU-12-31-39-0A-42-86.compute-1.internal --no- daemonize –verbose This successfully generated a certificate which I had to manually sign at the master, as follows: puppet cert --sign ec2-174-129-103-118.compute-1.amazonaws.com- e6d576ee-45a7-a0fe-2b80-8691d66adfd6 notice: Signed certificate request for ec2-174-129-103-118.compute-1.amazonaws.com-e6d576ee-45a7- a0fe-2b80-8691d66adfd6 notice: Removing file Puppet::SSL::CertificateRequest ec2-174-129-103-118.compute-1.amazonaws.com-e6d576ee-45a7- a0fe-2b80-8691d66adfd6 at ''/etc/puppetlabs/puppet/ssl/ca/requests/ ec2-174-129-103-118.compute-1.amazonaws.com-e6d576ee-45a7- a0fe-2b80-8691d66adfd6.pem'' After that, I tried using: [root@domU-12-31-39-0C-70-80 /]# puppet node_aws bootstrap --image ami-0166b168 --keyname Test_Server --type t1.micro --group default -- login root --keyfile /aws_key_pair/Test_Server.pem --node-group default --enc-server ec2-184-73-127-22.compute-1.amazonaws.com --enc- port 443 --enc-ssl --enc-auth-user console --enc-auth-passwd puppet notice: Creating new instance ... notice: Creating new instance ... Done notice: Creating tags for instance ... notice: Creating tags for instance ... Done notice: Launching server i-0f649f6a ... ####################### notice: Server i-0f649f6a is now launched notice: Server i-0f649f6a public dns name: ec2-50-19-37-19.compute-1.amazonaws.com notice: Waiting for SSH response ... notice: Waiting for SSH response ... Done notice: Installing Puppet ... notice: Puppet is now installed on: ec2-50-19-37-19.compute-1.amazonaws.com notice: Contacting https://ec2-184-73-127-22.compute-1.amazonaws.com:443/ to classify ec2-50-19-37-19.compute-1.amazonaws.com- b6d8b475-5693-2f67-844c-72c8647c9f54 notice: Signing certificate ... err: Signing certificate ... Failed err: Signing certificate error: Could not render to pson: getaddrinfo: Name or service not known err: exit err: Try ''puppet help node_aws bootstrap'' for usage I am not getting any idea of what this pson is. It is common in all my errors. Can anyone help? Thanks & Regards, Ravi -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ravi Shankar
2012-Jan-27 21:58 UTC
[Puppet Users] Re: Help need for resolving the error while bootstrapping a new instance with my puppet master on EC2 instance.
And i am using puppet enterprise version 2.0 which comes free for up to 10 nodes. Regards, Ravi Shankar Cross Functional Services- Solutions - Cloud HCL Comnet Noida Ph:9953696666 On Sat, Jan 28, 2012 at 3:23 AM, Ravi <ravi.iiitm06@gmail.com> wrote:> At first, I fired the command: > > puppet node_aws bootstrap --image ami-0166b168 --keyname Test_Server -- > type t1.micro --group default --login root --keyfile /aws_key_pair/ > Test_Server.pem > I got the error as: > notice: Creating new instance ... > notice: Creating new instance ... Done > notice: Creating tags for instance ... > notice: Creating tags for instance ... Done > notice: Launching server i-794db51c ... > ###################### > notice: Server i-794db51c is now launched > notice: Server i-794db51c public dns name: > ec2-174-129-96-47.compute-1.amazonaws.com > notice: Waiting for SSH response ... > notice: Waiting for SSH response ... Done > notice: Installing Puppet ... > notice: Puppet is now installed on: > ec2-174-129-96-47.compute-1.amazonaws.com > notice: No classification method selected > notice: Signing certificate ... > err: Signing certificate ... Failed > err: Signing certificate error: Could not render to pson: getaddrinfo: > Name or service not known > err: exit > err: Try ''puppet help node_aws bootstrap'' for usage > > > > > Then again I tried, with the command: > > puppet node_aws bootstrap --image ami-0166b168 --keyname Test_Server -- > type t1.micro --group default --login root --keyfile /aws_key_pair/ > Test_Server.pem --mode agent --pe-version 2.0. > But it was of no help, this time the error was: > > notice: Creating new instance ... > notice: Creating new instance ... Done > notice: Creating tags for instance ... > notice: Creating tags for instance ... Done > notice: Launching server i-e1b84384 ... > ####################### > notice: Server i-e1b84384 is now launched > notice: Server i-e1b84384 public dns name: > ec2-174-129-103-118.compute-1.amazonaws.com > notice: Waiting for SSH response ... > notice: Waiting for SSH response ... Done > notice: Installing Puppet ... > notice: Puppet is now installed on: > ec2-174-129-103-118.compute-1.amazonaws.com > notice: No classification method selected > notice: Signing certificate ... > err: Signing certificate ... Failed > err: Signing certificate error: Could not render to pson: private > method `gsub'' called for nil:NilClass > err: exit > err: Try ''puppet help node_aws bootstrap'' for usage > [root@domU-12-31-39-0A-42-86 ~]# puppet cert --list > [root@domU-12-31-39-0A-42-86 ~]# > > As you can see above, there is no pending certificate request pending > with the master, and the node was created with puppet installed on it, > but the certificate generation and signing is getting me this error. > > > But then, I tried to manually connect to my master from the instance > created above, i.e. After adding necessary dns entries in /etc/hosts > file on both the machine’s files, I went to my agent machine & fired > the command : > > puppet agent --server=domU-12-31-39-0A-42-86.compute-1.internal --no- > daemonize –verbose > > This successfully generated a certificate which I had to manually sign > at the master, as follows: > > puppet cert --sign ec2-174-129-103-118.compute-1.amazonaws.com- > e6d576ee-45a7-a0fe-2b80-8691d66adfd6 > notice: Signed certificate request for > ec2-174-129-103-118.compute-1.amazonaws.com-e6d576ee-45a7- > a0fe-2b80-8691d66adfd6 > notice: Removing file Puppet::SSL::CertificateRequest > ec2-174-129-103-118.compute-1.amazonaws.com-e6d576ee-45a7- > a0fe-2b80-8691d66adfd6 at ''/etc/puppetlabs/puppet/ssl/ca/requests/ > ec2-174-129-103-118.compute-1.amazonaws.com-e6d576ee-45a7- > a0fe-2b80-8691d66adfd6.pem'' > > > > After that, I tried using: > [root@domU-12-31-39-0C-70-80 /]# puppet node_aws bootstrap --image > ami-0166b168 --keyname Test_Server --type t1.micro --group default -- > login root --keyfile /aws_key_pair/Test_Server.pem --node-group > default --enc-server ec2-184-73-127-22.compute-1.amazonaws.com --enc- > port 443 --enc-ssl --enc-auth-user console --enc-auth-passwd puppet > notice: Creating new instance ... > notice: Creating new instance ... Done > notice: Creating tags for instance ... > notice: Creating tags for instance ... Done > notice: Launching server i-0f649f6a ... > ####################### > notice: Server i-0f649f6a is now launched > notice: Server i-0f649f6a public dns name: > ec2-50-19-37-19.compute-1.amazonaws.com > notice: Waiting for SSH response ... > notice: Waiting for SSH response ... Done > notice: Installing Puppet ... > notice: Puppet is now installed on: > ec2-50-19-37-19.compute-1.amazonaws.com > notice: Contacting https://ec2-184-73-127-22.compute-1.amazonaws.com:443/ > to classify ec2-50-19-37-19.compute-1.amazonaws.com- > b6d8b475-5693-2f67-844c-72c8647c9f54 > notice: Signing certificate ... > err: Signing certificate ... Failed > err: Signing certificate error: Could not render to pson: getaddrinfo: > Name or service not known > err: exit > err: Try ''puppet help node_aws bootstrap'' for usage > > I am not getting any idea of what this pson is. It is common in all my > errors. > > Can anyone help? > Thanks & Regards, > Ravi-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.