Deleting nonexistent endpoint gives incorrect error message

Bug #1455034 reported by Sathianantha Thilagar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Invalid
Undecided
Unassigned

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.

Dolph Mathews (dolph)
affects: keystone → python-openstackclient
summary: - Deleting nonexistent end-point gives incorrect error message
+ Deleting nonexistent endpoint gives incorrect error message
tags: added: error-message user-experience
removed: error-messge
Revision history for this message
Terry Howe (thowe-g) wrote :

I'm not seeing this on master

    (.venv)terry@f350:~/python-openstackclient$ os endpoint delete 870f2a74a1d142ec9c202505c11e799
    ERROR: openstack Could not find endpoint: 870f2a74a1d142ec9c202505c11e799 (HTTP 404)

Revision history for this message
Terry Howe (thowe-g) wrote :

0.4.1 is from September too, there have been a couple releases since then.

Revision history for this message
Steve Martinelli (stevemar) wrote :

0.4.1 is really old, as terry said, this isn't a problem with the master branch. upgrade your osc install or bug packagers

Changed in python-openstackclient:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.