On 11/11/09 16:47, Larry Ludwig wrote:
>
>
>
> On Nov 11, 10:30 am, Brice Figureau<brice-pup...@daysofwonder.com>
> wrote:
>> Hi Larry,
>>
>> I re-read the whole thread, and I might have been wrong.
>>
>> Your module files are indeed placed in network-config/files, correct?
>> Based on the error message (which mentions network-config/hosts) I
>> thought you placed your files at the wrong place. My bad.
>
> Yup they are in the files folder.
>
>> Do you use environments?
>>
>> The only reason I can see for not finding the module, is that module
>> doesn't exist in the environment the client think it is.
>
> Yes that is correct I use environments.

Could it be that one of your environment doesn't have network-config?
Could it be that in 0.25 the client is in this environment instead of 
being in the one you think it is in?
BTW, how do you tell the client to be in a particular environment?
There is currently a bug report about this (ie environment can only be 
set on the client and not in external_nodes anymore).

>>
>> But I'm afraid we will never know if you don't add more debug info in
>> the various files that finds a module from its path.
>> The means adding more debug to:
>>
>> Puppet::Indirector::FileServer#authorized?
>> Puppet::FileServing::Configuration#find_mount
>
> What info do you want?

in Puppet::Indirector::FileServer#authorized?
you should print the value of mount and just after 
configuration.split_path(request)

This will let us know if that's indeed the mount that can't be found.

If mount proves to be nil for this particular request, edit:
Puppet::FileServing::Configuration#find_mount

and print the "mount_name".

With that info, edit: Puppet::Module#path
change the code to:
environment.modulepath.collect { |path| File.join(path, name) }.find { |d|
   Puppet.info("testing: %s -> exists?: %s" % [d, FileTest.exist?(d) ]
   FileTest.exist?(d)
}
(sorry for the bad wrapping, thunderbird sucks at not word-wrapping)

Then check that for network-config it prints true...

-- 
Brice Figureau
My Blog: http://www.masterzen.fr/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to