← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1615076] Re: Keystone server does not define "enabled" attribute for Region but mentions in v3 regions.py

 

** Project changed: python-keystoneclient => keystone

-- 
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):
  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