[20.05] keystone-fid-service-provider-relation-joined failed: AttributeError: 'NoneType' object has no attribute 'strip'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Keystone Charm |
Fix Released
|
High
|
Dmitrii Shcherbakov |
Bug Description
charm-keystone tries to use .strip on a value returned for 'protocol-name' without checking if it is None or not first.
https:/
https:/
https:/
2020-06-03 20:23:17 DEBUG keystone-
2020-06-03 20:23:17 DEBUG keystone-
2020-06-03 20:23:17 DEBUG keystone-
2020-06-03 20:23:17 DEBUG keystone-
2020-06-03 20:23:17 ERROR juju.worker.
hooks/keystone_
if _protocol_name and _protocol_name not in self.auth_methods:
Changed in charm-keystone: | |
assignee: | nobody → Dmitrii Shcherbakov (dmitriis) |
milestone: | none → 20.08 |
importance: | Undecided → High |
Changed in charm-keystone: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. opendev. org/733635 /git.openstack. org/cgit/ openstack/ charm-keystone/ commit/ ?id=4eb640ab56a 48f49f354fd4c4a e929c763e72f61
Committed: https:/
Submitter: Zuul
Branch: master
commit 4eb640ab56a48f4 9f354fd4c4ae929 c763e72f61
Author: Dmitrii Shcherbakov <email address hidden>
Date: Thu Jun 4 17:46:36 2020 +0300
Return an empty string if relation data is missing
None is returned for a relation data value if a key isn't present -
assuming that it's a string is not correct. This change fixes that by
returning an empty string if protocol-name is not present.
Change-Id: I2bab6a69f9f663 edee0738ff35b80 4d81736cb5c
Closes-Bug: #1882084