locale.Error: unsupported locale setting

Bug #1445760 reported by Thomas Bechtold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cliff
Fix Released
Low
Thomas Bechtold

Bug Description

While running a fresh devstack installation on ubuntu 14.04, I got:

ubuntu@tb-manila-devstack:~/devstack$ openstack user list
Traceback (most recent call last):
  File "/usr/local/bin/openstack", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 342, in main
    return OpenStackShell().run(argv)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 79, in __init__
    command_manager=commandmanager.CommandManager('openstack.cli'))
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 74, in __init__
    self._set_streams(stdin, stdout, stderr)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 82, in _set_streams
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/locale.py", line 579, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cliff (master)

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

Changed in python-cliff:
assignee: nobody → Thomas Bechtold (toabctl)
status: New → In Progress
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

FWIW, the error is caused by missing locale environment variables or other defaults.

Changed in python-cliff:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cliff (master)

Reviewed: https://review.openstack.org/175123
Committed: https://git.openstack.org/cgit/openstack/cliff/commit/?id=3b138fe97daa37f3f92d999963f4f75dfab7c090
Submitter: Jenkins
Branch: master

commit 3b138fe97daa37f3f92d999963f4f75dfab7c090
Author: Thomas Bechtold <email address hidden>
Date: Sat Apr 18 13:10:29 2015 +0200

    Catch and ignore error when locale can not be set

    Change-Id: I35485a360d54b3b692b7a7184827335bf64e6472
    Closes-Bug: #1445760

Changed in python-cliff:
status: In Progress → Fix Committed
Changed in python-cliff:
milestone: none → 1.11.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.