default region name is inconsistent with the hint message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Low
|
Unassigned |
Bug Description
It seems the name of the default 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 be "regionOne", the command can be executed successfully,
$ keystone endpoint-create --region regionOne --service a1663c0dbba6442
+------
| Property | Value |
+------
| adminurl | http://
| id | 8ffb333e32a5435
| internalurl | http://
| publicurl | http://
| region | regionOne |
| service_id | a1663c0dbba6442
+------
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 a1663c0dbba6442
+------
| Property | Value |
+------
| adminurl | http://
| id | 075b237859c1491
| internalurl | http://
| publicurl | http://
| region | RegionOne |
| service_id | a1663c0dbba6442
+------
It make me confusion about what's behind about the region, so file this bug to track this.
Changed in keystone: | |
assignee: | nobody → Dave Chen (wei-d-chen) |
description: | updated |
tags: | added: user-experience |
Changed in keystone: | |
importance: | Undecided → Low |
description: | updated |
New endpoint is created indeed, refer to this command,
$ keystone endpoint-list
...
| d9b80a9db51f460 690925fb1a71df3 f3 | regionOne | http:// 10.239. 37.139: 5010/v2. 0 | http:// 10.239. 37.139: 5010/v2. 0 | http:// 10.239. 37.139: 5010/v2. 0 | a1663c0dbba6442 5b5767688ac86fa 10 | ------- ------- ------- ------- +------ -----+- ------- ------- ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- -+----- ------- ------- ------- ------- ------- ------+ ------- ------- ------- ------- ------+
+------
The name of associated region is "regionOne" while there is no regionOne created in the region table, -----+- ------- -----+- ------- ------- ---+--- ----+-- ----+ -----+- ------- -----+- ------- ------- ---+--- ----+-- ----+ -----+- ------- -----+- ------- ------- ---+--- ----+-- ----+
MariaDB [keystone]> select * from region;
+------
| id | description | parent_region_id | extra | url |
+------
| RegionOne | | NULL | {} | NULL |
| test | | NULL | {} | NULL |
+------
2 rows in set (0.00 sec)