Ask Your Question
0

Keystone create service entity procedure error ?

asked 2016-03-04 02:55:02 -0500

james jang gravatar image

updated 2016-03-04 03:39:15 -0500

link text

I configure the openstack identity(keystone). But I got in trouble below.

(Expect result)

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

+-------------+----------------------------------+

| Field       | Value                            |

+-------------+----------------------------------+

| description | OpenStack Identity               |

| enabled     | True                             |

| id          | 4ddaae90388b4ebc9d252ec2252d8d10 |

| name        | keystone                         |

| type        | identity                         |

+-------------+----------------------------------+

(My result)

[user@controller ~]$ openstack service create \
>   --name keystone --description "OpenStack Identity" identity
Missing parameter(s): 
Set a username with --os-username, OS_USERNAME, or auth.username
Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name

How can I solve this problem? This is part of the "Create the service entity and API endpoints" procedure.

edit retag flag offensive close merge delete

Comments

Do you have environment variables sourced export OS_TOKEN=ADMIN_TOKEN and export OS_URL=http://controller:35357/v3 ?

Thats for liberty with keystone v3, if using v2 source proper variables. Change ADMIN_TOKEN with the token you configured in keystone.conf

Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-03-04 03:42:26 -0500 )edit

Of course I did. And now error message is below 500 error [user@controller ~]$ openstack service create --name keystone --description "OpenStack Identity" identity An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-2e712f64-178c-4386-9c87-3bd4f1d6e729)

james jang gravatar imagejames jang ( 2016-03-04 06:18:53 -0500 )edit

Check logs at /var/log/keystone and in /var/log/http/ . There should be something... Edit your question with what you find in these logs.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-03-04 07:11:26 -0500 )edit

I found and posted keystone.log Error messages..

james jang gravatar imagejames jang ( 2016-03-06 18:46:49 -0500 )edit

Ensure [database] connection option at keystone.conf is correct and keystone has proper privileges in database with:

mysql -ukeystone -h controller -p<PASSWORD>
Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-03-06 23:56:58 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-03-06 18:44:33 -0500

james jang gravatar image

This is Error messages.. [root@controller httpd]# more /var/log/keystone/keystone.log 2016-03-07 09:29:13.843 20344 CRITICAL keystone [-] OperationalError: (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'keystone'@'controller' (using password: YES)") 2016-03-07 09:29:13.843 20344 ERROR keystone Traceback (most recent call last): 2016-03-07 09:29:13.843 20344 ERROR keystone File "/bin/keystone-manage", line 10, in <module> 2016-03-07 09:29:13.843 20344 ERROR keystone sys.exit(main()) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 46, in main 2016-03-07 09:29:13.843 20344 ERROR keystone cli.main(argv=sys.argv, config_files=config_files) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 685, in main 2016-03-07 09:29:13.843 20344 ERROR keystone CONF.command.cmd_class.main() 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 77, in main 2016-03-07 09:29:13.843 20344 ERROR keystone migration_helpers.sync_database_to_version(extension, version) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/common/sql/migration_helpers.py", line 194, in sync_database_to_version 2016-03-07 09:29:13.843 20344 ERROR keystone _sync_common_repo(version) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/common/sql/migration_helpers.py", line 145, in _sync_common_repo 2016-03-07 09:29:13.843 20344 ERROR keystone engine = sql.get_engine() 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/common/sql/core.py", line 188, in get_engine 2016-03-07 09:29:13.843 20344 ERROR keystone return _get_engine_facade().get_engine() 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/common/sql/core.py", line 176, in _get_engine_facade 2016-03-07 09:29:13.843 20344 ERROR keystone _engine_facade = db_session.EngineFacade.from_config(CONF) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 1015, in from_config 2016-03-07 09:29:13.843 20344 ERROR keystone expire_on_commit=expire_on_commit, _conf=conf) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 943, in __init__ 2016-03-07 09:29:13.843 20344 ERROR keystone slave_connection=slave_connection) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 338, in _start 2016-03-07 09:29:13.843 20344 ERROR keystone engine_args, maker_args) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection 2016-03-07 09:29:13.843 20344 ERROR keystone sql_connection=sql_connection, *engine_kwargs) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 152, in create_engine 2016-03-07 09:29:13.843 20344 ERROR keystone test_conn = _test_connection(engine, max_retries, retry_interval) 2016-03-07 09:29:13.843 20344 ERROR keystone File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line ... (more)

edit flag offensive delete link more
0

answered 2016-09-21 02:31:25 -0500

King Gul gravatar image

KIndly execute following commands:-

su -s /bin/sh -c "keystone-manage db_sync" keystone

keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone

After this, try once again!

edit flag offensive delete link more
0

answered 2017-03-21 07:34:49 -0500

tarek.awadallah gravatar image

Just do not copy the command

" ~$ openstack service create \

--name keystone --description "OpenStack Identity" identity"

but write (copy) in one line

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

and the same for all the rest of the commands in the guide. cheers!

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

1 follower

Stats

Asked: 2016-03-04 02:31:32 -0500

Seen: 2,092 times

Last updated: Mar 06 '16