Ask Your Question
0

Same change twice in one catalog run

asked 2016-12-07 17:37:30 -0500

cm01 gravatar image

updated 2016-12-07 20:12:52 -0500

Red Cricket gravatar image

As per Title, puppet (4.8.0, server 2.7.0) tries to apply the same change twice in one run.
As Puppet is supposed to be idempotent, in practical terms this shouldn't(!) be a problem, BUT (afaik), this is not normal and I'd like to know why and ideally how to 'fix' it.
Also, when I push to merge, the approver(s) are going to ask & I don't have an answer...

Notice: /Stage[main]/Pm::Classes::Configuration/File[/etc/puppetlabs/puppet/puppet.conf]/content: 
--- /etc/puppetlabs/puppet/puppet.conf  2016-12-07 03:29:19.219026379 +0000
+++ /tmp/puppet-file20161207-15887-1afkw5j  2016-12-07 23:00:23.803972337 +0000
@@ -1,10 +1,4 @@
-# TESTING
-# This file can be used to override the default puppet settings.
-# See the following links for more details on what settings are available:
-# - https://docs.puppetlabs.com/puppet/latest/reference/config_important_settings.html
-# - https://docs.puppetlabs.com/puppet/latest/reference/config_about_settings.html
-# - https://docs.puppetlabs.com/puppet/latest/reference/config_file_main.html
-# - https://docs.puppetlabs.com/puppet/latest/reference/configuration.html
+
 [master]
 vardir = /opt/puppetlabs/server/data/puppetserver
 logdir = /var/log/puppetlabs/puppetserver
@@ -12,6 +6,7 @@
 pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
 codedir = /etc/puppetlabs/code
 dns_alt_names =XXXX
+
 reports = store, foreman
 reportdir = $vardir/reports


Notice: /Stage[main]/Pm::Classes::Configuration/File[/etc/puppetlabs/puppet/puppet.conf]/content: 
--- /etc/puppetlabs/puppet/puppet.conf  2016-12-07 03:29:19.219026379 +0000
+++ /tmp/puppet-file20161207-15887-uy7270   2016-12-07 23:00:23.808972337 +0000
@@ -1,10 +1,4 @@
-# TESTING
-# This file can be used to override the default puppet settings.
-# See the following links for more details on what settings are available:
-# - https://docs.puppetlabs.com/puppet/latest/reference/config_important_settings.html
-# - https://docs.puppetlabs.com/puppet/latest/reference/config_about_settings.html
-# - https://docs.puppetlabs.com/puppet/latest/reference/config_file_main.html
-# - https://docs.puppetlabs.com/puppet/latest/reference/configuration.html
+
 [master]
 vardir = /opt/puppetlabs/server/data/puppetserver
 logdir = /var/log/puppetlabs/puppetserver
@@ -12,6 +6,7 @@
 pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
 codedir = /etc/puppetlabs/code
 dns_alt_names = XXXX
+
 reports = store, foreman
 reportdir = $vardir/reports


Notice: /Stage[main]/Pm::Classes::Configuration/File[/etc/puppetlabs/puppet/puppet.conf]/content: current_value {md5}dbbf413a3623b3fd204ac255af96c709, should be {md5}6e25f3d067d4cc9d52a2f7ee9888a98c (noop)

Cheers
Chris
PS: yes, I've grepped through site.pp, nodes.pp, all modules, both common and for this env and I can't see 2 calls...

edit retag flag offensive close merge delete

Comments

if this didnt happen prior to your change could you not just do a git diff - this will show changes - maybe paste them here if not clear?

sahumphries gravatar imagesahumphries ( 2016-12-08 05:37:29 -0500 )edit

What filesystem is on /etc? `lsattr(1)`? `getfacl(1)`? Why is your second appearance of the diff trailed by `(noop)`? Does the resource have `noop => true`? Did you run `puppet-agent` with `--noop`? No, there can't be two file resource having the same path (which gets aliased to the title).

Kai Burghardt gravatar imageKai Burghardt ( 2016-12-08 06:02:24 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2016-12-11 22:18:11 -0500

cm01 gravatar image

@sahumphries: its a new module on a new server to go into git...

@Kai; normal ext4 etc. The 'noop' is prob because I'm running --noop to see what would happen (or possibly because its trying to the same thing twice....)

@both/anyone; so it looks like some weird kind of caching issue. I just moved the whole thing out of the way, then started putting it back piece by piece and that seems to have fixed it... Don't you just hate that... wasted a lot of my time.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-12-07 17:37:30 -0500

Seen: 55 times

Last updated: Dec 11 '16