Bug 1784012 - Default kickstart places log to /mnt/sysimage/root/install.post.log
Summary: Default kickstart places log to /mnt/sysimage/root/install.post.log
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.6.0
Hardware: All
OS: All
unspecified
low
Target Milestone: 6.8.0
Assignee: Lukas Zapletal
QA Contact: Roman Plevka
URL:
Whiteboard: needs
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-16 13:51 UTC by roarora
Modified: 2023-12-15 17:05 UTC (History)
14 users (show)

Fixed In Version: foreman-2.1.2.9-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 12:59:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28521 0 Normal Closed Default kickstart places log to /mnt/sysimage/root/install.post.log 2021-02-02 09:57:03 UTC
Red Hat Knowledge Base (Solution) 5027471 0 None None None 2020-04-29 05:51:49 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 12:59:51 UTC

Description roarora 2019-12-16 13:51:28 UTC
Description of problem:

In %post section we are already in chrooted environment. So --log /mnt/sysimage/root/install.post.log will create log file with this path in the actual OS file structure.

It should be directing logs to /root/install.post.log as we did prior.


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

How reproducible:
Always

Steps to Reproduce:
1. Provision a system with satellite 6
2. Post logs are in /mnt/sysimage/root/install.post.log instead of /root/install.post.log



Expected results:
provisioning template should not hould not be creating logging files under /mnt

Additional info:

Comment 5 Bryan Kearney 2019-12-17 09:05:10 UTC
Upstream bug assigned to lzap

Comment 7 Lynn Dixon 2020-03-31 15:25:04 UTC
Just to add another data point, I was able to duplicate this in my lab very easily.  I am using Sat 6.6 and standard kickstart templates, and PXE provisioned a normal RHEL 7.7 guest and this is the results after the machine was provisioned:  
https://share.getcloudapp.com/RBudj5r2


Adding myself to this BZ as well so I can keep a customer updated on its status.  I'm happy to help test in my lab.

Comment 8 rhituser 2020-03-31 16:25:02 UTC
It appears that this file is severely limited in terms of its usefulness when compared to previous information stored within this file.  From what I'm seeing, it's missing the majority of its previous contents such as Subscription Manager registration and other snippet output (Katello agent package install information, etc) and yum update logging information.  Easily, less than perhaps a tenth of the typical information as previously seen is contained within this log file now.  With this said, there is a bigger issue than this log file simply not being placed in root's home directory.  This lack of log detail was noticed on a recent RHEL 8.1 and 7.7 server.

Comment 9 Lukas Zapletal 2020-04-01 09:44:45 UTC
Hello, some of the logging is now redirected into /root/install.postnochroot.log - check that file.

Comment 12 Lukas Zapletal 2020-08-11 11:35:30 UTC
WORKAROUND: Use the following template change: https://gitlab.sat.engineering.redhat.com/satellite6/foreman/-/merge_requests/520/diffs

Comment 14 Lukas Zapletal 2020-08-25 07:37:58 UTC
Hello, any version. It is one line change.

Comment 18 Roman Plevka 2020-09-21 13:16:55 UTC
VERIFIED
on sat6.8.0-16

the install.post.log is correctly placed inside /root/ directory now.

Comment 22 errata-xmlrpc 2020-10-27 12:59:35 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 (Important: Satellite 6.8 release), 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-2020:4366


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