commit 6522d383320f5fda27635ee1ea86ea381c3858a1
Author: Matt Riedemann <email address hidden>
Date: Tue Nov 21 12:01:33 2017 -0500
Fix NoneType error when [service_user] is misconfigured
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 <email address hidden>
Change-Id: I0a96c835d620307f1ab34736ba42c2deb1321a23
Closes-Bug: #1733642
(cherry picked from commit cff8b088370c9190e402ece1a9ff48eae27677f7)
Reviewed: https:/ /review. openstack. org/526468 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6522d383320 f5fda27635ee1ea 86ea381c3858a1
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 6522d383320f5fd a27635ee1ea86ea 381c3858a1
Author: Matt Riedemann <email address hidden>
Date: Tue Nov 21 12:01:33 2017 -0500
Fix NoneType error when [service_user] is misconfigured
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 <email address hidden> 7f1ab34736ba42c 2deb1321a23 0e402ece1a9ff48 eae27677f7)
Change-Id: I0a96c835d62030
Closes-Bug: #1733642
(cherry picked from commit cff8b088370c919