# Error while configuring Keystone

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

2. edit /etc/keystone/keystone.conf:

[DEFAULT]
debug = True
verbose = True

[sql]


3. 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_AUTH_URL="http://localhost:5000/v2.0/"
export OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0"

1. After all this I executed the script given at: http://docs.openstack.org/grizzly/basic-install/apt/content/basic-install_controller.html with the following changes:

ADMIN_PASSWORD=${ADMIN_PASSWORD:-password} export OS_SERVICE_TOKEN="password" MYSQL_USER=keystone MYSQL_DATABASE=keystone MYSQL_HOST=localhost MYSQL_PASSWORD=password And I am getting the below errors Error Details: global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass <pass>] [--email <email>] [--enabled <true|false>] keystone user-create: error: argument --tenant-id: expected one argument usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass <pass>] [--email <email>] [--enabled <true|false>] keystone user-create: error: argument --tenant-id: expected one argument usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass <pass>] [--email <email>] [--enabled <true|false>] keystone user-create: error: argument --tenant-id: expected one argument usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>] [--pass <pass>] [--email <email>] [--enabled <true|false>] keystone user-create: error: argument --tenant-id: expected one argument global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined 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 usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>] keystone user-role-add: error: argument --tenant/--tenant-id: expected one argument global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined global name 'ProxyManager' is not defined usage: keystone endpoint-create [--region <endpoint-region>] --service-id <service-id> [--publicurl <public-url>] [--adminurl <admin-url>] [--internalurl <internal-url>] keystone endpoint-create: error: argument --service-id/--service_id: expected one argument usage: keystone endpoint-create [--region <endpoint-region>] --service-id <service-id> [--publicurl <public-url>] [--adminurl <admin-url>] [--internalurl <internal-url>] keystone endpoint-create: error: argument --service-id/--service_id: expected one argument usage: keystone endpoint-create [--region <endpoint-region>] --service-id <service-id> [--publicurl <public-url>] [--adminurl <admin-url>] [--internalurl <internal-url>] keystone endpoint-create: error: argument --service-id/--service_id: expected one argument usage: keystone endpoint-create [--region <endpoint-region>] --service-id <service-id> [--publicurl <public-url>] [--adminurl <admin-url>] [--internalurl <internal-url>] keystone endpoint-create: error: argument --service-id/--service_id: expected one argument usage: keystone endpoint-create [--region <endpoint-region>] --service-id <service-id> [--publicurl <public-url>] [--adminurl <admin-url ... edit retag close merge delete ## Comments Please state what question you are asking? thanks ( 2013-08-20 02:27:23 -0600 )edit On which command are you getting these errors? ( 2013-08-20 07:29:51 -0600 )edit After executing the script provided by openstack: (Script of step 5) http://docs.openstack.org/grizzly/basic-install/apt/content/basic-install_controller.html%3C/p%3E (http://docs.openstack.org/grizzly/basic-install/apt/content/basic-install_controller.html) ( 2013-08-20 07:35:43 -0600 )edit ## 3 answers Sort by » oldest newest most voted The parameters OS_USERNAME, OS_PASSWORD, OS_AUTH_URL need to be set as your environment variables. To do this: -In the terminal, type vi /home/$USER/.bashrc

-At the end of the file that opens up, type the following, replacing "admin", "password", "localhost" with the admin username, password, hostname/IP address of the controller node(let it remain as localhost if this is a single node installation):

export OS_TENANT_NAME=admin
export OS_AUTH_URL="http://localhost:5000/v2.0/"
export OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0"


And then save and exit using "escape" key and :x.

In the terminal type source /home/\$USER/.bashrc and then run the script again.

more

After setup of keystone database try to execute these two scripts which are available in following URL. https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/OVS_SingleNode/KeystoneScripts/keystone_basic.sh https://raw.github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/OVS_SingleNode/KeystoneScripts/keystone_endpoints_basic.sh

it might help you and you can create creds file in your machine then execute source creds

more

I was getting the same 'Proxymanager' is not defined error. But it was because I had set a http_proxy in my .bashrc and /usr/share/pyshared/requests/adapters.py was using ProxyManager without importing it. I updated

from urllib3.poolmanager import PoolManager, proxy_from_url


to

from urllib3.poolmanager import PoolManager, proxy_from_url, ProxyManager


and I stopped getting that error. But I figured out that I was doing my setup locally on the controller, I don't need to go through a proxy and when I unset the proxy - the ProxyManager error did not come irrespective of the update done in adapters.py

more

# Get to know Ask OpenStack

Resources for moderators

## Stats

Asked: 2013-08-20 02:14:12 -0600

Seen: 2,724 times

Last updated: Sep 10 '13