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

Change $deviceconfdir section to agent

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.8.0
    • Component/s: None
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2019-08-07, NW - 2019-08-21
    • Method Found:
      Needs Assessment
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Setting $deviceconfdir in the main section makes puppetserver want to create it, which it shouldn't.

      Starting puppetserver with an affected agent fails because of this:

      Aug 02 08:57:43 lnfb7hk8n03wnpk systemd[1]: Starting puppetserver Service...
      Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: RuntimeError: Got 1 failure(s) while initializing: File[/etc/puppetlabs/puppet/devices]: change from 'absent' to 'directory' failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/devices
      Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: block in use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1026
      Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: apply at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:249
      Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1016
      Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: initialize_puppet at uri:classloader:/puppetserver-lib/puppet/server/puppet_config.rb:45
      Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: initialize at uri:classloader:/puppetserver-lib/puppet/server/master.rb:32
      Aug 02 08:58:02 lnfb7hk8n03wnpk puppetserver[17006]: Execution error (RuntimeError) at RUBY/block in use (/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1026).
      Aug 02 08:58:02 lnfb7hk8n03wnpk puppetserver[17006]: (RuntimeError) Got 1 failure(s) while initializing: File[/etc/puppetlabs/puppet/devices]: change from 'absent' to 'directory' failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/devices
      

      Changing the section of $deviceconfdir to agent fixes the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gabriel.nagy Gabriel Nagy
                Reporter:
                gabriel.nagy Gabriel Nagy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support