yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #69363
[Bug 1615076] Re: Keystone server does not define "enabled" attribute for Region but mentions in v3 regions.py
Adding python-keystoneclient to this bug report so that we can get a
release that doesn't assume `enabled` attributes for regions. Keeping
this open for keystone so that we can make sure we're not documenting
it, officially or in code comments.
** Also affects: python-keystoneclient
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1615076
Title:
Keystone server does not define "enabled" attribute for Region but
mentions in v3 regions.py
Status in OpenStack Identity (keystone):
Confirmed
Status in python-keystoneclient:
New
Bug description:
The bug was discovered while writing the region functional tests [1].
The create() and update() calls [2] in regions.py mention the
"enabled" attribute, but the specs [3] don't mention it and the code
[4] doesn't support it. We don't check for "enabled" in the region
schema either [5].
So, it's being stored as an extra attribute and it even works if one
passes {'enabled': 'WHATEVER'}
[1] https://review.openstack.org/#/c/339158/
[2] https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v3/regions.py
[3] http://specs.openstack.org/openstack/keystone-specs/api/v3/identity-api-v3.html#regions-v3-regions
[4] https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L33-L49
[5] https://github.com/openstack/keystone/blob/master/keystone/catalog/schema.py#L17-L43
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1615076/+subscriptions