Bug 1752956

Summary: Don't restore webpack assets dir
Product: Red Hat Satellite Reporter: Jonathon Turel <jturel>
Component: Satellite MaintainAssignee: Jonathon Turel <jturel>
Status: CLOSED DUPLICATE QA Contact: Nikhil Kathole <nkathole>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: apatel, inecas, kgaikwad, mbacovsk
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-17 16:27:06 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:23:56 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:23:58 UTC
Created from redmine issue https://projects.theforeman.org/issues/27871

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

Comment 4 Jonathon Turel 2019-09-17 16:27:06 UTC

*** This bug has been marked as a duplicate of bug 1752957 ***