Juno keystone installation fail to import oslo_i18n

Bug #1492951 reported by xugangsh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.i18n
Won't Fix
Undecided
Dolph Mathews

Bug Description

Test keystone installation on stable/juno recently, but failed to import module oslo_i18n

+ keystone-manage db_sync
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 30, in <module>
    from keystone import cli
  File "/usr/lib/python2.7/site-packages/keystone/cli.py", line 22, in <module>
    from keystone import assignment
  File "/usr/lib/python2.7/site-packages/keystone/assignment/__init__.py", line 15, in <module>
    from keystone.assignment import controllers # noqa
  File "/usr/lib/python2.7/site-packages/keystone/assignment/controllers.py", line 26, in <module>
    from keystone.common import controller
  File "/usr/lib/python2.7/site-packages/keystone/common/controller.py", line 21, in <module>
    from keystone.common import utils
  File "/usr/lib/python2.7/site-packages/keystone/common/utils.py", line 26, in <module>
    from oslo.utils import strutils
  File "/usr/lib/python2.7/site-packages/oslo/utils/strutils.py", line 13, in <module>
    from oslo_utils.strutils import * # noqa
  File "/usr/lib/python2.7/site-packages/oslo_utils/strutils.py", line 26, in <module>
    from oslo_utils._i18n import _
  File "/usr/lib/python2.7/site-packages/oslo_utils/_i18n.py", line 21, in <module>
    import oslo_i18n
ImportError: No module named oslo_i18n

I checked global requirements for stable/juno
http://git.openstack.org/cgit/openstack/requirements/tree/global-requirements.txt?h=stable/juno

I found oslo.utils is below
oslo.utils>=1.4.0,<1.5.0 # Apache-2.0

But oslo.i18n still below
oslo.i18n>=1.0.0,<=1.3.1 # Apache-2.0

And from requirements of oslo.utils 1.4.0
http://git.openstack.org/cgit/openstack/oslo.utils/tree/requirements.txt?id=1.4.0

If we install oslo.utils version 1.4.0, it will require oslo.i18n >= 1.3.0
oslo.i18n>=1.3.0 # Apache-2.0

So if we only install oslo.i18n 1.0.0, it will output can not find module oslo_i18n

Revision history for this message
Steve Martinelli (stevemar) wrote :

was this done with devstack or a particular distribution?

Revision history for this message
xugangsh (xugangsh) wrote :

We used some scripts similar to devstack but distro like RDO epel repo
All are rpms.
The command is like below

yum install openstack-keystone python-keystoneclient

They will automatically pull oslo.utils with 1.4.0 and oslo.i18n 1.0.0 which is minimum version of Juno

After I upgrade oslo.i18n to 1.3.0, then keystone installation can pass

Revision history for this message
Dolph Mathews (dolph) wrote :

Moved this to oslo.i18n, but it sounds like openstack/requirements for stable/juno just need to be fixed to reflect the reality (that oslo.utils 1.4.0 requires oslo.i18n>=1.3.0).

affects: keystone → oslo.i18n
Revision history for this message
Dolph Mathews (dolph) wrote :

Fixed proposed to openstack/requirements:

  https://review.openstack.org/#/c/221540/

(If there's an LP project to track bugs in openstack/requirements, please move this bug! Thanks.)

Changed in oslo.i18n:
assignee: nobody → Dolph Mathews (dolph)
status: New → In Progress
Revision history for this message
xugangsh (xugangsh) wrote :

per comment 3,

Yeah, in fact, I would open bug to requirements category which I did not find.

Changed in oslo.i18n:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.