首页 > 代码库 > openstack-keystone
openstack-keystone
preparation:
config:
/etc/keystone/keystone.conf
log:
/var/log/keystone.log
1.
change log level:
vi /etc/keystone/keystone.conf
modify it to True
2.find log path:
3. record keystone log when admin log in
dashboard admin login:
2016-12-04 03:45:30.021 5574 INFO keystone.common.wsgi [req-9009d615-4cf6-4774-b5f9-5ee676bd99bb - - - - -] POST http://172.125.1.10:5000/v3/auth/tokens
2016-12-04 03:45:30.824 5574 INFO keystone.common.wsgi [req-2b56ffa6-2907-4c3b-88e0-a9c3f5563759 ef23903614b84305bf5251915fa05d69 - - default -] POST http://172.125.1.10:5000/v3/auth/tokens
2016-12-04 03:45:31.463 5574 WARNING keystone.common.wsgi [req-2b56ffa6-2907-4c3b-88e0-a9c3f5563759 ef23903614b84305bf5251915fa05d69 - - default -] Authorization failed. The request you have made requires authentication. from 172.125.1.10
2016-12-04 03:45:31.487 5574 INFO keystone.common.wsgi [req-1bc1c638-be17-46de-ab04-10a558fd5045 - - - - -] GET http://172.125.1.10:5000/v3/
2016-12-04 03:45:31.580 5574 INFO keystone.common.wsgi [req-53418a4a-1e9a-4100-9e21-6968ece3ca77 ef23903614b84305bf5251915fa05d69 - - default -] GET http://172.125.1.10:5000/v3/users/ef23903614b84305bf5251915fa05d69/projects
2016-12-04 03:45:31.899 5574 INFO keystone.common.wsgi [req-cb897cc5-37fd-4588-9f91-f982d732f75f ef23903614b84305bf5251915fa05d69 - - default -] POST http://172.125.1.10:5000/v3/auth/tokens
2016-12-04 03:45:33.310 5573 INFO keystone.common.wsgi [req-e58e7140-93c0-4c68-9a79-556047cd6749 ef23903614b84305bf5251915fa05d69 850808305d454ea7939724853a7c8844 - default default] GET http://172.125.1.10:35357/v3/domains/default
2016-12-04 03:45:33.474 5573 INFO keystone.common.wsgi [req-94287e19-5af6-454e-911f-3c81e2d720f0 ef23903614b84305bf5251915fa05d69 850808305d454ea7939724853a7c8844 - default default] GET http://172.125.1.10:35357/v3/domains/default
2016-12-04 03:45:33.588 5573 INFO keystone.common.wsgi [req-78279ce2-3e37-40fb-872a-3d89e83ad026 ef23903614b84305bf5251915fa05d69 850808305d454ea7939724853a7c8844 - default default] GET http://172.125.1.10:35357/v3/projects
2016-12-04 03:45:33.707 5573 INFO keystone.common.wsgi [req-d9e2c80f-65ba-4e29-8111-0bae882d4a9d ef23903614b84305bf5251915fa05d69 850808305d454ea7939724853a7c8844 - default default] GET http://172.125.1.10:35357/v3/domains/default
2016-12-04 03:45:33.880 5574 INFO keystone.common.wsgi [req-f209202b-49de-4332-bc31-5f3ca8bf6757 ef23903614b84305bf5251915fa05d69 - - default -] GET http://172.125.1.10:5000/v3/users/ef23903614b84305bf5251915fa05d69/projects
2016-12-04 03:45:34.293 5573 INFO keystone.common.wsgi [req-88471dcb-8e0b-470e-b6fc-01184bde8e5f 6010f7f42b1b46b2b4101f790a269468 605c524b2a844713bafeeac8f11d604d - default default] GET http://172.125.1.10:35357/v3/auth/tokens
2016-12-04 03:45:34.789 5573 INFO keystone.common.wsgi [req-76b369d6-8792-4303-8953-4e17bf4fdeae 3d8abb612e874a0185d2e46581f79c58 605c524b2a844713bafeeac8f11d604d - default default] GET http://172.125.1.10:35357/v3/auth/tokens
4.open project :
get instance list:
2016-12-04 03:48:32.097 5574 INFO keystone.common.wsgi [req-c1df8863-8160-4102-a3f9-e9fcaf11863d ef23903614b84305bf5251915fa05d69 - - default -] GET http://172.125.1.10:5000/v3/users/ef23903614b84305bf5251915fa05d69/projects
2016-12-04 03:48:39.339 5573 INFO keystone.common.wsgi [req-105d4d3e-9818-423b-a9b0-8e84d20534be ef23903614b84305bf5251915fa05d69 850808305d454ea7939724853a7c8844 - default default] GET http://172.125.1.10:35357/
2016-12-04 03:48:39.374 5573 INFO keystone.common.wsgi [req-88411841-f24d-4f52-b4a9-cec7f03a2c4c - - - - -] POST http://172.125.1.10:35357/v3/auth/tokens
2016-12-04 03:48:40.638 5573 INFO keystone.common.wsgi [req-c072258d-9637-4d77-a216-7294f31d0340 6010f7f42b1b46b2b4101f790a269468 605c524b2a844713bafeeac8f11d604d - default default] GET http://172.125.1.10:35357/v3/auth/tokens
2016-12-04 03:48:42.412 5573 INFO keystone.common.wsgi [req-546f486e-c6ee-4cc4-baa1-826af2246ad5 3d8abb612e874a0185d2e46581f79c58 605c524b2a844713bafeeac8f11d604d - default default] GET http://172.125.1.10:35357/v3/auth/tokens
get image list:
2016-12-04 03:49:12.315 5574 INFO keystone.common.wsgi [req-9e6ae948-4dd7-47d4-bbc2-24ea5d5cf5f4 ef23903614b84305bf5251915fa05d69 - - default -] GET http://172.125.1.10:5000/v3/users/ef23903614b84305bf5251915fa05d69/projects
2016-12-04 03:49:16.520 5573 INFO keystone.common.wsgi [req-3b44428f-c89d-40d0-93eb-7fa55d15e1b7 ef23903614b84305bf5251915fa05d69 850808305d454ea7939724853a7c8844 - default default] GET http://172.125.1.10:35357/v3/projects/605c524b2a844713bafeeac8f11d604d
get volume list:
2016-12-04 03:49:47.883 5573 INFO keystone.common.wsgi [req-adf70942-c77c-471b-9260-22abb71d04c7 9048d3cd5f004bfe8c9c538451f16aa1 605c524b2a844713bafeeac8f11d604d - default default] GET http://172.125.1.10:35357/v3/auth/tokens
2016-12-04 03:49:50.167 5574 INFO keystone.common.wsgi [req-a06e2fef-3689-4b12-b3b3-b223b109f28f ef23903614b84305bf5251915fa05d69 - - default -] GET http://172.125.1.10:5000/v3/users/ef23903614b84305bf5251915fa05d69/projects
5. admin logout:
2016-12-04 03:51:55.483 5574 INFO keystone.common.wsgi [req-50224747-aa38-4561-8693-9e8fc01bc570 ef23903614b84305bf5251915fa05d69 850808305d454ea7939724853a7c8844 - default default] DELETE http://172.125.1.10:5000/v3/auth/tokens
openstack-keystone