Bug 1739962

Summary: The UI for listing puppet CA certs is slow in an intermediate-to-large environment
Product: Red Hat Satellite Reporter: matt jia <mjia>
Component: PuppetAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: mhulan
Target Milestone: UnspecifiedKeywords: Performance, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-18 19:44:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description matt jia 2019-08-12 01:58:43 UTC
Description of problem:

In an intermediate-to-large environment, running `opt/puppetlabs/bin/puppet cert --ssldir /etc/puppetlabs/puppet/ssl --list --all` takes about 90s. This causes the UI that lists the puppet CA certs timeout as the default read timeout is 60s. The workaround is to increase proxy_request_timeout, however the user experience is still really bad((loading the page takes 1-2 minutes). In contrast, running 'puppetserver ca list --all` only takes 3s. As you can see, the difference of listing the certs is huge so I think we should change the foreman-proxy to use puppetserver ca command instead of the old puppet command.

Version-Release number of selected component (if applicable):

6.5


How reproducible:

Normal

Steps to Reproduce:

The slowness is only observed in the cus's env.

[root@lp000xslnx0005 ~]# time puppetserver ca list --all | grep real

real    0m3.556s
user    0m1.078s
sys     0m0.099s
[root@lp000xslnx0005 ~]# time /opt/puppetlabs/bin/puppet cert --ssldir /etc/puppetlabs/puppet/ssl --list --all| grep real
Warning: `puppet cert` is deprecated and will be removed in a future release.
   (location: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:370:in `run')

real    1m30.963s
user    1m29.257s
sys     0m0.578s

Actual results:

The UI is slow.

Expected results:

The UI shouldn't take 1-2 mins to load.

Comment 3 Shira Maximov 2020-03-05 08:37:24 UTC
Created redmine issue https://projects.theforeman.org/issues/29269 from this bug

Comment 5 Mike McCune 2022-01-28 22:30:40 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team. Thank you.

Comment 6 Mike McCune 2022-03-18 19:44:22 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.