'NoneType' object has no attribute 'has_service_catalog'

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

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

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

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 更多



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

已查看: 693 次

最后更新: Jul 21 '15