Ask Your Question
0

empty catalog being returned

asked 2014-05-28 02:19:38 -0500

sguiggly gravatar image

I have just setup Passenger to run the PuppetMaster, to get around issues with Webrick and 3.6. However, when I run "puppet agent -t" I just get back an empty catalog like:

{"document_type":"Catalog","metadata":{"api_version":1},"data":{"environment":"goosy","resources":[{"title":"main","exported":false,"type":"Stage","tags":["stage","main"]},{"title":"Settings","exported":false,"type":"Class","tags":["class","settings"]},{"parameters":{"name":"main"},"title":"Main","exported":false,"type":"Class","tags":["class","main"]}],"classes":["settings"],"version":1401260448,"edges":[{"target":"Class[Settings]","source":"Stage[main]"},{"target":"Class[Main]","source":"Stage[main]"}],"name":"dev02.corp.f7","tags":["settings"]}}

The debug output looks something like:

Debug: Finishing transaction 69849899740940
Debug: Loaded state in 0.02 seconds
Debug: node supports formats: pson msgpack b64_zlib_yaml yaml raw
Debug: Using cached certificate for ca
Debug: Using cached certificate for dev02.corp.f7
Debug: Using cached certificate_revocation_list for ca
Info: Retrieving pluginfacts
Debug: /File[/var/lib/puppet/facts.d]/seluser: Found seluser default 'system_u' for /var/lib/puppet/facts.d
Debug: /File[/var/lib/puppet/facts.d]/selrole: Found selrole default 'object_r' for /var/lib/puppet/facts.d
Debug: /File[/var/lib/puppet/facts.d]/seltype: Found seltype default 'puppet_var_lib_t' for /var/lib/puppet/facts.d
Debug: /File[/var/lib/puppet/facts.d]/selrange: Found selrange default 's0' for /var/lib/puppet/facts.d
Debug: file_metadata supports formats: pson msgpack b64_zlib_yaml yaml raw
Debug: Finishing transaction 69849888190520
Info: Retrieving plugin
Debug: /File[/var/lib/puppet/lib]/seluser: Found seluser default 'system_u' for /var/lib/puppet/lib
Debug: /File[/var/lib/puppet/lib]/selrole: Found selrole default 'object_r' for /var/lib/puppet/lib
Debug: /File[/var/lib/puppet/lib]/seltype: Found seltype default 'puppet_var_lib_t' for /var/lib/puppet/lib
Debug: /File[/var/lib/puppet/lib]/selrange: Found selrange default 's0' for /var/lib/puppet/lib
Debug: file_metadata supports formats: pson msgpack b64_zlib_yaml yaml raw
Debug: Finishing transaction 69849887932860
Debug: catalog supports formats: pson msgpack yaml dot b64_zlib_yaml raw
Info: Caching catalog for dev02.corp.f7
Debug: Creating default schedules
Debug: Loaded state in 0.02 seconds
Info: Applying configuration version '1401260448'
Debug: Finishing transaction 69849887716700
Debug: Storing state
Debug: Stored state in 0.07 seconds
Notice: Finished catalog run in 0.11 seconds

There doesn't seem much going on in the server logs, just a series of GET, PUT and POS requests with no real error messages or indications. It just like the server wants to return an empty catalog, but without complaining that it cant find the node or anything.

Any clues?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-07 12:05:07 -0500

I had the same problem with apache/passenger and also nginx/unicorn with puppet 3.5.1, environmentpath was ignored in the [master] section of /etc/puppet/puppet.conf

The passenger puppetmaster was looking for a site.pp in /etc/puppet/manifests/site.pp instead of using the defined environmentpath like Webrick was doing.

If this is the same problem, move your environmentpath in the [main] section.

http://docs.puppetlabs.com/puppet/latest/reference/release_notes.html#directory-environment-fixes

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-05-28 02:19:38 -0500

Seen: 683 times

Last updated: Jul 07 '14