Bug 1784425 - Translations missing from Horizon's container
Summary: Translations missing from Horizon's container
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-containers
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ga
: 16.0 (Train on RHEL 8.1)
Assignee: Lon Hohberger
QA Contact: Radomir Dopieralski
URL:
Whiteboard:
: 1781252 1784897 1788410 (view as bug list)
Depends On:
Blocks: 1768952 bonding, Bug, interface, multiple 1772566 1781252
TreeView+ depends on / blocked
 
Reported: 2019-12-17 12:03 UTC by Radomir Dopieralski
Modified: 2020-08-25 09:50 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-06 15:27:52 UTC
Target Upstream Version:
Embargoed:
mbarnett: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:0429 0 None None None 2020-02-06 15:28:14 UTC

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


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