WSGI mod due wrong oslo i18n import

Bug #1479376 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Medium
Lucas Alvares Gomes

Bug Description

When trying to start the Ironic API with apache wsgi mode I get

[Wed Jul 29 14:40:42.693332 2015] [:error] [pid 4317:tid 139835470763776] [remote 192.168.122.156:40449] mod_wsgi (pid=4317): Target WSGI script '/opt/stack/ironic/ironic/api/app.wsgi' cannot be loaded as Python module.
[Wed Jul 29 14:40:42.693342 2015] [:error] [pid 4317:tid 139835470763776] [remote 192.168.122.156:40449] mod_wsgi (pid=4317): Exception occurred processing WSGI script '/opt/stack/ironic/ironic/api/app.wsgi'.
[Wed Jul 29 14:40:42.693362 2015] [:error] [pid 4317:tid 139835470763776] [remote 192.168.122.156:40449] Traceback (most recent call last):
[Wed Jul 29 14:40:42.693379 2015] [:error] [pid 4317:tid 139835470763776] [remote 192.168.122.156:40449] File "/opt/stack/ironic/ironic/api/app.wsgi", line 22, in <module>
[Wed Jul 29 14:40:42.693408 2015] [:error] [pid 4317:tid 139835470763776] [remote 192.168.122.156:40449] from oslo import i18n
[Wed Jul 29 14:40:42.693426 2015] [:error] [pid 4317:tid 139835470763776] [remote 192.168.122.156:40449] ImportError: cannot import name i18n

This is due the import at ironic/ironic/api/app.wsgi which is doing:

from oslo import i18n

It should be

import oslo_i18n as i18n

Changed in ironic:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
importance: Undecided → Medium
summary: - WSGI mod upstream broken due wrong import
+ WSGI mod due wrong oslo i18n import
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/207068

Changed in ironic:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/207068
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=344120bfa3c9573819b87e59aa314dc01a9d24b6
Submitter: Jenkins
Branch: master

commit 344120bfa3c9573819b87e59aa314dc01a9d24b6
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Jul 29 15:17:46 2015 +0100

    Fix apache wsgi import

    The Oslo libraries have moved all of their code out of the 'oslo'
    namespace package into per-library packages. Seems we did forget the
    wsgi file.

    Change-Id: I8179655a2747f4e4f1e66127d040cb8d5c1aa498
    Closes-Bug: #1479376

Changed in ironic:
status: In Progress → Fix Committed
Changed in ironic:
milestone: none → 4.0.0
status: Fix Committed → Fix Released
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.