summaryrefslogtreecommitdiff
path: root/nova/tests/unit/test_service_auth.py
Commit message (Collapse)AuthorAgeFilesLines
* remove unnecessary conf importsMatthew Edmonds2018-03-091-4/+0
| | | | | | | | | | There are a bunch of files that define CONF but don't ever reference it. This cleans that up, removing unnecessary imports. In order to get flake8 to pass I also had to remove some (unrelated) unused imports from touched files. Change-Id: Ib96ebeeb5e4bfedb20afb02c56da1521df9fac4f
* Fix NoneType error when [service_user] is misconfiguredMatt Riedemann2017-11-281-1/+15
| | | | | | | | | | | | | | | | If the [service_user]/send_service_user_token option is set to True but the actual auth options are incomplete, like missing to set the auth_type option, we eventually fail to re-auth with keystone due to a NoneType error in keystoneauth1. We can detect this issue because load_auth_from_conf_options will return None and we can just log a warning and continue as if the service user was never configured in the first place. Co-Authored-By: Eric Fried <efried@us.ibm.com> Change-Id: I0a96c835d620307f1ab34736ba42c2deb1321a23 Closes-Bug: #1733642
* Add service_token for nova-cinder interactionPushkar Umaranikar2017-01-111-0/+47
Service token will be passed along with user token to communicate with services when dealing with long running tasks like live migration. This change addresses adding service_token to the request when nova requests cinder session to interact with cinder. Change-Id: I51eb0a8937fa39a2e5dafb1ad915e7113ea61f72 Implements: blueprint use-service-tokens