puppetdb listening on ipv6 port 8081 , not ipv4

2,028 views
Skip to first unread message

Clay

unread,
Jul 6, 2012, 1:48:24 PM7/6/12
to puppet...@googlegroups.com
trying to deploy puppetdb ,  puppet server is RHEL 6.1 , 

[root@puppet ~]# rpm -qa|grep puppet
puppetdb-0.9.1-2.el6.noarch
puppet-dashboard-1.2.9-1.el6.noarch
puppet-server-2.7.17-1.el6.noarch
puppetdb-terminus-0.9.1-2.el6.noarch
puppet-2.7.17-1.el6.noarch

on the clients, got an error for puppetdb ,
client1 :~ # puppet agent --test
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for client1.domain.com to PuppetDB at puppet.domain.com:8081: 403 "Forbidden"
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

on the puppet server, noticed puppetdb is listening on IPv6 not ipv4, is it normal ?
[root@puppet ~]# lsof -i:8081
COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    1050 puppetdb   39u  IPv6 820438      0t0  TCP puppet.domain.com:tproxy (LISTEN)

tried to telnet to puppet:8081, works though. 

Deepak Giridharagopal

unread,
Jul 6, 2012, 3:42:39 PM7/6/12
to puppet...@googlegroups.com
What does your /etc/puppetdb/conf.d/jetty.ini file look like? Don't post the whole thing, as it contains keystore/truststore passwords...but what are the "host" and "ssl-host" options set to? That's how we determine what IP to bind to for HTTP and HTTPS, respectively.

deepak 

Clay

unread,
Jul 6, 2012, 4:54:51 PM7/6/12
to puppet...@googlegroups.com

  here's the jetty.ini .

[jetty]
# Hostname to list for clear-text HTTP.  Default is localhost
#host = localhost
# Port to listen on for clear-text HTTP.
port = 8080
ssl-host = puppet.domain.com
ssl-port = 8081
...


Clay

unread,
Jul 10, 2012, 9:02:55 PM7/10/12
to puppet...@googlegroups.com
Thanks Deepak for reply.   this is resolved,  the problem is the puppet agent on puppet master can't connect to master itself, which is due to proxy config in the puppet.conf ,  the above ipv6  is just not showing correctly , but it's working.

Clay 
Reply all
Reply to author
Forward
0 new messages