Ask Your Question

Create the service entity and API endpoint

asked 2015-07-22 09:03:43 -0500

mehdi-alisoltani-u gravatar image

updated 2015-07-23 02:26:32 -0500

Dears all

I am installing openstack Kilo following installation guide for ubuntu 14.04 .

I preformed the installation and configuration step by step and everything were fine until i wanted to create the service entity and API endpoint installation guide when i run the command

openstack service create  --name keystone --description "OpenStack Identity" identity

i face to the following error .....

Traceback (most recent call last):
  File "/usr/bin/openstack", line 10, in <module>
  File "/usr/lib/python2.7/dist-packages/openstackclient/", line 342, in main
    return OpenStackShell().run(argv)
  File "/usr/lib/python2.7/dist-packages/openstackclient/", line 79, in __init__
  File "/usr/lib/python2.7/dist-packages/cliff/", line 74, in __init__
    self._set_streams(stdin, stdout, stderr)
  File "/usr/lib/python2.7/dist-packages/cliff/", line 82, in _set_streams
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/", line 579, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

please someone tell me where this error come from and how to fix it

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-07-23 02:40:06 -0500

Yeah, it seems that you locales are not configured properly. Foexle is right. A little advice, you can view a list of available locales with the locale -a. Run these commands to get rid of errors. sudo apt-get install language-pack-en-base and then reconfiguring them by sudo dpkg-reconfigure locales.

edit flag offensive delete link more

answered 2015-07-23 01:29:15 -0500

foexle gravatar image

looks like your locales are not configured well on your system.


/var/lib/locales/supported.d/local or /var/lib/locales/supported.d/en

check your language in my case i'm using

de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8

and reconfigure your locales

dpkg-reconfigure locales

Hope it helps

edit flag offensive delete link more


thank you worked

mehdi-alisoltani-u gravatar imagemehdi-alisoltani-u ( 2015-07-27 03:06:43 -0500 )edit

answered 2015-08-26 09:03:59 -0500

tiagoor gravatar image

I also solved this kind of problem adding/checking these vars: LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_ALL="en_US.UTF-8" in this file "/etc/default/locale"

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-07-22 09:03:43 -0500

Seen: 480 times

Last updated: Jul 23 '15