endpoint table is missing reference to region table

Bug #1332196 reported by Kanagaraj Manickam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Wishlist
Kanagaraj Manickam

Bug Description

Keystone is provided with region table as given here for storing the region details :
mysql> desc region
    -> ;
+------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| description | varchar(255) | NO | | NULL | |
| parent_region_id | varchar(64) | YES | | NULL | |
| extra | text | YES | | NULL | |
+------------------+--------------+------+-----+---------+-------+

But it is not consumed in the endpoint table as shown below, "region" column is still having the endpoint name

mysql> desc endpoint;
+--------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| legacy_endpoint_id | varchar(64) | YES | | NULL | |
| interface | varchar(8) | NO | | NULL | |
| region | varchar(255) | YES | | NULL | |
| service_id | varchar(64) | NO | MUL | NULL | |
| url | text | NO | | NULL | |
| extra | text | YES | | NULL | |
| enabled | tinyint(1) | NO | | 1 | |
+--------------------+--------------+------+-----+---------+-------+

And this "region" column should be renamed to "region_id" and should be referring to the region table.

Changed in keystone:
assignee: nobody → Kanagaraj Manickam (kanagaraj-manickam)
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Wishlist
Revision history for this message
Dolph Mathews (dolph) wrote :

This should really require a specification on keystone-specs, as I suspect there will be more impact than anyone realizes (testing, etc). As I suggested on the mailing list, we'll have to consider:

A) a data migration will need to be performed to sync up the regions in the endpoint table with regions in the region table (populate those foreign keys, creating corresponding regions where necessary)

B) endpoints are created today without requiring a region to be created; this workflow will have to continue for v2 and v3 (regions need to be created dynamically)

Changed in keystone:
status: New → Triaged
description: updated
Revision history for this message
Kanagaraj Manickam (kanagaraj-manickam) wrote :

Added an blueprint for this one in keystone-specs https://review.openstack.org/#/c/104500/

Revision history for this message
Lance Bragstad (lbragstad) wrote :

This should now be addressed by the following commit:

https://review.openstack.org/#/c/113183/

which merged prior to J-3 milestone for Keystone and Juno feature freeze.

Changed in keystone:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.