Skip to content

Instantly share code, notes, and snippets.

@donjohnson
Created October 7, 2011 20:10
Show Gist options
  • Save donjohnson/1271244 to your computer and use it in GitHub Desktop.
Save donjohnson/1271244 to your computer and use it in GitHub Desktop.
puppet scope/graph issue
this server gets the "mco" class from the node script definition.
class mco{
include virtual::packages::mco
#etc
}
there is then a "virtual" (name) module, mostly for virtual resources, with a packages.pp:
class virtual::packages {
#...
class mco { # lists pkgs and ensures them }
}
#T+0: pushed to prod using capistrano..this replaces the /etc/puppet/modules directory & restarts the puppet master (running version 2.6.4)
#T+30: start a manual run on this box [root@vm-mco01.sf mco]# dateFri Oct 7 12:53:13 PDT 2011[root@vm-mco01.sf mco]# puppetd -terr: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class virtual::packages::mco in namespaces mco at /etc/puppet/modules/site/mco/manifests/init.pp:2 on node vm-mco01.sf
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
#T+43: nothing changed, now working:
[root@vm-mco01.sf mco]# date && puppetd -t
Fri Oct 7 12:53:26 PDT 2011
info: Caching catalog for vm-mco01.sf
info: Applying configuration version '1318017227'
--- /etc/motd 2011-10-07 12:28:24.000000000 -0700
+++ /tmp/puppet-file.13052.0 2011-10-07 12:53:31.000000000 -0700
@@ -3,5 +3,5 @@
centos 5.4 (x86_64) :: linux 2.6.18-164.el5
MCollective Master
-catalog version 0.0.703 / 2011.10.07
+catalog version 0.0.704 / 2011.10.07
------------------------------------------------------------------------------
info: FileBucket adding /etc/motd as {md5}9edce5086aaf6c14ab1bc374cb3bd56b
info: /Stage[main]/Motd/File[/etc/motd]: Filebucketed /etc/motd to puppet with sum 9edce5086aaf6c14ab1bc374cb3bd56b
notice: /Stage[main]/Motd/File[/etc/motd]/content: content changed '{md5}9edce5086aaf6c14ab1bc374cb3bd56b' to '{md5}64718115a4d91f5685eb7b49f0c313b4'
notice: Finished catalog run in 2.62 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment