On Nov 9, 2008, at 8:14 PM, Thom May wrote:

> Hey,
> I have a very trivial parsedfile based type - http://pastie.org/311146
> - that works fine when deployed and run under puppetd -t. However,
> when being run by the daemonized puppet, it results in this error:
>
> Mon Nov 10 03:50:48 +0000 2008
> //Node[ams-proxy-2]/quagga/Quagga::Daemon[zebra]/Quagga_service[zebra]
> (err): Failed to retrieve current state of resource: No ability to
> determine if quagga_service exists
>
> It seems like this is the provider failing to respond to exists? but
> that, as far as I can tell, should be provided by parsedfile.


I tried to help a bit on irc but I don't think we ever resolved it, so  
I'll try to help here.  (And for the record, if someone thinks there's  
a thread on the user list that I haven't responded to yet and should,  
feel free to send me a direct note.)

I've only ever seen this when the resource somehow doesn't have a  
provider.  For better or worse, the 'provider' method uses the  
resource as the provider if no provider is actually available:

     def provider
         @resource.provider || @resource
     end

I think that's a design bug, but it works that way right now.

I'd guess your resource isn't finding the provider -- is it stored at  
'provider/$type/$provider.rb'?

-- 
I love deadlines. I like the whooshing sound they make as they fly by.
     --Douglas Adams
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to