Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2158896

Summary: Backup restore fails with /etc/puppetlabs/puppetserver/ca permission error
Product: Red Hat Satellite Reporter: mithun kalyat <mkalyat>
Component: Satellite MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: high    
Version: 6.11.4CC: ahumbe, ehelms, gsulliva
Target Milestone: UnspecifiedKeywords: EasyFix, Regression, Triaged, WorkAround
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: 2023-02-02 14:00:52 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 mithun kalyat 2023-01-06 20:36:23 UTC
Performed back up of satellite 6.11 on RHEL 7.9, restoring on Satellite 6.11 installed on RHEL 8 fails with following error.

===============
2022-12-05 09:56:15 [ERROR ] [configure] Systemd start for puppetserver failed!
2022-12-05 09:56:15 [ERROR ] [configure] journalctl log for puppetserver:
2022-12-05 09:56:15 [ERROR ] [configure] -- Logs begin at Mon 2022-12-05 09:19:26 CST, end at Mon 2022-12-05 09:56:15 CST. --
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:55:46 satellite systemd[1]: Starting puppetserver Service...
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: Execution error (ExceptionInfo) at slingshot.support/stack-trace (support.clj:201).
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: throw+: {:kind :puppetlabs.kitchensink.core/io-error, :msg "Parent directory '/etc/puppetlabs/puppetserver/ca' is not writable"}
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: Full report at:
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: /tmp/clojure-6133874288840130173.edn
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:15 satellite systemd[1]: puppetserver.service: Control process exited, code=exited status=1
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:15 satellite systemd[1]: puppetserver.service: Failed with result 'exit-code'.
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:15 satellite systemd[1]: Failed to start puppetserver Service.
2022-12-05 09:56:15 [ERROR ] [configure] /Stage[main]/Puppet::Server::Service/Service[puppetserver]/ensure: change from 'stopped' to 'running' failed: Systemd start for puppetserver failed!
2022-12-05 09:56:15 [ERROR ] [configure] journalctl log for puppetserver:
2022-12-05 09:56:15 [ERROR ] [configure] -- Logs begin at Mon 2022-12-05 09:19:26 CST, end at Mon 2022-12-05 09:56:15 CST. --
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:55:46 satellite systemd[1]: Starting puppetserver Service...
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: Execution error (ExceptionInfo) at slingshot.support/stack-trace (support.clj:201).
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: throw+: {:kind :puppetlabs.kitchensink.core/io-error, :msg "Parent directory '/etc/puppetlabs/puppetserver/ca' is not writable"}
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: Full report at:
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:14 satellite puppetserver[11944]: /tmp/clojure-6133874288840130173.edn
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:15 satellite systemd[1]: puppetserver.service: Control process exited, code=exited status=1
2022-12-05 09:56:15 [ERROR ] [configure] Dec 05 09:56:15 satellite systemd[1]: puppetserver.service: Failed with result 'exit-code'.
====================

$ cat etc/redhat-release 
Red Hat Enterprise Linux Server release 7.9 (Maipo)


$ cat installed-rpms | grep puppet
itesat6np.mdanderson.edu-puppet-client-1.0-1.noarch         Thu Nov 12 08:47:42 2020
puppetlabs-stdlib-5.2.0-1.el7sat.noarch                     Tue Aug 31 09:23:51 2021
puppetserver-7.4.2-1.el7sat.noarch                          Wed Oct 26 06:54:00 2022
puppet-agent-7.12.1-1.el7sat.x86_64                         Wed Oct 26 06:48:53 2022
puppet-agent-oauth-0.5.1-3.el7sat.noarch                    Wed Oct 26 06:55:48 2022
puppet-foreman_scap_client-0.4.0-1.el7sat.noarch            Thu Nov 12 08:22:04 2020
redhat-access-insights-puppet-1.0.1-1.el7sat.noarch         Thu Nov 12 08:22:03 2020
tfm-rubygem-foreman_puppet-2.0.6-1.el7sat.noarch            Wed Oct 26 06:57:06 2022
tfm-rubygem-hammer_cli_foreman_puppet-0.0.5-1.el7sat.noarch Wed Oct 26 06:56:53 2022


Is it due the puppet 7 version the CA ssl directory /etc/puppetlabs/puppetserver/ca?

Workaround:

  # chown -R puppet:puppet /etc/puppetlabs/puppetserver/ca

Comment 1 Eric Helms 2023-02-02 14:00:52 UTC

*** This bug has been marked as a duplicate of bug 2159839 ***