Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6660

cached catalogs setting not respected when --test is specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: PUP 4.6.0
    • Fix Version/s: PUP 5.0.0
    • Component/s: None
    • Template:
    • Acceptance Criteria:
      Hide

      When you run `puppet agent --test`, puppet uses the cached catalog (if "use_cached_catalog = true" in settings or enabled via command-line flag).

      Show
      When you run `puppet agent --test`, puppet uses the cached catalog (if "use_cached_catalog = true" in settings or enabled via command-line flag).
    • Team:
      Agent
    • Story Points:
      1
    • Sprint:
      Agent 2017-05-31
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      When you run `puppet agent --test`, puppet uses the cached catalog (if "use_cached_catalog = true" in settings or enabled via command-line flag). Puppet now behaves like it did pre-4.6.0 with respect to cached catalogs.
    • QA Risk Assessment:
      Automate
    • QA Risk Assessment Reason:
      We should try to automate testing this

      Description

      Description

      During UTF-8 testing for upgrades we discovered that the use_cached_catalog setting is not being respected in gf12ba81 or ga7c5f6b versions of Davis (we have not tested other versions). The impact of this is that customers will not be able to use cached catalogs.

      PE2015.2.0 (cached catalogs enabled on CentOS6):

      [root@node0 ~]# puppet agent -t
      Info: Using cached catalog from environment 'production'
      Info: Loading facts
      Info: Applying configuration version '1472295113'
      Notice: こんにちは
      Notice: /Stage[main]/Utf_8/Notify[こんにちは]/message: defined 'message' as 'こんにちは'
      Notice: ブランク
      Notice: /Utf_8::App[ブランク]/Utf_8::Component_one[ブランク_first]/Notify[ブランク]/message: defined 'message' as 'ブランク'
      Notice: English
      Notice: /Utf_8::App[English]/Utf_8::Component_one[English_first]/Notify[English]/message: defined 'message' as 'English'
      Notice: Applied catalog in 1.66 seconds
      [root@node0 ~]# puppet agent -t
      Info: Using cached catalog from environment 'production'
      Info: Loading facts
      Info: Applying configuration version '1472295113'
      Notice: こんにちは
      Notice: /Stage[main]/Utf_8/Notify[こんにちは]/message: defined 'message' as 'こんにちは'
      Notice: ブランク
      Notice: /Utf_8::App[ブランク]/Utf_8::Component_one[ブランク_first]/Notify[ブランク]/message: defined 'message' as 'ブランク'
      Notice: English
      Notice: /Utf_8::App[English]/Utf_8::Component_one[English_first]/Notify[English]/message: defined 'message' as 'English'
      Notice: Applied catalog in 1.95 seconds
      

      Davis (on CentOS7 and Ubuntu 16.04):

      [root@node1 ~]# cat /etc/puppetlabs/puppet/puppet.conf
      # 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
      [main]
      server = master.puppet.vm
      [agent]
      certname = node1.puppet.vm
      use_cached_catalog = true
      [root@node1 ~]# systemctl restart puppet
      [root@node1 ~]# puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for node1.puppet.vm
      Info: Applying configuration version '1472300511'
      Notice: こんにちは
      Notice: /Stage[main]/Utf_8/Notify[こんにちは]/message: defined 'message' as 'こんにちは'
      Notice: ブランク
      Notice: /Utf_8::App[ブランク]/Utf_8::Component_one[ブランク_second]/Notify[ブランク]/message: defined 'message' as 'ブランク'
      Notice: English
      Notice: /Utf_8::App[English]/Utf_8::Component_one[English_second]/Notify[English]/message: defined 'message' as 'English'
      Notice: Applied catalog in 0.89 seconds
      [root@node1 ~]# puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for node1.puppet.vm
      Info: Applying configuration version '1472300535'
      Notice: こんにちは
      Notice: /Stage[main]/Utf_8/Notify[こんにちは]/message: defined 'message' as 'こんにちは'
      Notice: ブランク
      Notice: /Utf_8::App[ブランク]/Utf_8::Component_one[ブランク_second]/Notify[ブランク]/message: defined 'message' as 'ブランク'
      Notice: English
      Notice: /Utf_8::App[English]/Utf_8::Component_one[English_second]/Notify[English]/message: defined 'message' as 'English'
      Notice: Applied catalog in 0.83 seconds
      [root@node1 ~]# puppet agent -t
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for node1.puppet.vm
      Info: Applying configuration version '1472300560'
      Notice: こんにちは
      Notice: /Stage[main]/Utf_8/Notify[こんにちは]/message: defined 'message' as 'こんにちは'
      Notice: ブランク
      Notice: /Utf_8::App[ブランク]/Utf_8::Component_one[ブランク_second]/Notify[ブランク]/message: defined 'message' as 'ブランク'
      Notice: English
      Notice: /Utf_8::App[English]/Utf_8::Component_one[English_second]/Notify[English]/message: defined 'message' as 'English'
      Notice: Applied catalog in 0.98 seconds
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                qa qa
                Reporter:
                brett.gray Brett Gray
                QA Contact:
                Eric Delaney
              • Votes:
                1 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support