← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1558873] [NEW] create 2 endpoint with same service mess catalog

 

Public bug reported:

create 2 endpoint with same service, the catalog shows messed.

Step 1:
$ keystone service-create --name=ceilometer                           --type=metering                           --description="Ceilometer Service"
Step 2:
keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-nuc:8777/"; --adminurl "http://yuntong-nuc:8777/"; --internalurl "http://yuntong-nuc:8777/";
Step 3:
try to modify the url:
keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-ThinkStation:8777/"; --adminurl "http://yuntong-ThinkStation:8777/"; --internalurl "http://yuntong-ThinkStation:8777/";

Now, we have 2 endpoints with same service:
$ keystone endpoint-list
ce54ffe598524e19aa2c294588237d1a | RegionOne |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      | 0aea12906fd847178787a5e1bdc4a6d3 |
| b101c355287746ce8bb6a96b3dfaecbc | RegionOne |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          | 0aea12906fd847178787a5e1bdc4a6d3 |

but the catalog is messed:
$ keystone catalog
Service: metering
+-------------+-----------------------------------+
|   Property  |               Value               |
+-------------+-----------------------------------+
|   adminURL  | http://yuntong-ThinkStation:8777/ |
|      id     |  4ffbf3a00f86445fa251fe4a17b5bb13 |
| internalURL |      http://yuntong-nuc:8777/     |
|  publicURL  |      http://yuntong-nuc:8777/     |
|    region   |             RegionOne             |
+-------------+-----------------------------------+

Detlete endpoint b101c355287746ce8bb6a96b3dfaecbc, catalog back to consistent.
$ openstack endpoint delete b101c355287746ce8bb6a96b3dfaecbc
$ openstack catalog list
ceilometer  | metering       | RegionOne                                                                    |
|             |                |   publicURL: http://yuntong-ThinkStation:8777/                               |
|             |                |   internalURL: http://yuntong-ThinkStation:8777/                             |
|             |                |   adminURL: http://yuntong-ThinkStation:8777/

** Affects: keystone
     Importance: Undecided
         Status: New

** Description changed:

  create 2 endpoint with same service, the catalog shows messed.
  
  Step 1:
  $ keystone service-create --name=ceilometer                           --type=metering                           --description="Ceilometer Service"
- Step 2: 
+ Step 2:
  keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-nuc:8777/"; --adminurl "http://yuntong-nuc:8777/"; --internalurl "http://yuntong-nuc:8777/";
- Step 3: 
+ Step 3:
  try to modify the url:
  keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-ThinkStation:8777/"; --adminurl "http://yuntong-ThinkStation:8777/"; --internalurl "http://yuntong-ThinkStation:8777/";
  
  Now, we have 2 endpoints with same service:
- $ keystone endpoint-list
  $ keystone endpoint-list
  ce54ffe598524e19aa2c294588237d1a | RegionOne |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      | 0aea12906fd847178787a5e1bdc4a6d3 |
  | b101c355287746ce8bb6a96b3dfaecbc | RegionOne |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          | 0aea12906fd847178787a5e1bdc4a6d3 |
  
  but the catalog is messed:
  $ keystone catalog
  Service: metering
  +-------------+-----------------------------------+
  |   Property  |               Value               |
  +-------------+-----------------------------------+
  |   adminURL  | http://yuntong-ThinkStation:8777/ |
  |      id     |  4ffbf3a00f86445fa251fe4a17b5bb13 |
  | internalURL |      http://yuntong-nuc:8777/     |
  |  publicURL  |      http://yuntong-nuc:8777/     |
  |    region   |             RegionOne             |
  +-------------+-----------------------------------+

