keystone error: global name 'ProxyManager' is not defined

asked 2013-08-20 07:46:51 -0500

diplav-tkiet-j gravatar image

While executing any command of keystone it will show the below error: global name 'ProxyManager' is not defined

I am not able to identify what is the issue in the configuration.

Keystone file: [DEFAULT]

A "shared secret" between keystone and other openstack services

admin_token = some password

The IP address of the network interface to listen on

bind_host =

The port number which the public service listens on

public_port = 5000

The port number which the public admin listens on

admin_port = 35357

The base endpoint URLs for keystone that are advertised to clients

(NOTE: this does NOT affect how keystone listens for connections)

public_endpoint = http://localhost:%25(public_port)d/ (http://localhost:%(public_port)d/) admin_endpoint = http://localhost:%25(admin_port)d/ (http://localhost:%(admin_port)d/)

The port number which the OpenStack Compute service listens on

compute_port = 8774

Path to your policy definition containing identity actions

policy_file = policy.json

Rule to check if no matching policy definition is found

FIXME(dolph): This should really be defined as [policy] default_rule

policy_default_rule = admin_required

Role for migrating membership relationships

During a SQL upgrade, the following values will be used to create a new role

that will replace records in the user_tenant_membership table with explicit

role grants. After migration, the member_role_id will be used in the API

add_user_to_project, and member_role_name will be ignored.

member_role_id = 9fe2ff9ee4384b1894a90878d3e92bab

member_role_name = _member_

=== Logging Options ===

Print debugging output

(includes plaintext request logging, potentially including passwords)

debug = True

Print more verbose output

verbose = True

Name of log file to output to. If not set, logging will go to stdout.

log_file = keystone.log

The directory to keep log files in (will be prepended to --logfile)

log_dir = /var/log/keystone

Use syslog for logging.

use_syslog = False

syslog facility to receive log lines

syslog_log_facility = LOG_USER

If this option is specified, the logging configuration file specified is

used and overrides any other logging options specified. Please see the

Python logging module documentation for details on logging configuration


log_config = logging.conf

A logging.Formatter log message format string which may use any of the

available logging.LogRecord attributes.

log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s

Format string for %(asctime)s in log records.

log_date_format = %Y-%m-%d %H:%M:%S

onready allows you to send a notification when the process is ready to serve

For example, to have it notify using systemd, one could set shell command:

onready = systemd-notify --ready

or a module with notify() method:

onready = keystone.common.systemd


The SQLAlchemy connection string used to connect to the database

#Commented and added for cloud : Diplav #connection = sqlite:////var/lib/keystone/keystone.db connection = mysql://keystone:Conagra@localhost/keystone

the timeout before idle sql connections are reaped

idle_timeout = 200

[identity] driver = keystone.identity.backends.sql.Identity

This references the domain to use for all Identity API v2 requests (which are

not aware of domains). A domain with this ID will be created for you by

keystone-manage db_sync in migration 008. The domain referenced by this ID

cannot be deleted on the v3 API, to ...

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-08-20 08:19:41 -0500

gtt116 gravatar image

Hi, aadesh

You use keystone cli or keystone manage? We need the traceback of the exception to address the issue.

regards, gtt

edit flag offensive delete link more

answered 2013-08-20 08:28:37 -0500

diplav-tkiet-j gravatar image

Hi Tiantian,

I have followed the below steps: 1. apt-get install -y keystone python-keystone python-keystoneclient

  1. edit /etc/keystone/keystone.conf:

[DEFAULT] admin_token = (some password inserted) debug = True verbose = True

[sql] connection = mysql://keystone:password@localhost/keystone

  1. service keystone restart keystone-manage db_sync

4.(I don't know where to get OS_TENANT_NAME,OS_USERNAME,OS_SERVICE_TOKEN) setting parameters: export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=password export OS_AUTH_URL="http://localhost:5000/v2.0/" export OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0" export OS_SERVICE_TOKEN=password

  1. After all this I executed the script given at: ( with the following changes:


MYSQL_USER=keystone MYSQL_DATABASE=keystone MYSQL_HOST=localhost MYSQL_PASSWORD=password

edit flag offensive delete link more

answered 2013-08-23 07:42:04 -0500

shantha-kumar gravatar image

please unset your internet proxy and execute the command, it should work

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-08-20 07:46:51 -0500

Seen: 427 times

Last updated: Aug 23 '13