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 1955861 - Build status is still being posted inside '/mnt/sysimage/root/install.post.log' instead of 'root/install.post.log' for Satellite 6.8 and above
Summary: Build status is still being posted inside '/mnt/sysimage/root/install.post.lo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.8.0
Hardware: All
OS: All
unspecified
high
Target Milestone: 6.10.0
Assignee: Lukas Zapletal
QA Contact: Ondrej Gajdusek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-01 03:12 UTC by Sayan Das
Modified: 2024-12-20 19:59 UTC (History)
4 users (show)

Fixed In Version: foreman-2.5.0-0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:10:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 32372 0 Normal Ready For Testing Wrong destination path for pre section logs in kickstart_default template 2021-05-03 07:58:55 UTC
Red Hat Knowledge Base (Solution) 5027471 0 None None None 2021-05-01 03:12:59 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:10:50 UTC

Description Sayan Das 2021-05-01 03:12:08 UTC
Description of problem:

Via https://bugzilla.redhat.com/show_bug.cgi?id=1784012 , what we actually delivered is following.

Earlier
~~
%post --log=/root/install.post.log
~~

Used to be,
~~
%post --log=/mnt/sysimage//root/install.post.log
~~


But when I look into https://projects.theforeman.org/issues/28521 , that includes the fix for following section as well which never made into Satellite 6.8 or above.

~~
if test -f /tmp/foreman_built; then
  echo "calling home: build is done!"
  <%= indent(2, skip1: true) { snippet('built', :variables => { :endpoint => 'built', :method => 'POST', :body_file => '/mnt/sysimage/root/install.post.log' }) } -%>
else
  echo "calling home: build failed!"
  <%= indent(2, skip1: true) { snippet('built', :variables => { :endpoint => 'failed', :method => 'POST', :body_file => '/mnt/sysimage/root/install.post.log' }) } -%>
fi
~~




Version-Release number of selected component (if applicable):
Satellite 6.8 and above

How reproducible:

Always

Steps to Reproduce:
1. Build a system from Red Hat Satelite 6.8 or above

2. SSh to the built system and check for /mnt/sysimage/root/install.post.log and /root/install.post.log


Actual results:

Both /mnt/sysimage/root/install.post.log and /root/install.post.log are present


Expected results:

Only  /root/install.post.log should be present


Additional info:

This seems to be a minor fix at downstream. So if possible please deliver a hotfix for Satellite 6.8.6 and consider the permanent fix for 6.9.z

Comment 2 Bryan Kearney 2021-05-01 04:04:50 UTC
Upstream bug assigned to lzap

Comment 3 Bryan Kearney 2021-05-01 04:04:51 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/28521 has been resolved.

Comment 5 Ondrej Gajdusek 2021-07-30 11:31:51 UTC
VERIFIED

Satellite 6.10.0 snap 10

Respective logs are now placed in the correct path.

Comment 8 errata-xmlrpc 2021-11-16 14:10:44 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 (Moderate: Satellite 6.10 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-2021:4702


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