Jira (PUP-11625) Augeas not working on M1 OSX Big Sur

16 views
Skip to first unread message

Jeffrey Clark (Jira)

unread,
Sep 15, 2022, 5:33:02 AM9/15/22
to puppe...@googlegroups.com
Jeffrey Clark created an issue
 
Puppet / Bug PUP-11625
Augeas not working on M1 OSX Big Sur
Issue Type: Bug Bug
Affects Versions: PUP 6.28.0, PUP 7.19.0
Assignee: Unassigned
Components: Catalog Application, Types and Providers
Created: 2022/09/15 2:32 AM
Environment:

Mac M1 Laptop, OSX 12.5.1 Monterey

Priority: Normal Normal
Reporter: Jeffrey Clark

Puppet Version: Tested 7.19 and 6.28
OS Name/Version: OSX Monterey 12.5.1

Any attempt to declare an augeas resource results in an execution failure. Unable to test if this bug also impacts x86_64 Macs running Big Sur.

Desired Behavior:

Puppet successfully applies catalog with augeas resources on Big Sur.

Actual Behavior:

puppet apply test.pp

test.pp

augeas { 'test_ssh':
  lens    => 'Ssh.lns',
  incl    => '/etc/ssh/ssh_config',
  context => '/files/etc/ssh/ssh_config',
  changes => [
    'set Host testing.testville.nil'
  ]
}

Result:

Notice: Compiled catalog for -q9yrfj406y.local in environment production in 0.03 seconds
Warning: Augeas[test_ssh](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Error: /Stage[main]/Main/Augeas[test_ssh]: Could not evaluate: Save failed, see debug output for details
Notice: Applied catalog in 0.01 seconds

Relevant debug output:

Debug: Augeas[test_ssh](provider=augeas): /augeas/load/Xfm/error = /opt/puppetlabs/puppet/share/augeas/lenses/dist/util.aug:115.2-123.51:Failed to compile comment_multiline
/opt/puppetlabs/puppet/share/augeas/lenses/dist/util.aug:116.20-.69:exception: Regular expression subtraction 'r1 - r2' failed

As puppet was unable to make use of the augeas provider (ruby), I tested the following with the shipped ruby interpreter.

/opt/puppetlabs/puppet/bin/ruby test.rb

test.rb:

require 'augeas'
 
Augeas::open do |aug|
  aug.set("/files/etc/ssh/ssh_config/Host", "testing.testville.nil")
  unless aug.save
    raise IOError, "Failed to save changes"
  end
end 

Result:

Traceback (most recent call last):
        2: from test.rb:3:in `<main>'
        1: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/augeas.rb:48:in `open'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/augeas.rb:48:in `open3': unknown error - Failed to initialize Augeas (SystemCallError)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Jeffrey Clark (Jira)

unread,
Sep 15, 2022, 5:37:03 AM9/15/22
to puppe...@googlegroups.com

Christopher Thorn (Jira)

unread,
Sep 15, 2022, 3:07:02 PM9/15/22
to puppe...@googlegroups.com

Linked PA-4686, which is more specific about the binary tool.

Morgan Rhodes (Jira)

unread,
Sep 20, 2022, 4:22:02 PM9/20/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
 
Change By: Morgan Rhodes
Story Points: 0

Morgan Rhodes (Jira)

unread,
Sep 20, 2022, 4:22:03 PM9/20/22
to puppe...@googlegroups.com
Morgan Rhodes updated an issue
Change By: Morgan Rhodes
Sprint: Phoenix 2022-09-28

Christopher Thorn (Jira)

unread,
Sep 21, 2022, 11:37:01 AM9/21/22
to puppe...@googlegroups.com
Christopher Thorn updated an issue
Change By: Christopher Thorn
Community Contributors: h0tw1r3
Release Notes: Bug Fix
Release Notes Summary: Bug fix for puppet-agent platform MacOSX for the Augeas component.

Christopher Thorn (Jira)

unread,
Sep 21, 2022, 2:00:05 PM9/21/22
to puppe...@googlegroups.com
 
Re: Augeas not working on M1 OSX Big Sur

Jeffrey Clark thanks again for the contribution, the runtime was just promoted on the main branch to puppet-agent with the SHA of fd3395f180eb2cb7e2d93d3ab66c18e55db50563. Tomorrow morning the puppet-agent's nightly job will run and when that passes the agent will be promoted with the fix to nightlies.

Josh Cooper (Jira)

unread,
Sep 30, 2022, 4:28:02 PM9/30/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Team: Phoenix
Reply all
Reply to author
Forward
0 new messages