← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1455034] [NEW] Deleting nonexistent end-point gives incorrect error message

 

Public bug reported:

I'm trying to delete an end-point with invalid id or id that does not exist in the system and getting the below error message:
ERROR: openstack More than one endpoint exists with the name 'non-existing-id'.

While the more appropriate message would be to say, No endpoint exists
with the name 'non-existing-id'.

osc:/ # openstack --version
openstack 0.4.1

osc:/ # openstack --insecure endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                       |
+----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------+
| 14d171e5d9914d8fa19c6bc539acd34a | None      | keystone     | identity     | True    | admin     | https://keystone:35357/v3 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------+

osc:/ # openstack --insecure endpoint delete 14d171e5d9914d8fa19c6bc539acd34b
ERROR: openstack More than one endpoint exists with the name '14d171e5d9914d8fa19c6bc539acd34b'.

osc:/ # openstack --insecure endpoint delete non-existing-id
ERROR: openstack More than one endpoint exists with the name 'non-existing-id'.

 # zypper info openstack-keystone
Loading repository data...
Reading installed packages...


Information for package openstack-keystone:
-------------------------------------------
Repository: staging
Name: openstack-keystone
Version: 2014.2.3.dev15-1.1
Arch: noarch
Vendor: obs://build.opensuse.org/Cloud:OpenStack
Installed: Yes
Status: up-to-date
Installed Size: 81.9 KiB
Summary: OpenStack Identity Service (Keystone)
Description:
  Keystone is an OpenStack project that provides Identity, Token, Catalog
  and Policy services for use specifically by projects in the OpenStack
  family.

** Affects: keystone
     Importance: Undecided
         Status: New


** Tags: error-messge

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

Title:
  Deleting nonexistent end-point gives incorrect error message

Status in OpenStack Identity (Keystone):
  New

Bug description:
  I'm trying to delete an end-point with invalid id or id that does not exist in the system and getting the below error message:
  ERROR: openstack More than one endpoint exists with the name 'non-existing-id'.

  While the more appropriate message would be to say, No endpoint exists
  with the name 'non-existing-id'.

  osc:/ # openstack --version
  openstack 0.4.1

  osc:/ # openstack --insecure endpoint list
  +----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------+
  | ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                       |
  +----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------+
  | 14d171e5d9914d8fa19c6bc539acd34a | None      | keystone     | identity     | True    | admin     | https://keystone:35357/v3 |
  +----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------+

  osc:/ # openstack --insecure endpoint delete 14d171e5d9914d8fa19c6bc539acd34b
  ERROR: openstack More than one endpoint exists with the name '14d171e5d9914d8fa19c6bc539acd34b'.

  osc:/ # openstack --insecure endpoint delete non-existing-id
  ERROR: openstack More than one endpoint exists with the name 'non-existing-id'.

   # zypper info openstack-keystone
  Loading repository data...
  Reading installed packages...

  
  Information for package openstack-keystone:
  -------------------------------------------
  Repository: staging
  Name: openstack-keystone
  Version: 2014.2.3.dev15-1.1
  Arch: noarch
  Vendor: obs://build.opensuse.org/Cloud:OpenStack
  Installed: Yes
  Status: up-to-date
  Installed Size: 81.9 KiB
  Summary: OpenStack Identity Service (Keystone)
  Description:
    Keystone is an OpenStack project that provides Identity, Token, Catalog
    and Policy services for use specifically by projects in the OpenStack
    family.

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


Follow ups

References