Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1784425

Summary: Translations missing from Horizon's container
Product: Red Hat OpenStack Reporter: Radomir Dopieralski <rdopiera>
Component: openstack-containersAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Radomir Dopieralski <rdopiera>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.0 (Train)CC: fj-lsoft-ofuku, m.andre, mbarnett, mburns, msecaur, sclewis, scohen, vhariria, vimartin, ykawada
Target Milestone: gaKeywords: Regression, Triaged
Target Release: 16.0 (Train on RHEL 8.1)Flags: mbarnett: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 15:27:52 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:
Bug Depends On:    
Bug Blocks: 1768952, 499109, 1772566, 1781252    

Description Radomir Dopieralski 2019-12-17 12:03:24 UTC
The images built for Horiozon have their translations missing.

Comment 1 Radomir Dopieralski 2019-12-17 12:04:07 UTC
This is a regression of https://bugzilla.redhat.com/show_bug.cgi?id=1729770 which was fixed with https://bugzilla.redhat.com/show_bug.cgi?id=1729770

Comment 2 Lon Hohberger 2019-12-17 12:10:23 UTC
On OSP15, we had a patch that looks like this:

@@ -29,10 +27,12 @@ RUN usermod --append --home /var/lib/horizon --groups kolla 
horizon \
         
         
         
-
-RUN dnf -y install glibc-all-langpacks gettext httpd mod_ssl openstack-dashboar
d openstack-heat-ui openstack-ironic-ui openstack-manila-ui openstack-neutron-lb
aas-ui openstack-octavia-ui openstack-sahara-ui python3-mod_wsgi \
-    && dnf clean all && rm -rf /var/cache/dnf \
-    && rpm -ql openstack-dashboard
+# Work around missing languages - bug #1729770
+RUN mv /etc/rpm/macros.image-language-conf / \
+    && dnf -y install openstack-dashboard \
+    && mv /macros.image-language-conf /etc/rpm \
+    && dnf -y install gettext httpd mod_ssl openstack-heat-ui openstack-ironic-
ui openstack-manila-ui openstack-neutron-lbaas-ui openstack-octavia-ui openstack
-sahara-ui python3-mod_wsgi \
+    && dnf clean all && rm -rf /var/cache/dnf


The problem is we had to move the macro.image-language-conf out of place and move it back so DNF didn't delete the translations.

Comment 3 Lon Hohberger 2019-12-17 12:12:07 UTC
The macro.image-language-conf tells DNF to delete most of the translations, so you have to move it before the transaction and move it back after.

If we were to fix this in openstack-base, a simple solution would be to remove the file.

Comment 4 Lon Hohberger 2019-12-17 12:24:42 UTC
The problem with removing the file in "base" is that every openstack image will grow in size, potentially a lot. That's why I did the above hack to avoid leaving it "missing".

Comment 5 Radomir Dopieralski 2020-01-06 08:20:31 UTC
*** Bug 1784897 has been marked as a duplicate of this bug. ***

Comment 6 Radomir Dopieralski 2020-01-06 16:16:25 UTC
*** Bug 1781252 has been marked as a duplicate of this bug. ***

Comment 8 Radomir Dopieralski 2020-01-07 08:40:23 UTC
*** Bug 1788410 has been marked as a duplicate of this bug. ***

Comment 10 Michael Barnett 2020-01-08 22:51:10 UTC
I'm +1 on moving forward with the workaround to prevent the regression.

Comment 15 Radomir Dopieralski 2020-01-16 15:23:18 UTC
This is fixed in the latest puddle.

Comment 17 errata-xmlrpc 2020-02-06 15:27:52 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/RHEA-2020:0429