Bug 1295785 - python-nova contains *.po files
Summary: python-nova contains *.po files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ga
: 8.0 (Liberty)
Assignee: Sven Anderson
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On: 892602
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-05 13:07 UTC by Attila Fazekas
Modified: 2019-09-09 16:25 UTC (History)
12 users (show)

Fixed In Version: openstack-nova-12.0.1-3.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-07 21:20:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Remove .po/.pot files from package (1.43 KB, patch)
2016-02-08 12:54 UTC, Sven Anderson
no flags Details | Diff
Remove .po/.pot files from package (1.48 KB, patch)
2016-02-12 16:44 UTC, Sven Anderson
svanders: review?
Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0603 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 Enhancement Advisory 2016-04-08 00:53:53 UTC

Description Attila Fazekas 2016-01-05 13:07:43 UTC
Description of problem:
*.po files are the source of the *.mo files.

Version-Release number of selected component (if applicable):
python-nova-12.0.0-3.el7ost.noarch


Actual results:
*.po files not in use, just occupies space.


Expected results:
Package *.mo files, instead of *.po.


Additional info:
The issue not only python-nova related,
this bug might be used as template for other project.

Other projects might use lazy mode for locale lookup, which
causes extra stat calls.

Comment 2 Sven Anderson 2016-01-25 13:55:45 UTC
The spec files don't call "setup.py compile_catalog", so the .mo files have never been created.

I'm just working upstream to fix https://bugs.launchpad.net/openstack-i18n/+bug/1536226 so that all .mo files are generated.

Then I will add the missing "setup.py compile_catalog" to the spec file in order to create the mo. files and let it remove the .po files as well.

Comment 3 Sven Anderson 2016-02-08 12:54:57 UTC
Created attachment 1122153 [details]
Remove .po/.pot files from package

Comment 4 Sven Anderson 2016-02-12 16:44:57 UTC
Created attachment 1123578 [details]
Remove .po/.pot files from package

Comment 7 Prasanth Anbalagan 2016-02-23 13:31:21 UTC
Verified as follows - no *.po files found

Version
========

[root@lynx13 ~]# yum list installed | grep openstack-nova
openstack-nova-api.noarch            1:12.0.1-6.el7ost       @RH7-RHOS-8.0      
openstack-nova-cert.noarch           1:12.0.1-6.el7ost       @RH7-RHOS-8.0      
openstack-nova-common.noarch         1:12.0.1-6.el7ost       @RH7-RHOS-8.0      
openstack-nova-compute.noarch        1:12.0.1-6.el7ost       @RH7-RHOS-8.0      
openstack-nova-conductor.noarch      1:12.0.1-6.el7ost       @RH7-RHOS-8.0      
openstack-nova-console.noarch        1:12.0.1-6.el7ost       @RH7-RHOS-8.0      
openstack-nova-novncproxy.noarch     1:12.0.1-6.el7ost       @RH7-RHOS-8.0      
openstack-nova-scheduler.noarch      1:12.0.1-6.el7ost       @RH7-RHOS-8.0 

Logs
======
     
[root@lynx13 ~]# find /usr/lib/python2.7/site-packages/nova -name *.po
[root@lynx13 ~]# 
[root@lynx13 ~]# find /usr/lib/python2.7/site-packages -name *.po | grep nova
[root@lynx13 ~]#

Comment 8 errata-xmlrpc 2016-04-07 21:20:46 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://rhn.redhat.com/errata/RHEA-2016-0603.html


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