Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 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