Issue #1955 has been updated by andre.
Started a discussion in the mailing list for puppetusers based on
recommendation from luke. This discussion is to a follow up regarding bug#1955
"Could not find server puppet" - installation/configuration error".
Below is the results after running the puppetd:
(meteor) root:/opt/csw/bin # ./puppetd --verbose --debug --trace --no-daemonize
--server core4.adcom.uci.edu --certname core4.adcom.uci.edu
debug: Creating default schedules
debug: Failed to load library 'ldap' for feature 'ldap'
debug: Failed to load library 'shadow' for feature 'libshadow'
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/state]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/etc/opt/csw/puppet/ssl]:
Autorequiring File[/etc/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/certs]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/lib]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/private]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[puppetd]/File[/etc/opt/csw/puppet/puppet.conf]:
Autorequiring File[/etc/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/log]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/public_keys]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/run]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/private_keys]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug: Finishing transaction 3282048 with 0 changes
info: Creating a new certificate request for core4.adcom.uci.edu
info: Creating a new SSL key at
/etc//opt/csw/puppet/ssl/private_keys/core4.adcom.uci.edu.pem
debug: Calling puppetca.getcert
warning: peer certificate won't be verified in this SSL session
notice: Did not receive certificate
debug: Calling puppetca.getcert
warning: Other end went away; restarting connection and retrying
warning: peer certificate won't be verified in this SSL session
notice: Did not receive certificate
++++++++++++++++
The following are the steps that I took in core4 (puppetmaster server).
(Because I am new to puppet and because I may have left off some important
installation steps, I've included the steps below.) To install puppet in the
client server, I performed the same steps below except for initiating the
puppetmasterd and creating site.pp.
(core4) root:/adm/users/andresl # ps -ef|grep puppet
root 17266 17264 0 12:37:53 pts/1 0:00 grep puppet
(core4) root:/adm/users/andresl # svcs -a|grep puppet
disabled Feb_10 svc:/network/puppetd:default
(core4) root:/adm/users/andresl # /usr/bin/rm -r /etc/opt/csw/puppet
(core4) root:/adm/users/andresl # /usr/bin/rm -r /var/opt/csw/puppet
removed puppet entries in /etc/passwd, /etc/group, and /etc/shadow
(core4) root:/adm/users/andresl # yes | /opt/csw/bin/pkgutil CSWpuppet -r
(core4) root:/adm/users/andresl # pkginfo -l|grep CSW|grep PKGINST
PKGINST: CSWpkgutil
(core4) root:/var/opt/csw # yes | /opt/csw/bin/pkgutil -i CSWpuppet
(core4) root:/var/opt/csw # pkginfo -l|grep CSW|grep PKGINST
PKGINST: CSWaspell
PKGINST: CSWbdb3
PKGINST: CSWbzip2
PKGINST: CSWcommon
PKGINST: CSWexpat
PKGINST: CSWfacter
PKGINST: CSWgcc4corert
PKGINST: CSWgcc4g++rt
PKGINST: CSWgdbm
PKGINST: CSWgfile
PKGINST: CSWggettext
PKGINST: CSWiconv
PKGINST: CSWisaexec
PKGINST: CSWncurses
PKGINST: CSWosslrt
PKGINST: CSWpkgutil
PKGINST: CSWpuppet
PKGINST: CSWreadline
PKGINST: CSWruby
PKGINST: CSWsunmath
PKGINST: CSWzlib
(core4) root:/etc/puppet # mkdir manifests
(core4) root:/etc/puppet # vi manifests/site.pp
file { "/etc/sudoers":
owner => root, group => root, mode => 440
}
(core4) root:/opt/csw/bin # ./puppetmasterd --mkusers -v
(meteor) root:/opt/csw/bin # ./puppetd --verbose --debug --trace --no-daemonize
--server core4.adcom.uci.edu --certname core4.adcom.uci.edu
debug: Creating default schedules
debug: Failed to load library 'ldap' for feature 'ldap'
debug: Failed to load library 'shadow' for feature 'libshadow'
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/state]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/etc/opt/csw/puppet/ssl]:
Autorequiring File[/etc/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/certs]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/lib]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/private]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[puppetd]/File[/etc/opt/csw/puppet/puppet.conf]:
Autorequiring File[/etc/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/log]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/public_keys]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/File[/var/opt/csw/puppet/run]:
Autorequiring File[/var/opt/csw/puppet]
debug:
/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[ssl]/File[/etc/opt/csw/puppet/ssl/private_keys]:
Autorequiring File[/etc/opt/csw/puppet/ssl]
debug: Finishing transaction 3282048 with 0 changes
info: Creating a new certificate request for core4.adcom.uci.edu
info: Creating a new SSL key at
/etc//opt/csw/puppet/ssl/private_keys/core4.adcom.uci.edu.pem
debug: Calling puppetca.getcert
warning: peer certificate won't be verified in this SSL session
notice: Did not receive certificate
(core4) root:/opt/csw/bin # facter
domain => YP.adcom.uci.edu
facterversion => 1.5.2
fqdn => core4.YP.adcom.uci.edu
hardwareisa => sparc
hardwaremodel => sun4v
hostname => core4
interfaces => lo0,e1000g0
ipaddress => 128.200.235.71
ipaddress_e1000g0 => 128.200.235.71
kernel => SunOS
kernelrelease => 5.10
kernelversion => 5.10
macaddress => 0:14:4f:2:5c:7e
macaddress_e1000g0 => 0:14:4f:2:5c:7e
netmask_e1000g0 => 255.255.255.224
operatingsystem => Solaris
operatingsystemrelease => 10_u5
ps => ps -ef
puppetversion => 0.24.7
rubysitedir => /opt/csw/lib/ruby/site_ruby/1.8
rubyversion => 1.8.7
sshdsakey =>
AAAAB3NzaC1kc3MAAACBANmXV6SFPirKW1AbldTqwTJKlCpuV/MiQA7uIBh7dchIU2v5cEMNSaixc7iGucCzlJvRElFZNlu+j8VcZc62tfLy5cWGiZIM1IVJRZTx+cl7yvCC3MYcDd9EMQV60akonSMbFgCacBMRIntYl2VonuuHMzjIoKIMYfYHB8vbaSKjAAAAFQC24hy7Sx5Ze7SVT3p4CBVKVtS0ZQAAAIEAyik4x5B4Kzd5xV5rNhBBm98MlQZu+Lj6xllNj9rbAMpm7iSUzQTLyCRF4bmWwRrvmOemNiAx8cvNLoa9gx2ZvMTN3L42ly1tuoeU6CeZR/Y0J+OrydW6bt+TpSSjVkX7S8Vl7xY4a5Ueb860ng75P6cJ7ae3G5+c0EsfOV1RN/gAAACBAJcwMB/Wk7W3O49LIbT7dawJFTYxzHcwtzf20Yz/cu+8Nvgu8K1ypGX0E9+OKBSO2Ma0mKO0psydnX9esQ4leYlfStoFugMo9BAiRihdCW+da5jnTalwUec3ZZmxFuysM2E6zSeYsL8szwneKkP+qTgotYb6AdbcBoNo+y1ytyEb
sshrsakey =>
AAAAB3NzaC1yc2EAAAABIwAAAIEA6hDmXmctZ5ObFr7ciHKZ+jlC4wWG+YhOl5fZVbu0XAZang7pcxPH+5zT0fIVXPWPw3DeHW5O+Z8CpcI8zNpbXSVygE3xpW9uHgn/Nj03nL7TvQfms945fl4Va8Lk8x76YTfBIwW1HscQ6cbXMiIcmX+uMh9aaXSOW32Wr5aP3rE=
uniqueid => 84025c7e
----------------------------------------
Bug #1955: "Could not find server puppet" - installation/configuration error
http://projects.reductivelabs.com:80/issues/1955
Author: andre
Status: Needs more information
Priority: Normal
Assigned to:
Category: Solaris
Target version: unplanned
Complexity: Easy
Affected version: 0.24.7
Keywords:
This is my first time to install puppet. I encountered the "Could not find
server puppet: getaddrinfo: node name or service name not known" error. I
followed the steps in
https://reductivelabs.com/trac/puppet/wiki/InstallationGuide but made
modification during the installation process to use pkgutil -i CSWpuppet to
simplify installation due to package dependencies. Please note that core4 is
the puppetmaster and meteor is the client. Both machines are running solaris 10.
Thank you in advance for your help.
(core4) root:/etc # yes | /opt/csw/bin/pkgutil -i CSWpuppet
(core4) root:/etc # pkginfo -l|grep CSW|grep PKGINST
PKGINST: CSWaspell
PKGINST: CSWbdb3
PKGINST: CSWbzip2
PKGINST: CSWcommon
PKGINST: CSWexpat
PKGINST: CSWfacter
PKGINST: CSWgcc4corert
PKGINST: CSWgcc4g++rt
PKGINST: CSWgdbm
PKGINST: CSWgfile
PKGINST: CSWggettext
PKGINST: CSWiconv
PKGINST: CSWisaexec
PKGINST: CSWncurses
PKGINST: CSWosslrt
PKGINST: CSWpkgutil
PKGINST: CSWpuppet
PKGINST: CSWreadline
PKGINST: CSWruby
PKGINST: CSWsunmath
PKGINST: CSWzlib
(meteor) root: /etc # yes | /opt/csw/bin/pkgutil -i CSWpuppet
(meteor) root:/etc/puppet/ssl/private_keys # pkginfo -l|grep CSW|grep PKGINST
PKGINST: CSWaspell
PKGINST: CSWbdb3
PKGINST: CSWbzip2
PKGINST: CSWcommon
PKGINST: CSWexpat
PKGINST: CSWfacter
PKGINST: CSWgcc4corert
PKGINST: CSWgcc4g++rt
PKGINST: CSWgdbm
PKGINST: CSWgfile
PKGINST: CSWggettext
PKGINST: CSWiconv
PKGINST: CSWisaexec
PKGINST: CSWncurses
PKGINST: CSWosslrt
PKGINST: CSWpkgutil
PKGINST: CSWpuppet
PKGINST: CSWreadline
PKGINST: CSWruby
PKGINST: CSWsunmath
PKGINST: CSWzlib
(core4) root:/etc # pkginfo -l CSWpuppet
PKGINST: CSWpuppet
NAME: puppet - a system configuration tool
CATEGORY: application,system
ARCH: all
VERSION: 0.24.7,REV=2009.01.10
(meteor) root:/etc/puppet/ssl/private_keys # pkginfo -l CSWpuppet
PKGINST: CSWpuppet
NAME: puppet - a system configuration tool
CATEGORY: application,system
ARCH: all
VERSION: 0.24.7,REV=2009.01.10
(core4) root:/etc/puppet/ssl/private_keys # svcs -a|grep puppetd
online 14:03:58 svc:/network/puppetd:default
(meteor) root:/etc/puppet/ssl/private_keys # svcs -a|grep puppetd
online 14:04:56 svc:/network/puppetd:default
(core4) root:/opt/csw/bin # cat /etc/puppet/manifests/site.pp
file { "/etc/sudoers":
owner => root, group => root, mode => 440
}
(core4) root: /opt/csw/bin # ./puppetmasterd --mkusers
(core4) root:/etc # grep puppet /etc/passwd
puppet:x:3004:55556:puppet user:/var//opt/csw/puppet:/bin/true
(meteor) root:/etc/puppet/ssl/private_keys # grep puppet /etc/passwd
puppet:x:3004:55556:Puppet:/var//opt/csw/puppet:/bin/true
# Shouldn't the home directory of puppet be /var/opt/csw/puppet instead of
/var//opt/csw/puppet ??
(core4) root:/etc # grep puppet /etc/group
puppet::55556:
(meteor) root:/etc/puppet/ssl/private_keys # grep puppet /etc/group
puppet::55556:
(core4) root:/etc # grep puppet /etc/shadow
puppet:*LK*:::::::
(meteor) root:/etc/puppet/ssl/private_keys # grep puppet /etc/shadow
puppet:*LK*:::::::
(meteor) root:/opt/csw/bin # ./puppetd --server core4.yp.adcom.uci.edu
--waitforcert 30 --test
err: Could not find server core4.yp.adcom.uci.edu: getaddrinfo: node name or
service name not known
err: Could not request certificate: Certificate retrieval failed: Could not
find server core4.yp.adcom.uci.edu
(core4) root:/opt/csw/bin # ./puppetca --list
No certificates to sign
# I Did not see the name of my test client
(core4) root:/etc/puppet/ssl/private_keys # ls
core4.yp.adcom.uci.edu.pem
(core4) root:/etc/puppet/ssl/private_keys # ls -l /etc/puppet/ssl/public_keys
total 2
-rw-r--r-- 1 root root 251 Feb 10 14:03 core4.yp.adcom.uci.edu.pem
(meteor) root:/etc/puppet/ssl/private_keys # ls -l
total 2
-rw------- 1 root root 887 Feb 10 14:04
meteor.yp.adcom.uci.edu.pem
(meteor) root:/etc/puppet/ssl/private_keys # ls -l /etc/puppet/ssl/public_keys
total 2
-rw-r--r-- 1 root root 251 Feb 10 14:04
meteor.yp.adcom.uci.edu.pem
The following is output from the /var/adm/messages in the puppetmaster server:
Feb 10 14:09:59 s_lo...@core4 puppetd[13111]: [ID 702911 daemon.error] Could
not find server puppet: getaddrinfo: node name or service name not known
Feb 10 14:09:59 s_lo...@core4 puppetd[13111]: [ID 702911 daemon.error] Could
not request certificate: Certificate retrieval failed: Could not find server
puppetFeb 10 14:11:01 s_lo...@core4 puppetmasterd[13171]: [ID 702911
daemon.notice]
(/Settings[/etc//opt/csw/puppet/puppet.conf]/Settings[main]/User[puppet]/comment)
comment changed 'Puppet' to 'puppet user'
Feb 10 14:11:08 s_lo...@core4 puppetmasterd[13380]: [ID 702911 daemon.notice]
Reopening log files
Feb 10 14:11:08 s_lo...@core4 puppetmasterd[13380]: [ID 702911 daemon.notice]
Starting Puppet server version 0.24.7
Feb 10 14:11:59 s_lo...@core4 puppetd[13111]: [ID 702911 daemon.notice] Got
signed certificate
Feb 10 14:11:59 s_lo...@core4 puppetd[13111]: [ID 702911 daemon.notice]
Starting Puppet client version 0.24.7
Feb 10 14:12:02 s_lo...@core4 puppetd[13111]: [ID 702911 daemon.error] Could
not find server puppet: getaddrinfo: node name or service name not known
Feb 10 14:12:02 s_lo...@core4 puppetd[13111]: [ID 702911 daemon.error] Could
not retrieve catalog: Could not find server puppet
----------------------------------------
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---