Jira (PUP-9936) Change $deviceconfdir section to agent

5 views
Skip to first unread message

Gabriel Nagy (JIRA)

unread,
Aug 2, 2019, 6:01:03 AM8/2/19
to puppe...@googlegroups.com
Gabriel Nagy created an issue
 
Puppet / Bug PUP-9936
Change $deviceconfdir section to agent
Issue Type: Bug Bug
Assignee: Gabriel Nagy
Created: 2019/08/02 3:00 AM
Priority: Normal Normal
Reporter: Gabriel Nagy

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Mihai Buzgau (JIRA)

unread,
Aug 7, 2019, 4:38:09 AM8/7/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW - 2019-08-07 , NW - 2019-08-21

Alexandru Popa (JIRA)

unread,
Aug 14, 2019, 5:06:03 AM8/14/19
to puppe...@googlegroups.com
Alexandru Popa updated an issue
Change By: Alexandru Popa
Fix Version/s: PUP 6.8.0
Reply all
Reply to author
Forward
0 new messages