← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1259425] Re: service-create allows 2 services with the same name

 

This is a limitation that we cannot fix without causing a backwards
incompatible change. It is very rare to have 2 service names that are
the same.

** Changed in: keystone
       Status: Triaged => Won't Fix

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

Title:
  service-create allows 2 services with the same name

Status in devstack:
  Fix Released
Status in OpenStack Identity (keystone):
  Won't Fix

Bug description:
  While `service-get <name>` seems to be confused by the duplicated
  name. The same thing happens to `service-delete <name>`. Of course,
  getting and deleting services by ID is not affected.

  Following http://docs.openstack.org/trunk/install-
  guide/install/apt/content/cinder-controller.html:

  $ keystone service-create --name=cinder --type=volume --description="Cinder Volume Service"
  +-------------+----------------------------------+
  |   Property  |              Value               |
  +-------------+----------------------------------+
  | description |      Cinder Volume Service       |
  |      id     | 54f9153b21b54a908562d85392784992 |
  |     name    |              cinder              |
  |     type    |              volume              |
  +-------------+----------------------------------+
  $ keystone service-create --name=cinder --type=volumev2 --description="Cinder Volume Service V2"
  +-------------+----------------------------------+
  |   Property  |              Value               |
  +-------------+----------------------------------+
  | description |     Cinder Volume Service V2     |
  |      id     | dd425789606b4472b32d78a63942aefc |
  |     name    |              cinder              |
  |     type    |             volumev2             |
  +-------------+----------------------------------+
  $ keystone service-get cinder
  global name 'exc' is not defined

  Debug output is here http://pastebin.com/kVJGUCwA

  I'm not sure whether duplicated names are allowed/recommended, but at
  least one of the following is needed:

    - service-create should check the name and stop when a service with the same name exists
    - service-get and service-delete should be changed so that they work with duplicated names, maybe by showing multiple services or reporting an appropriate error
    - The help text of service-get and service-delete should not say that name is allowed

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


References