发起问题
0

'NoneType' object has no attribute 'has_service_catalog'

提问于 2013-10-15 02:49:52 -0600

mike 图像

stack@ubuntu:/usr/sbin$ keystone catalog WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). 'NoneType' object has no attribute 'has_service_catalog'

edit retag flag offensive close merge delete
0

回答 2015-07-21 01:02:53 -0600

you can see this link:https://bugs.launchpad.net/python-keystoneclient/+bug/1264314

warning: bypassing authentication using a token & endpoint(authentication credentials are being ignored)

The warning line is just that - a warning. You must have a token and endpoint in your environment (there are deprecated environment variables names that are still supported that could be in use). However, in the case of token-get, using a token & endpoint is actually the cause of "'NoneType' object has no attribute 'has_service_catalog'" (without authenticating, you don't have a catalog, and therefore can't get a token, as expected).

The last error message here ('NoneType' object has no attribute 'has_service_catalog') could definitely be improved, but this sounds like expected behavior. The client could also attempt to actually exchange a token for another with token-get against the specified endpoint, but I'm not sure there's a valid use case for that behavior.

Changed in python-keystoneclient:
status: Fix Released → Triaged

edit flag offensive delete link 更多

你的回答

Please start posting anonymously - your entry will be published after you log in or create a new account.

开始回答

提问工具

统计

已提问: 2013-10-15 02:49:52 -0600

已查看: 650 次

最后更新: Jul 21 '15