[Openstack] 回复: keystone fail
dongjh at ahope.com.cn
dongjh at ahope.com.cn
Thu Dec 29 06:47:50 UTC 2016
Keystone working fine now, thank you.
[admin at controller ~]$ openstack --os-auth-url http://controller:35357/v3 \
> --os-project-domain-name default --os-user-domain-name default \
> --os-project-name admin --os-username admin token issue
Password:
+------------+-----------------------------------------------------------------+
| Field | Value |
+------------+-----------------------------------------------------------------+
| expires | 2016-12-29 07:42:49+00:00 |
| id | gAAAAABYZLBpEpAZppqpXYwwrWH0VUcSquIy3JYtEtaGjPAMiNTJaX_O9nng7vO |
| | S51nCTjPBycvVElYPrT480QoZnFBWITHAgRB7NiZyObvzVo1N1IV3fi0ukEzWkT |
| | MhX1qUKWT1p73lDyo4Rfh0PDdTLVwDGG5X0PaFdKuMdg9DQr9XZhJt0ZI |
| project_id | 9738859179ae46488cb40926aa03408e |
| user_id | 476ae6fac51b4b79a417bc287cef38f0 |
+------------+-----------------------------------------------------------------+
[admin at controller ~]$ openstack --os-auth-url http://controller:5000/v3 \
> --os-project-domain-name default --os-user-domain-name default \
> --os-project-name demo --os-username demo token issue
Password:
+------------+-----------------------------------------------------------------+
| Field | Value |
+------------+-----------------------------------------------------------------+
| expires | 2016-12-29 07:43:12+00:00 |
| id | gAAAAABYZLCATGbpHKrJLvExKKHLfx3gw5CY9bRwOIUPuDKv9XSfWCa0tBoncIx |
| | fwxwA0cXhpNO0-OmU2rDWg4w_44H-AUJbfTE7Keb-McBPNcQeK5 |
| | -a9kfg523up4YfKGIc- |
| | hQxJUEFmLtRSLqtsajUxg73s98Y5KgeYMZoJnJHOHexOIQD3HE |
| project_id | 6fc70c831270448296c9c25361769cf5 |
| user_id | d8acb30b89ed44bea9568d556b54b8d3 |
+------------+-----------------------------------------------------------------+
=========================================
董 建 华
地址:杭州滨江区南环路3766号新世纪办公楼
邮编:310053
手机:13857132818
总机:0571-28996000
传真:0571-28996001
热线:4006728686
网址:www.ahope.com.cn
Email:dongjh at ahope.com.cn
发件人: dongjh at ahope.com.cn
发送时间: 2016-12-29 14:24
收件人: Turbo Fredriksson
抄送: openstack
主题: Re: Re: [Openstack] 回复: keystone fail
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/31f2e71b/attachment.html>
More information about the Openstack
mailing list