[Openstack] 回复: keystone fail

dongjh at ahope.com.cn dongjh at ahope.com.cn
Thu Dec 29 06:24:19 UTC 2016


Now the tables are present after running "keystone-manage db_syn" many times. I did not change any configuration.

[root at controller ~]# su -s /bin/sh -c "keystone-manage db_sync" keystone
[root at controller ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.1.18-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use keystone
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [keystone]> show tables;
+------------------------+
| Tables_in_keystone     |
+------------------------+
| access_token           |
| assignment             |
| config_register        |
| consumer               |
| credential             |
| endpoint               |
| endpoint_group         |
| federated_user         |
| federation_protocol    |
| group                  |
| id_mapping             |
| identity_provider      |
| idp_remote_ids         |
| implied_role           |
| local_user             |
| mapping                |
| migrate_version        |
| nonlocal_user          |
| password               |
| policy                 |
| policy_association     |
| project                |
| project_endpoint       |
| project_endpoint_group |
| region                 |
| request_token          |
| revocation_event       |
| role                   |
| sensitive_config       |
| service                |
| service_provider       |
| token                  |
| trust                  |
| trust_role             |
| user                   |
| user_group_membership  |
| whitelisted_config     |
+------------------------+
37 rows in set (0.00 sec)

However, still not working, now it said HTTP 401. There's nothing in /var/log/keystone/keystone.log.

[admin at controller ~]$ openstack project create --domain default   --description "Service Project" service
__init__() got an unexpected keyword argument 'token'
[admin at controller ~]$ env|grep OS_
OS_USER_DOMAIN_NAME=default
OS_PROJECT_NAME=admin
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=Ahope2016
OS_AUTH_URL=http://controller:35357/v3
OS_TOKEN=XXXXXXX
OS_USERNAME=admin
OS_PROJECT_DOMAIN_NAME=default




=========================================
董 建 华
地址:杭州滨江区南环路3766号新世纪办公楼
邮编:310053
手机:13857132818
总机:0571-28996000
传真:0571-28996001
热线:4006728686
网址:www.ahope.com.cn
Email:dongjh at ahope.com.cn
 
From: Turbo Fredriksson
Date: 2016-12-29 08:00
To: wawayu
CC: openstack
Subject: Re: [Openstack] 回复: keystone fail
On 28 Dec 2016, at 23:24, wawayu <dongjh at ahope.com.cn> wrote:
 
>  I think the 'keystone' database should have some tables after run the db_sync tool.
 
Not if the DB connection setting is wrong. Which it obviously is.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161229/29194f82/attachment.html>


More information about the Openstack mailing list