Bug 1295785

Summary: python-nova contains *.po files
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: openstack-novaAssignee: Sven Anderson <svanders>
Status: CLOSED ERRATA QA Contact: Prasanth Anbalagan <panbalag>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: berrange, dasmith, eglynn, jschluet, kchamart, ndipanov, sbauza, sferdjao, sgordon, svanders, vromanso, yeylon
Target Milestone: ga   
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-12.0.1-3.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:20:46 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: 892602    
Bug Blocks:    
Attachments:
Description Flags
Remove .po/.pot files from package
none
Remove .po/.pot files from package svanders: review?

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