yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46321
[Bug 1429566] Re: misused region / region_id in EP
per the comments in that patch, no bother to fix this.
** Changed in: keystone
Status: In Progress => Won't Fix
--
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/1429566
Title:
misused region / region_id in EP
Status in OpenStack Identity (keystone):
Won't Fix
Bug description:
Checked from the current IMPL in EP, 'region_id' has the same meaning with 'region', and region with the context actaully means 'region_id'.
https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L333
endpoint['region'] = endpoint['region_id']
But, region and region_id is not used in a consistent way, for example,
Table definition, region_id is used,
https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L76
Upgrade or downgrade scripts, region is used,
https://github.com/openstack/keystone/blob/master/keystone/common/sql/migrate_repo/versions/042_endpoint_enabled.py#L126
EP in the catalog when using SQL as the backend, both region and region_id are presented in the catalog, this seems is not necessary.
https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L333
while using the template as the backend, only region is presented in the catalog,
https://github.com/openstack/keystone/blob/master/keystone/catalog/core.py#L487
some code cleanup will help to give a consistent way to use region or
region_id.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1429566/+subscriptions
References