← Back to team overview

yahoo-eng-team team mailing list archive

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

 

If the migration can't be applied, then it should exit cleanly without
making changes (an inconsistent state is a terrible place to be!).

I think the migration should wait for manual intervention to correct
unexpected data (duplicate service names). Adding devstack to this bug
because it sounds like it's behavior needs to be changed prior to
landing a fix in keystone.

** Also affects: devstack
   Importance: Undecided
       Status: New

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

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

Status in devstack - openstack dev environments:
  New
Status in OpenStack Identity (Keystone):
  Triaged

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