Ask Your Question
0

Error while configuring Keystone

asked 2013-08-20 02:14:12 -0500

Dip@Nagpur gravatar image

updated 2013-08-20 07:27:22 -0500

Jobin gravatar image

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

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

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

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

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_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: 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 ...
(more)
edit retag flag offensive close merge delete

Comments

Please state what question you are asking? thanks

brucelok gravatar imagebrucelok ( 2013-08-20 02:27:23 -0500 )edit

On which command are you getting these errors?

Jobin gravatar imageJobin ( 2013-08-20 07:29:51 -0500 )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)

Dip@Nagpur gravatar imageDip@Nagpur ( 2013-08-20 07:35:43 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2013-08-20 07:43:33 -0500

Jobin gravatar image

updated 2013-08-20 07:45:42 -0500

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_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

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

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

edit flag offensive delete link more
0

answered 2013-08-22 03:49:14 -0500

Bhavaniprasad gravatar image

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

edit flag offensive delete link more
0

answered 2013-09-10 02:20:13 -0500

sph gravatar image

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

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-08-20 02:14:12 -0500

Seen: 2,642 times

Last updated: Sep 10 '13