Bug 970053

Summary: Bad error on running glance commands with malformed image ID
Product: Red Hat OpenStack Reporter: Daniel Paikov <dpaikov>
Component: python-glanceclientAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Tzach Shefi <tshefi>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: dron, eglynn, fpercoco, hateya, jruzicka, mlopes
Target Milestone: rcKeywords: Triaged
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: python-glanceclient-0.12.0-1.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:04:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Paikov 2013-06-03 11:52:42 UTC
glance commands with a malformed image ID produce the following error:


[root@orange-vdsf ~(keystone_admin)]# glance image-delete 1
argument 2 to map() must support iteration

[root@orange-vdsf ~(keystone_admin)]# glance image-update 1 
argument 2 to map() must support iteration

[root@orange-vdsf ~(keystone_admin)]# glance image-download 1
argument 2 to map() must support iteration

Comment 6 Jakub Ruzicka 2013-11-20 12:17:53 UTC
I've built python-glanceclient-0.12.0-1.el6ost which includes the upstream fix.

Comment 9 Dafna Ron 2013-12-11 17:34:11 UTC
root@cougar06 ~(keystone_admin)]# glance image-delete 1234567890
Request returned failure status.
No image with a name or ID of '1234567890' exists.
[root@cougar06 ~(keystone_admin)]# 

moving to verified on 
openstack-glance-2013.2-4.el6ost.noarch

Comment 11 errata-xmlrpc 2013-12-20 00:04:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html