remote_directory & Chef Client 10.16.2


#1

Hi Guys,

After upgrading a 0.10.8 client to 10.16.2, a cookbook we have that uses
remote_directory now is triggering a reload of Nagios on every Chef run
(only change is the Chef client version).

Here is the configuration directive:

remote_directory node[:nagios][:manual_define_dir] do
source "mandefine.d"
files_backup 0
files_owner "root"
files_group "root"
files_mode "0644"
owner "root"
group "root"
mode "0775"
notifies :reload, "service[nagios3]"
end

And the applicable output from Chef Client -l debug:

Processing remote_directory[/etc/nagios3/mandefine.d/] action create
(nagios-server::default line 140)
Processing cookbook_file[/etc/nagios3/mandefine.d/zzz.d/aaa_vips.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/yyy.d/aaa_vips.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/xxx.d/www_vips.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/xxx.d/load_balancers.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/vvv_network.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/zzz_misc.cfg]
action create (dynamically defined)
Processing
cookbook_file[/etc/nagios3/mandefine.d/all.d/universal_network.cfg] action
create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/yyy_general.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/misc.cfg] action
create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/xxx_network.cfg]
action create (dynamically defined)

remote_directory[/etc/nagios3/mandefine.d/] sending reload action to
service[nagios3] (delayed)

Any ideas are greatly appreciated.

-J


#2

On Monday, December 10, 2012 at 2:58 PM, Jason J. W. Williams wrote:

Hi Guys,

After upgrading a 0.10.8 client to 10.16.2, a cookbook we have that uses remote_directory now is triggering a reload of Nagios on every Chef run (only change is the Chef client version).

Here is the configuration directive:

remote_directory node[:nagios][:manual_define_dir] do
source "mandefine.d"
files_backup 0
files_owner "root"
files_group "root"
files_mode "0644"
owner "root"
group "root"
mode "0775"
notifies :reload, "service[nagios3]"
end

And the applicable output from Chef Client -l debug:

Processing remote_directory[/etc/nagios3/mandefine.d/] action create (nagios-server::default line 140)
Processing cookbook_file[/etc/nagios3/mandefine.d/zzz.d/aaa_vips.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/yyy.d/aaa_vips.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/xxx.d/www_vips.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/xxx.d/load_balancers.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/vvv_network.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/zzz_misc.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/universal_network.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/yyy_general.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/misc.cfg] action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/xxx_network.cfg] action create (dynamically defined)

remote_directory[/etc/nagios3/mandefine.d/] sending reload action to service[nagios3] (delayed)

Any ideas are greatly appreciated.

-J
It’s a bug that’s fixed and applied to the 10-stable and master branches but not yet released.


Daniel DeLeo


#3

Ah cool. Will that be in 10.next ?

-J

On Mon, Dec 10, 2012 at 6:51 PM, Daniel DeLeo dan@kallistec.com wrote:

On Monday, December 10, 2012 at 2:58 PM, Jason J. W. Williams wrote:

Hi Guys,

After upgrading a 0.10.8 client to 10.16.2, a cookbook we have that uses
remote_directory now is triggering a reload of Nagios on every Chef run
(only change is the Chef client version).

Here is the configuration directive:

remote_directory node[:nagios][:manual_define_dir] do
source "mandefine.d"
files_backup 0
files_owner "root"
files_group "root"
files_mode "0644"
owner "root"
group "root"
mode "0775"
notifies :reload, "service[nagios3]"
end

And the applicable output from Chef Client -l debug:

Processing remote_directory[/etc/nagios3/mandefine.d/] action create
(nagios-server::default line 140)
Processing cookbook_file[/etc/nagios3/mandefine.d/zzz.d/aaa_vips.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/yyy.d/aaa_vips.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/xxx.d/www_vips.cfg]
action create (dynamically defined)
Processing
cookbook_file[/etc/nagios3/mandefine.d/xxx.d/load_balancers.cfg] action
create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/vvv_network.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/zzz_misc.cfg]
action create (dynamically defined)
Processing
cookbook_file[/etc/nagios3/mandefine.d/all.d/universal_network.cfg] action
create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/yyy_general.cfg]
action create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/misc.cfg] action
create (dynamically defined)
Processing cookbook_file[/etc/nagios3/mandefine.d/all.d/xxx_network.cfg]
action create (dynamically defined)

remote_directory[/etc/nagios3/mandefine.d/] sending reload action to
service[nagios3] (delayed)

Any ideas are greatly appreciated.

-J

It’s a bug that’s fixed and applied to the 10-stable and master branches
but not yet released.


Daniel DeLeo


#4

On Tuesday, December 11, 2012 at 4:18 PM, Jason J. W. Williams wrote:

Ah cool. Will that be in 10.next ?

-J

Yes. Bryan’s started the process of doing the release, not sure when exactly it will be out.


Daniel DeLeo


#5

Thanks Dan.

-J

On Tue, Dec 11, 2012 at 5:43 PM, Daniel DeLeo dan@kallistec.com wrote:

On Tuesday, December 11, 2012 at 4:18 PM, Jason J. W. Williams wrote:

Ah cool. Will that be in 10.next ?

-J

Yes. Bryan’s started the process of doing the release, not sure when
exactly it will be out.


Daniel DeLeo