- From: Gilles Devaux <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Problems with Search?
- Date: Thu, 27 Jan 2011 08:54:45 -0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KLJPEshNdZ3dNUh3+YQa2LJ/MY4n1ANyaTSjcYTBRffU1ETR0FSVsOrQ7ol9SbI4wP 25m8vNqiua1PiW4xT3bguyCa7nksA6BJosSAhDPrdDD+pMuQ37cRdmGamzl1ct7ExqHk /YUum6Op+HXhpa6OCDVt12CS8RxcBkJHOb3Cc=
I reported the same issue under the title "search sometimes returns no
result", I pasted my logs in the email.
On Wed, Jan 26, 2011 at 6:52 PM, Adam Jacob
<
>
wrote:
>
Odd - can you give us another gist with some of the solr log going
>
further back, say a few minutes before where the log starts now?
>
>
In your chef server logs, what was happening with node convergence for
>
the machine with the actual monitoring role at the time the search
>
request came in?
>
>
Adam
>
>
On Wed, Jan 26, 2011 at 4:30 PM, Ash Berlin
>
<
>
>
wrote:
>
> https://gist.github.com/860921611bbcaca7b338
>
>
>
> Let me know if you need more and I'll get it in the morning - its 00:30
>
> here now.
>
>
>
> -ash
>
>
>
> On 27 Jan 2011, at 00:12, Adam Jacob wrote:
>
>> Ash, can you give use some gists of the log output from the Chef
>
>> Server at the time?
>
>>
>
>> Solr logs would help as well.
>
>>
>
>> Adam
>
>>
>
>> On Wed, Jan 26, 2011 at 4:09 PM, Ash Berlin
>
>> <
>
>
>> wrote:
>
>>> So some of my nagios checks started failing just now because the search
>
>>> that fills out allowed_hosts in nrpe.cfg was empty. This is the second
>
>>> time this happened to me - the first was immediately after upgrading to
>
>>> chef-server 0.9.12.
>
>>>
>
>>> The server is The clients in question are still on 0.9.8.
>
>>>
>
>>> My cookbook code is (probably the standard nagios::client cookbook,
>
>>> possibly a few versions out of date):
>
>>>
>
>>> search(:node, "roles:monitoring AND
>
>>> app_environment:#{node[:app_environment]}") do |n|
>
>>> mon_host << n['ipaddress']
>
>>> end
>
>>>
>
>>> ...
>
>>>
>
>>> template "/etc/nagios/nrpe.cfg" do
>
>>> source "nrpe.cfg.erb"
>
>>> owner "nagios"
>
>>> group "nagios"
>
>>> mode "0644"
>
>>> variables :mon_host => mon_host
>
>>> notifies :restart, resources(:service => "nagios-nrpe-server")
>
>>> end
>
>>> __END__
>
>>>
>
>>> The initial problem on upgrading the server was the search was
>
>>> previously "role:..." which was working fine but needed to be changed to
>
>>> "roles:...".
>
>>>
>
>>> However this time nothing changed and simply logging in to the problem
>
>>> hosts and re-running chef-client fixed it.
>
>>>
>
>>> What went wrong and how to I track it down so it doesn't happen again?
>
>>>
>
>>> -ash
>
>
>
>
>
>
>
>
>
>
>
>
--
>
Opscode, Inc.
>
Adam Jacob, Chief Product Officer
>
T: (206) 619-7151 E:
>
>
Archive powered by MHonArc 2.6.16.