Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10666

Upgrading using the puppet_agent module can lead to errors due to inconsistent code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: puppet_agent
    • Labels:
      None
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      5
    • Sprint:
      NW - 2020-05-27, NW - 2020-06-10, NW - 2020-06-24
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Hide
      Upgrading on most \*NIX platforms (Linux, AIX, Solaris 11) will end the run after the puppet-agent upgrade finishes. This is to avoid unexpected behavior if already loaded Ruby code happens to interact with newer code that came with the upgrade, or viceversa. If run as a daemon, Puppet will automatically start a new agent run after the upgrade finishes.
      Show
      Upgrading on most \*NIX platforms (Linux, AIX, Solaris 11) will end the run after the puppet-agent upgrade finishes. This is to avoid unexpected behavior if already loaded Ruby code happens to interact with newer code that came with the upgrade, or viceversa. If run as a daemon, Puppet will automatically start a new agent run after the upgrade finishes.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.15
      Puppet Server Version: PE2019.7.0
      OS Name/Version: CentOS/8

      site.pp has remote filebickets enabled:

      # Define filebucket 'main':
      filebucket { 'main': path => false }
      # Make filebucket 'main' the default backup location for all files:
      File { backup => 'main' }
      Concat_file { backup => 'main' }
      

      After upgrading to puppet agent 6.15 started receiving filebucket related errors :

      2020-05-12 19:42:21 +0000 Puppet (err): Could not back up /etc/puppetlabs/pxp-agent/pxp-agent.conf: undefined method `head_filebucket_file' for #<Puppet::HTTP::Service::Compiler:0x00000000031ac658>
      2020-05-12 19:42:21 +0000 Puppet (err): Could not back up /etc/puppetlabs/pxp-agent/pxp-agent.conf: undefined method `head_filebucket_file' for #<Puppet::HTTP::Service::Compiler:0x00000000031ac658>
      2020-05-12 19:42:21 +0000 /Stage[main]/Puppet_enterprise::Pxp_agent/File[/etc/puppetlabs/pxp-agent/pxp-agent.conf]/content (err): change from '{md5}c85148d8c2d3eedef3e17a0de5e6097d' to '{md5}f48c2acb1fa971a3f28de790fe55244f' failed: Could not back up /etc/puppetlabs/pxp-agent/pxp-agent.conf: undefined method `head_filebucket_file' for #<Puppet::HTTP::Service::Compiler:0x00000000031ac658>

       

      I don't see any errors in puppetserver.log, related to pxp-agent failures, but on earlier the following messages are posted, which I assume came from local puppet run:

      2020-05-12T19:22:05.418Z INFO  [qtp1302820841-79] [puppetserver] Puppet Not Found: Could not find file_bucket_file md5/9d3d4072e6f91a38cdac3e31b8ccd137/etc/puppetlabs/r10k/r10k.yaml
      2020-05-12T19:22:05.441Z INFO  [qtp1302820841-76] [puppetserver] Puppet Computing checksum on string
      2020-05-12T19:22:30.494Z INFO  [qtp1302820841-75] [puppetserver] Puppet Not Found: Could not find file_bucket_file md5/fe9b603c73ce46b5bccc105844cf5950/opt/puppetlabs/server/data/packages/public/2019.7.0/el-8-x86_64.repo
      2020-05-12T19:22:30.515Z INFO  [qtp1302820841-76] [puppetserver] Puppet Computing checksum on string
      2020-05-12T19:22:30.609Z INFO  [qtp1302820841-75] [puppetserver] Puppet Not Found: Could not find file_bucket_file md5/e3272f76558c7892f451f4fd85241516/opt/puppetlabs/server/data/packages/public/2019.7.0/el-8-x86_64.bash
      2020-05-12T19:22:30.632Z INFO  [qtp1302820841-76] [puppetserver] Puppet Computing checksum on string
      2020-05-12T19:22:30.759Z INFO  [qtp1302820841-75] [puppetserver] Puppet Not Found: Could not find file_bucket_file md5/267a6f9d3c08fb071b05777f6187678b/opt/puppetlabs/server/data/packages/public/2019.7.0/install.ps1
      2020-05-12T19:22:30.780Z INFO  [qtp1302820841-76] [puppetserver] Puppet Computing checksum on string
      2020-05-12T19:22:30.912Z INFO  [qtp1302820841-75] [puppetserver] Puppet Not Found: Could not find file_bucket_file md5/b22e68f323b0172807f103b98c38bac9/opt/puppetlabs/server/data/packages/public/2019.7.0/install.bash
      2020-05-12T19:22:30.933Z INFO  [qtp1302820841-76] [puppetserver] Puppet Computing checksum on string
      2020-05-12T19:22:31.026Z INFO  [qtp1302820841-75] [puppetserver] Puppet Not Found: Could not find file_bucket_file md5/1ecf48fa7db7ee2192c6961567bc826c/opt/puppetlabs/server/data/packages/public/2019.7.0/upgrade.bash
      2020-05-12T19:22:31.053Z INFO  [qtp1302820841-76] [puppetserver] Puppet Computing checksum on string
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gabriel.nagy Gabriel Nagy
              Reporter:
              vchepkov Vadym Chepkov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support