Bug 1752957

Summary: Don't restore webpack assets dir
Product: Red Hat Satellite Reporter: Jonathon Turel <jturel>
Component: Satellite MaintainAssignee: Jonathon Turel <jturel>
Status: CLOSED ERRATA QA Contact: Lucie Vrtelova <lvrtelov>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: apatel, egolov, inecas, kgaikwad, mbacovsk, mmccune, pcreech
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-0.5.0 Doc Type: No Doc Update
Doc Text:
Internal, no doc update needed
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 12:58:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathon Turel 2019-09-17 16:25:43 UTC
Plugin webpack assets are symlinked into /var/lib/foreman/public/webpack and restoring a backup which has older versions will break the symlinks pointing to newer packages. ie:

<pre>
[root@rhel7 vagrant]# ll /var/lib/foreman/public/webpack/

<snip>

lrwxrwxrwx. 1 root    root          99 Sep 16 00:12 foreman_ansible -> /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-3.0.7.1/public/webpack/foreman_ansible
lrwxrwxrwx. 1 root    root         117 Sep 16 00:12 foreman_remote_execution -> /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.8.0.3/public/webpack/foreman_remote_execution
lrwxrwxrwx. 1 root    root          97 Sep 16 00:12 foreman-tasks -> /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.15.10.1/public/webpack/foreman-tasks

</pre>

Comment 1 Jonathon Turel 2019-09-17 16:25:46 UTC
Created from redmine issue https://projects.theforeman.org/issues/27871

Comment 2 Jonathon Turel 2019-09-17 16:25:48 UTC
Upstream bug assigned to jturel

Comment 4 Jonathon Turel 2019-09-17 16:27:06 UTC
*** Bug 1752956 has been marked as a duplicate of this bug. ***

Comment 6 Bryan Kearney 2019-09-30 12:04:58 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27871 has been resolved.

Comment 12 errata-xmlrpc 2020-04-14 12:58:36 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/RHBA-2020:1442