Jira (PUP-11458) Transaction store file is corrupt with Puppet::Util::Execution::ProcessOutput

8 views
Skip to first unread message

Franck Jouvanceau (Jira)

unread,
Feb 17, 2022, 5:59:02 AM2/17/22
to puppe...@googlegroups.com
Franck Jouvanceau created an issue
 
Puppet / Bug PUP-11458
Transaction store file is corrupt with Puppet::Util::Execution::ProcessOutput
Issue Type: Bug Bug
Affects Versions: PUP 6.22.0, PUP 6.26.0, PUP 7.14.0
Assignee: Unassigned
Components: Catalog Application
Created: 2022/02/17 2:58 AM
Priority: Normal Normal
Reporter: Franck Jouvanceau

On linux (CentOS/RedHat) with puppet agent 6 the following error appears during puppet run :

Error: Transaction store file ..../state/transactionstore.yaml is corrupt ((..../state/transactionstore.yaml): Tried to load unspecified class: Puppet::Util::Execution::ProcessOutput); replacing
Wrapped exception:
Tried to load unspecified class: Puppet::Util::Execution::ProcessOutput

in transactionstore.yaml:

  Sysctl[net.ipv4.conf.all.send_redirects]:
    parameters:
      ensure:
        system_value:
        - :present
      value:
        system_value:
        - !ruby/string:Puppet::Util::Execution::ProcessOutput '1'
      permanent:
        system_value:
        - :false

sysctl module coming from : https://forge.puppet.com/modules/fiddyspence/sysctl
uses :

module/sysctl/provider/sysctl/linux.rb:
        Puppet::Provider::Command.new(@name, @path, Puppet::Util, Puppet::Util::Execution, { :failonfail => true, :combine => false, :custom_environment => @custom_environment })

adding the class Puppet::Util::Execution::ProcessOutput in @allowed_classes in transaction/persistence.rb seems to fix the pb.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Franck Jouvanceau (Jira)

unread,
Feb 17, 2022, 9:17:02 AM2/17/22
to puppe...@googlegroups.com
Franck Jouvanceau commented on Bug PUP-11458
 
Re: Transaction store file is corrupt with Puppet::Util::Execution::ProcessOutput

The bug seems more at fiddyspence/sysctl module, casting the values to strings is solving the pb.

Reply all
Reply to author
Forward
0 new messages