Comment 0 for bug 1400589

Revision history for this message
Dave Chen (wei-d-chen) wrote :

It seems the name of the region is RegionOne with the initial character "R" in upper case.

MariaDB [keystone]> select * from region;
+-----------+-------------+------------------+-------+------+
| id | description | parent_region_id | extra | url |
+-----------+-------------+------------------+-------+------+
| RegionOne | | NULL | {} | NULL |
| test | | NULL | {} | NULL |
+-----------+-------------+------------------+-------+------+

While I am try to create one new endpoint with a new region which i hope would "regionOne", the command can executed successfully,
$ keystone endpoint-create --region regionOne --service a1663c0dbba64425b5767688ac86fa10 --publicurl http://10.*.*.*:5010/v2.0 --adminurl http://10.*.*.*:5010/v2.0 --internalurl http://10.*.*.*:5010/v2.0
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| adminurl | http://10.*.*.*:5010/v2.0 |
| id | 8ffb333e32a54355bc924e7602362675 |
| internalurl | http://10.*.*.*:5010/v2.0 |
| publicurl | http://10.*.*.*:5010/v2.0 |
| region | regionOne |
| service_id | a1663c0dbba64425b5767688ac86fa10 |
+-------------+----------------------------------+

But there is no new region named "regionOne" created in the database other that the default one "RegionOne", so I guess it treats both of them the same.

But if I create the endpoint with "RegionOne", the command can also success but the output message like this,
$ keystone endpoint-create --region RegionOne --service a1663c0dbba64425b5767688ac86fa10 --publicurl http://10.*.*.*:5010/v2.0 --adminurl http://10.*.*.*:5010/v2.0 --internalurl http://10.*.*.*:5010/v2.0
+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| adminurl | http://10.*.*.*:5010/v2.0 |
| id | 075b237859c149128c3bbf8c3556922d |
| internalurl | http://10.*.*.*:5010/v2.0 |
| publicurl | http://10.*.*.*:5010/v2.0 |
| region | RegionOne |
| service_id | a1663c0dbba64425b5767688ac86fa10 |
+-------------+----------------------------------+

It make me confusion about what's behind about the region, so file this bug to track this.