Jira (PUP-11332) Puppet user resource is ridiculously slow on OSX

4 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Nov 4, 2021, 3:40:04 PM11/4/21
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Bug PUP-11332
Puppet user resource is ridiculously slow on OSX
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: rbspy-2021-11-04-6KcojqjPnU.flamegraph.svg
Created: 2021/11/04 12:39 PM
Priority: Normal Normal
Reporter: Josh Cooper

Puppet Version: 7.12.0
OS Name/Version: macOS 10.15

Desired Behavior:

Running puppet resource user root should take less than 5 seconds.

Actual Behavior:

It takes nearly 30 seconds on macOS , most of which is spent parsing XML plists. This is a large reason why acceptance tests take an hour longer on macOS (2hr 15min) as compared to redhat8 (1hr 16min)

# time puppet resource user root
user { 'root':
  ensure     => 'present',
  comment    => 'System Administrator',
  gid        => 0,
  uid        => 0,
  ...
}
 
real	0m26.029s
user	0m25.460s
sys	0m0.527s

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Nov 4, 2021, 3:48:02 PM11/4/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11332
 
Re: Puppet user resource is ridiculously slow on OSX

We seem to have regressed from PUP-5505. But if we install nokogiri, then it's more reasonable...

# /opt/puppetlabs/puppet/bin/gem install --no-document nokogiri
Fetching nokogiri-1.12.5-x86_64-darwin.gem
Successfully installed nokogiri-1.12.5-x86_64-darwin
1 gem installed
# time puppet resource user root
user { 'root':
  ensure     => 'present',
  comment    => 'System Administrator',
  gid        => 0,
  uid        => 0,
  ....
}
 
real	0m3.998s
user	0m3.440s
sys	0m0.431s

Reply all
Reply to author
Forward
0 new messages