← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1400589] [NEW] default region name is inconsistent with the hint message

 

Public bug reported:

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 be "regionOne", the command can be 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.

** Affects: keystone
     Importance: Undecided
     Assignee: Dave Chen (wei-d-chen)
         Status: New

** Changed in: keystone
     Assignee: (unassigned) => Dave Chen (wei-d-chen)

** Description changed:

  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, 
+ 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 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.
+ It make me confusion about what's behind about the region, so file this
+ bug to track this.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1400589

Title:
  default region name is inconsistent with the hint message

Status in OpenStack Identity (Keystone):
  New

Bug description:
  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 be "regionOne", the command can be 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1400589/+subscriptions


Follow ups

References