Louis Coilliot
2014-Feb-25 09:07 UTC
[Puppet Users] No resources and catalog information with puppetdb
Hello, with my puppetdb - I can't query any resource or catalog - exported resources are not working This is working : # echo '["=", ["fact", "rubyversion"], "1.8.7"]' > queryfile # curl -X GET http://localhost:8080/v3/nodes --data-urlencode query@queryfile 2>/dev/null | tail -7 }, { "name" : "el6.labolinux.fr", "deactivated" : null, "catalog_timestamp" : null, "facts_timestamp" : "2014-02-25T08:18:07.529Z", "report_timestamp" : "2014-02-25T08:18:10.018Z" I can also query with success the facts, metrics, reports (reports=store,puppetdb) endpoints. But it is not working with the resources or catalog endpoint : curl -X GET 'http://localhost:8080/v3/resources/User' -> [] curl -X GET 'http://localhost:8080/v3/resources/Package' -> [] curl -X GET 'http://localhost:8080/v3/resources/File' -> [] curl -X GET http://localhost:8080/v3/catalogs/el6.labolinux.fr -> { "error" : "Could not find catalog for el6.labolinux.fr" } curl -X GET http://localhost:8080/v3/nodes 2>/dev/null | grep name | grep el6.labolinux.fr -> "name" : "el6.labolinux.fr", In addition, this is not working from the puppet master : # puppet node status el6.labolinux.fr Error: Could not retrieve status for el6.labolinux.fr: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A # puppet cert list el6.labolinux.fr + "el6.labolinux.fr" (SHA256) 76:00:C9:B9:0C:31:61:9C:A5:D9:B4:49:D7:17:39:76:15:9D:18:2C:E0:07:41:6B:6C:3A:4D:68:E1:BF:65:0D I think that a consequence is that my exported resources don't work. Here is my configuration. On the master : # dpkg-query -W | egrep 'puppet(master|db)' puppetdb-terminus 1.6.2-1puppetlabs1 puppetmaster 3.4.3-1puppetlabs1 puppetmaster-common 3.4.3-1puppetlabs1 In puppet.conf on the master : [master] storeconfigs=true storeconfig_backend=puppetdb reports=store,puppetdb In routes.yaml on the master : --- master: facts: terminus: puppetdb cache: yaml In puppetdb.conf on the master : [main] server=el6.labolinux.fr port=8081 soft_write_failure=true On the puppetdb node : [root@el6 ~]# rpm -qa | grep '^puppet' puppet-3.3.2-1.el6.noarch puppetdb-1.6.2-1.el6.noarch Database backend configuration : [database] classname = org.postgresql.Driver subprotocol = postgresql subname = //127.0.0.1:5432/puppetdb username = puppetdb What am I missing ? Louis Coilliot -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE9jN32UqUR3uTuHNJqse5hBiLr84qCwC6ri3TD9oFJSY%2BumJA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.