Bug 1955861

Summary: 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
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: Provisioning TemplatesAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Ondrej Gajdusek <ogajduse>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: egolov, gtalreja, mhulan, sadas
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: foreman-2.5.0-0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:10:44 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 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