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...
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.8.0
Hardware: All
OS: All
Target Milestone: 6.10.0
Assignee: Lukas Zapletal
QA Contact: Roman Plevka
Depends On:
TreeView+ depends on / blocked
Reported: 2021-05-01 03:12 UTC by Sayan Das
Modified: 2021-05-03 14:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

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

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.

%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' }) } -%>
  echo "calling home: build failed!"
  <%= indent(2, skip1: true) { snippet('built', :variables => { :endpoint => 'failed', :method => 'POST', :body_file => '/mnt/sysimage/root/install.post.log' }) } -%>

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

How reproducible:


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@redhat.com

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.

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