Skip to content

[Puppet 7] configuration version remains unchanged. #9551

Open
@hojeonghan

Description

@hojeonghan

Describe the Bug

When i run directly command puppet agent -t on puppet-agent node that log looks fine, but the configuration version is remained unchanged.

Expected Behavior

I updated the puppet code on puppet server and then directly run command on puppet-agent node to apply new code. but, some agent nodes couldn't fetch the new code. They fetched the previous code. So I checked the /opt/puppetlabs/puppet/cache/client_data directory contents and /var/log/puppetlabs/puppet/puppet.log. I discovered unchanged configuration version.

Steps to Reproduce

Steps to reproduce the behavior:

  1. update puppet code on puppetserver
  2. run puppet agent -t command on puppet-agent

Environment

  • Version : 7.34.0
  • Platform : ubuntu20.04, ubuntu22.04

Additional Context

  • puppet.log of issued puppet-agent
:/var/log/puppetlabs/puppet# cat puppet.log.1 | grep "Applying configuration version"
2025-04-21 09:44:52 +0900 Puppet (info): Applying configuration version '1745166682'
2025-04-21 10:23:48 +0900 Puppet (info): Applying configuration version '1745164281'
2025-04-21 10:43:04 +0900 Puppet (info): Applying configuration version '1745164281'
2025-04-21 10:52:03 +0900 Puppet (info): Applying configuration version '1745166682'
2025-04-21 11:00:26 +0900 Puppet (info): Applying configuration version '1745166682'
2025-04-21 11:14:49 +0900 Puppet (info): Applying configuration version '1745166682'
2025-04-21 11:28:17 +0900 Puppet (info): Applying configuration version '1745166682'
2025-04-21 11:57:47 +0900 Puppet (info): Applying configuration version '1745166682'
2025-04-21 11:59:03 +0900 Puppet (info): Applying configuration version '1745173883'
  • puppet.log of non-issued puppet-agent
/var/log/puppetlabs/puppet# grep "Applying configuration version" *
puppet.log-20250422:2025-04-21 09:45:14 +0900 Puppet (info): Applying configuration version '1745196313'
puppet.log-20250422:2025-04-21 10:26:33 +0900 Puppet (info): Applying configuration version '1745198793'
puppet.log-20250422:2025-04-21 10:48:07 +0900 Puppet (info): Applying configuration version '1745200086'
puppet.log-20250422:2025-04-21 10:53:13 +0900 Puppet (info): Applying configuration version '1745200393'
puppet.log-20250422:2025-04-21 11:28:48 +0900 Puppet (info): Applying configuration version '1745202527'
  • puppet output log when I run command puppet agent -t at the same time on different puppet-agent node
    *
root@testA# puppet agent -t
Info: Using environment 'development'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Notice: Requesting catalog from 🔓🔓
Notice: Catalog compiled by 🔓🔓
Info: Caching catalog for 🔓🔓
Info: Applying configuration version '1745275881'  ✅ --> this unix time is 10 hour ago.
Notice: [info] Applying Puppet code ...
Notice: /Stage[main]/Main/Node[default]/Notify[KEP INFO]/message: defined 'message' as '[info] Applying Puppet code  ...'  ✅ --> this code is NOT latest puppet code.
Notice: /Stage[main]/🔓🔓::Rsyslog/File[/etc/rsyslog.d/13-🔓🔓.conf]/content:
--- /etc/rsyslog.d/13-🔓🔓.conf	2025-04-18 15:27:06.245068538 +0900
+++ /tmp/puppet-file20250422-47158-izgksg	2025-04-22 17:51:03.166547337 +0900
@@ -13,7 +13,7 @@
     action (
         type="omfwd"
         template="plain"
(...)

root@testA# puppet config print server
puppetserver.test.com

root@testB# puppet agent -t
Info: Using environment 'development'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Notice: Requesting catalog from 🔓🔓
Notice: Catalog compiled by 🔓🔓
Info: Caching catalog for 🔓🔓
Info: Applying configuration version '1745311874'  ✅ --> this unix time matched "now".
Notice: This is a Puppet.
Notice: /Stage[main]/Main/Node[default]/Notify[KEP INFO]/message: defined 'message' as 'This is a Puppet.' ✅ --> this code is latest puppet code.
Notice: /Stage[main]/🔓🔓::Rsyslog/File[/etc/rsyslog.d/13-🔓🔓.conf]/content:
--- /etc/rsyslog.d/13-🔓🔓.conf	2025-04-15 17:22:44.366995294 +0900
+++ /var/log/puppetlabs/puppet/puppet-file20250422-2337508-mfzyah	2025-04-22 17:51:15.471870591 +0900
@@ -13,7 +13,7 @@
     action (
         type="omfwd"
         template="plain"
(...)

root@testB# puppet config print server
puppetserver.test.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions