Ask Your Question
2

What causes keystone to throw UnicodeEncodeError using devstack?

asked 2013-07-03 02:11:28 -0500

ciaodarwin gravatar image

updated 2013-07-26 16:53:58 -0500

smaffulli gravatar image

Hi

i'm installing openstack with devstack

The script works fine... all package were downloaded After some time I'll get these errors

+ ADMIN_TENANT=
++ keystone user-create --name admin --pass passstone --email <a href="mailto:admin@example.com">admin@example.com</a>
++ grep ' id '
++ get_field 2
++ read data
Traceback (most recent call last):
  File "/usr/local/bin/keystone", line 9, in <module>
    load_entry_point('python-keystoneclient==0.2.5', 'console_scripts', 'keystone')()
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py", line 499, in main
    print >> sys.stderr, e
UnicodeEncodeError: 'ascii' codec can't encode characters in position 264-265: ordinal not in range(128)
+ ADMIN_USER=
++ keystone role-create --name admin
++ grep ' id '
++ get_field 2
++ read data
Traceback (most recent call last):
  File "/usr/local/bin/keystone", line 9, in <module>
    load_entry_point('python-keystoneclient==0.2.5', 'console_scripts', 'keystone')()
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py", line 499, in main
    print >> sys.stderr, e
UnicodeEncodeError: 'ascii' codec can't encode characters in position 264-265: ordinal not in range(128)
+ ADMIN_ROLE=
+ keystone user-role-add --user_id --role_id --tenant_id
usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]
keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument

What is the solution of this problem? I installed my server on english and the keyboardlayout is on german/swiss... Can this be the problem?

OS: Ubuntu

The content of my localrc:

FLOATING_RANGE=10.12.76.255/24
FIXED_RANGE=10.12.76.0/24
FIXED_NETWORK_SIZE=256
HOST_IP=10.12.76.31
FLAT_INTERFACE=eth0
MYSQL_PASSWORD=somepass
RABBIT_PASSWORD=somepass
SERVICE_TOKEN=somepass
SERVICE_PASSWORD=somepass
ADMIN_PASSWORD=somepass
edit retag flag offensive close merge delete

Comments

1

This should not happen what's your localrc?

chmouel gravatar imagechmouel ( 2013-07-03 04:35:48 -0500 )edit

@ciaodarwin better to edit the answer with more details than adding more comments :) It keeps the information in the main place, the question

smaffulli gravatar imagesmaffulli ( 2013-07-26 16:52:51 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-24 19:39:50 -0500

fifieldt gravatar image

I would lodge this a bug with devstack - https://bugs.launchpad.net/devstack/+filebug

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-07-03 02:11:28 -0500

Seen: 1,070 times

Last updated: Nov 24 '13