Error 400 On Server Could Not Find Class Ntp
Contents |
not find class edit 400 asked 2014-02-18 18:50:06 -0500 UBPClaw 130 ●2 ●3 ●13 I seem to have really intermittent issues with puppet could not find class on node my agents. They will connect until I make a change to the
Puppet Error 400 On Server Could Not Find Class
manifest then I start getting errors again. I have a custom class called m1::defaults, it calls the ntp puppet could not retrieve catalog from remote server error 400 on server module I installed from the forge. Im still learning so it isnt particularly advanced yet, but beyond the include ntp statement it configures our custom in house repo based on
Puppet Could Not Find Declared Class
OS version. I run puppet parser validate m1defaults.pp and it returns no errors. I run puppet apply m1defaults.pp andf it says compiled catalogue in environment production. I ... (more) edit retag flag offensive close merge delete Comments2Could you paste the actual code ?golja( 2014-02-18 21:59:56 -0500 )edit2You should provide a code snippet and the exact errors/warnings provided by Puppet.giavac( 2014-02-19 04:16:36 error while evaluating a function call, could not find class -0500 )editIs the module path correctly set in your puppet.conf? Otherwise, from where it called? Do you have a "m1" class that includes "defaults" or "m1::defaults", for instance? (It ...(more)robrwo( 2014-02-19 10:08:05 -0500 )editThe module path is correct, I have not change it from the default. Output from running puppet config print modulepath is /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules ...(more)UBPClaw( 2014-02-19 11:06:29 -0500 )editPuppet apply m1.defaults.pp returns the following Notice: Compiled catalog for powc-pupt-01-pv in environment production in 0.09 seconds Notice: Finished catalog run in 0.34 secondsUBPClaw( 2014-02-19 11:06:46 -0500 )editadd a comment see more comments 2 answers Sort by ยป oldest newest most voted 0 answered 2014-02-19 11:38:12 -0500 robrwo 276 ●22 ●27 ●42 updated 2014-02-19 11:39:29 -0500 From my comment above, the manifest files should be in the correct location. Underscores aren't illegal in file or class names, but your class names should correspond with file names. class "foo" should be in modules/foo/manifests/init.pp, "foo::bar" in modules/foo/manifests/bar.pp, and "foo::bar::baz" in modules/foo/manifests/bar/baz.pp. edit flag offensive delete link more add a comment 1 answered 2014-02-19 14:59:25 -0500 lavaman 1870 ●4 ●13 ●33 Puppet finds classes
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Puppet Agent Could Not Find Class
Us Learn more about Stack Overflow the company Business Learn more about hiring
Puppet Error 400 On Server Could Not Find Node
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the could not retrieve catalog from remote server error 400 on server could not find default node Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Puppet: Could not find class https://ask.puppet.com/question/5405/error-400-on-server-could-not-find-class/ up vote 0 down vote favorite About ready to pull out my hair - I have done this a few times with success, but now suddenly I am overlooking something. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class profiles::base for
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the http://serverfault.com/questions/349046/could-not-find-class-and-yet-it-is-there company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Could not find class, and yet it could not is there up vote 23 down vote favorite 5 When doing a puppet agent call from a new image, I'm getting a err: Could not find class custommod error. The module itself is in /etc/puppet/modules/custommod same as all of the other modules we're calling, but this one is obstinante. [site.pp] node /clunod-wk\d+\.sub\.example\.local/ { include base include curl include custommod class{ "custommod::apps": frontend => "false} [...] } When the puppetmaster is run with debug output, could not find it clearly finding the information for base and curl: debug: importing '/etc/puppet/modules/base/manifests/init.pp' in environment production debug: Automatically imported base from base into production debug: importing '/etc/puppet/modules/curl/manifests/init.pp' in environment production debug: Automatically imported curl from curl into production err: Could not find class custommod for clunod-wk0130.sub.example.local at /etc/puppet/manifests/site.pp:84 on node clunod-wk0130.sub.example.local Line 84 is include custommod An abbreviated directory and file structure: /etc/puppet |- manifests | |- site.pp | |- modules |- base | |- manifests | |- init.pp | |- curl | |- manifests | |- init.pp | |- custommod |- files | |- apps | |- [...] | |- manifests |- init.pp |- apps.pp I did check spelling :} The content of init.pp in the custommod directory is completely unremarkable: class custommod { } The intent is to create an empty class for the apps.pp file, which is where the meat is. class custommod::apps { [lots of stuff] } Only, it's never getting to the apps file. If I comment out the include custommod, the above error is generated on the class{ "custommod::apps": frontend => "false} line instead. What am I missing in my hunt to find out how this error is being generated? I need to note that this repo works just fine if it is run locally via puppet apply. puppet puppetmaster share|improve this question edited