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 1532262 - capsule-certs-generate logfile should be under /var/log/foreman*
Summary: capsule-certs-generate logfile should be under /var/log/foreman*
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: Unspecified
Hardware: x86_64
OS: Linux
low
low
Target Milestone: 6.4.0
Assignee: Chris Roberts
QA Contact: Radovan Drazny
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-08 13:55 UTC by Pavel Moravec
Modified: 2019-11-05 23:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:35:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 22810 0 None None None 2018-03-07 18:21:33 UTC

Description Pavel Moravec 2018-01-08 13:55:57 UTC
Description of problem:
capsule-certs-generate tool logs to /var/log/capsule-certs-generate.log . Since the log is foreman or foreman-installer relevant, the logfile should be placed under either directory:

/var/log/foreman/
/var/log/foreman-installer/



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


How reproducible:
100%


Steps to Reproduce:
1. Invoke capsule-certs-generate
2. concurrently run:

lsof -p $(ps aux | grep -v grep | grep capsule-certs-generate | awk '{ print $2 }') | grep log

to see what logfile the tool uses


Actual results:
2. to return /var/log/foreman-installer/capsule-certs-generate.log


Expected results:
2. returns /var/log/capsule-certs-generate.log


Additional info:

Comment 2 Radovan Drazny 2018-07-18 12:18:35 UTC
Tested on Sat 6.4 Snap 12, satellite-installer-6.4.0.5-1.beta using the reproducer from the initial report.

$ lsof -p $(ps aux | grep capsule-certs-generat[e] | awk ' { print $2 } ') | grep log
capsule-c 31652 root  mem    REG  253,0     15720 100852721 /usr/lib64/ruby/syslog.so
capsule-c 31652 root    7u   REG  253,0    259765 102412993 /var/log/foreman-installer/foreman-proxy-certs-generate.log

Resulting log file can be found in the /var/log/foreman-installer directory.

Comment 3 Bryan Kearney 2018-10-16 19:35:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


Note You need to log in before you can comment on or make changes to this bug.