Canonical-pike setup: cinder-api broken, fails to import _LE from i18n
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Not able to access cinder api,
Logs: /var/log/
ImportError: cannot import name _LE
2017-09-18 12:58:38.182724 mod_wsgi (pid=13764): Target WSGI script '/usr/bin/
2017-09-18 12:58:38.182750 mod_wsgi (pid=13764): Exception occurred processing WSGI script '/usr/bin/
2017-09-18 12:58:38.182811 Traceback (most recent call last):
2017-09-18 12:58:38.182859 File "/usr/bin/
2017-09-18 12:58:38.182908 from cinder.wsgi.wsgi import initialize_
2017-09-18 12:58:38.182916 File "/usr/lib/
2017-09-18 12:58:38.182948 from cinder import rpc
2017-09-18 12:58:38.182953 File "/usr/lib/
2017-09-18 12:58:38.182965 import cinder.context
2017-09-18 12:58:38.182970 File "/usr/lib/
2017-09-18 12:58:38.182978 from cinder import policy
2017-09-18 12:58:38.182982 File "/usr/lib/
2017-09-18 12:58:38.182989 from cinder import exception
2017-09-18 12:58:38.183004 File "/usr/lib/
2017-09-18 12:58:38.183012 from cinder.i18n import _, _LE
When took a look at /usr/lib/
import oslo_i18n as i18n
DOMAIN = 'cinder'
_translators = i18n.Translator
# The primary translation function using the well-known name "_"
_ = _translators.
def enable_
return i18n.enable_
def translate(value, user_locale=None):
return i18n.translate(
def get_available_
return i18n.get_
affects: | software-properties (Ubuntu) → cinder (Ubuntu) |
Hello Noopur,
Thank you for taking time to report this issue. It appears that the version of /usr/lib/ python2. 7/dist- packages/ cinder/ exception. py that you have is from Ocata. Can you please paste the results of 'dpkg -l | grep cinder' to the bug?
Thanks,
Corey