Issue #4924 has been updated by Ashley Penney. Status changed from Needs More Information to Closed
Old, no longer relevant or an issue. ---------------------------------------- Bug #4924: lib/ in module fails unless it's in the same environment as the puppetmaster is https://projects.puppetlabs.com/issues/4924 Author: Ashley Penney Status: Closed Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: I'm testing some new rhel6 stuff and so I have a module branch, rhel6/ as well as my regular production/ branch. I added the DavidS mysql module into my rhel6 branch and tried to run puppetd on the node in question but got: <pre> err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type mysql_user at /etc/puppet/modules/rhel6/mysql/manifests/init.pp:17 on node hlsprepuppet.law.harvard.edu </pre> To get this to work I had to copy the lib/ from the mysql module into the production branch and run puppetd on my puppetmaster, which then did: <pre> -sh-3.2# puppetd -tv info: Retrieving plugin notice: /File[/var/lib/puppet/lib/puppet/parser/functions/mysql_password.rb]/ensure: defined content as '{md5}08aaa14cfb e99ceac1b59053685ee4c0'notice: /File[/var/lib/puppet/lib/puppet/provider]/ensure: creatednotice: /File[/var/lib/puppet/lib/puppet/provider/mysql_database]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/provider/mysql_database/mysql.rb]/ensure: defined content as '{md5}255060e6886bab66cc196e762ddaf80a'notice: /File[/var/lib/puppet/lib/puppet/provider/mysql_grant]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/provider/mysql_grant/mysql.rb]/ensure: defined content as '{md5}354efd40038091f 31028b9aa1473e93c' notice: /File[/var/lib/puppet/lib/puppet/provider/mysql_user]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/provider/mysql_user/mysql.rb]/ensure: defined content as '{md5}9af72687289b2b423be200bf9b7ba888' notice: /File[/var/lib/puppet/lib/puppet/type]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/type/mysql_database.rb]/ensure: defined content as '{md5}20cfcdd6bcf752949b369786898fd1f5' notice: /File[/var/lib/puppet/lib/puppet/type/mysql_grant.rb]/ensure: defined content as '{md5}419cf15b0e7cc932c11ab5b92ece3881' notice: /File[/var/lib/puppet/lib/puppet/type/mysql_user.rb]/ensure: defined content as '{md5}b27f26f00077e5fd534e6c3cda3056bf'info: Loading downloaded plugin /var/lib/puppet/lib/puppet/provider/mysql_grant/mysql.rb /etc/puppet/modules/testing/mysql/lib/puppet/provider/mysql_grant/mysql.rb:14: warning: already initialized constant MYSQL_USER_PRIVS/etc/puppet/modules/testing/mysql/lib/puppet/provider/mysql_grant/mysql.rb:20: warning: already initialized constant MYSQL_DB_PRIVS info: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/mysql_grant.rb info: Redefining mysql_grant in Puppet::Type info: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/mysql_user.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/provider/mysql_user/mysql.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/mysql_password.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/mysql_database.rb </pre> I could then run puppetd on the other node successfully. Obviously I shouldn't need the lib/ in all my module branches for this to work. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