** Description changed:

  create 2 endpoint with same service, the catalog shows messed.
  
  Step 1:
  $ keystone service-create --name=ceilometer                           --type=metering                           --description="Ceilometer Service"
  Step 2:
  keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-nuc:8777/"; --adminurl "http://yuntong-nuc:8777/"; --internalurl "http://yuntong-nuc:8777/";
  Step 3:
  try to modify the url:
  keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-ThinkStation:8777/"; --adminurl "http://yuntong-ThinkStation:8777/"; --internalurl "http://yuntong-ThinkStation:8777/";
  
  Now, we have 2 endpoints with same service:
  $ keystone endpoint-list
  ce54ffe598524e19aa2c294588237d1a | RegionOne |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      | 0aea12906fd847178787a5e1bdc4a6d3 |
  | b101c355287746ce8bb6a96b3dfaecbc | RegionOne |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          | 0aea12906fd847178787a5e1bdc4a6d3 |
  
  but the catalog is messed:
  $ keystone catalog
  Service: metering
  +-------------+-----------------------------------+
  |   Property  |               Value               |
  +-------------+-----------------------------------+
  |   adminURL  | http://yuntong-ThinkStation:8777/ |
  |      id     |  4ffbf3a00f86445fa251fe4a17b5bb13 |
  | internalURL |      http://yuntong-nuc:8777/     |
  |  publicURL  |      http://yuntong-nuc:8777/     |
  |    region   |             RegionOne             |
  +-------------+-----------------------------------+
+ 
+ Detlete endpoint b101c355287746ce8bb6a96b3dfaecbc, catalog back to consistent.
+ $ openstack endpoint delete b101c355287746ce8bb6a96b3dfaecbc
+ $ openstack catalog list
+ ceilometer  | metering       | RegionOne                                                                    |
+ |             |                |   publicURL: http://yuntong-ThinkStation:8777/                               |
+ |             |                |   internalURL: http://yuntong-ThinkStation:8777/                             |
+ |             |                |   adminURL: http://yuntong-ThinkStation:8777/

-- 
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/1558873

Title:
  create 2 endpoint with same service mess catalog

Status in OpenStack Identity (keystone):
  New

Bug description:
  create 2 endpoint with same service, the catalog shows messed.

  Step 1:
  $ keystone service-create --name=ceilometer                           --type=metering                           --description="Ceilometer Service"
  Step 2:
  keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-nuc:8777/"; --adminurl "http://yuntong-nuc:8777/"; --internalurl "http://yuntong-nuc:8777/";
  Step 3:
  try to modify the url:
  keystone endpoint-create --region RegionOne --service_id 0aea12906fd847178787a5e1bdc4a6d3 --publicurl "http://yuntong-ThinkStation:8777/"; --adminurl "http://yuntong-ThinkStation:8777/"; --internalurl "http://yuntong-ThinkStation:8777/";

  Now, we have 2 endpoints with same service:
  $ keystone endpoint-list
  ce54ffe598524e19aa2c294588237d1a | RegionOne |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      |     http://yuntong-ThinkStation:8777/      | 0aea12906fd847178787a5e1bdc4a6d3 |
  | b101c355287746ce8bb6a96b3dfaecbc | RegionOne |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          |          http://yuntong-nuc:8777/          | 0aea12906fd847178787a5e1bdc4a6d3 |

  but the catalog is messed:
  $ keystone catalog
  Service: metering
  +-------------+-----------------------------------+
  |   Property  |               Value               |
  +-------------+-----------------------------------+
  |   adminURL  | http://yuntong-ThinkStation:8777/ |
  |      id     |  4ffbf3a00f86445fa251fe4a17b5bb13 |
  | internalURL |      http://yuntong-nuc:8777/     |
  |  publicURL  |      http://yuntong-nuc:8777/     |
  |    region   |             RegionOne             |
  +-------------+-----------------------------------+

  Detlete endpoint b101c355287746ce8bb6a96b3dfaecbc, catalog back to consistent.
  $ openstack endpoint delete b101c355287746ce8bb6a96b3dfaecbc
  $ openstack catalog list
  ceilometer  | metering       | RegionOne                                                                    |
  |             |                |   publicURL: http://yuntong-ThinkStation:8777/                               |
  |             |                |   internalURL: http://yuntong-ThinkStation:8777/                             |
  |             |                |   adminURL: http://yuntong-ThinkStation:8777/

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