Bug 918770

Summary: cinder client does not catch gracefully a keyboard interrupt (ctrl-c)
Product: Red Hat OpenStack Reporter: Eric Harney <eharney>
Component: python-cinderclientAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: Giulio Fidente <gfidente>
Severity: low Docs Contact:
Priority: low    
Version: 2.0 (Folsom)CC: apevec, eglynn, eharney, hateya, jbresnah, jhenner, ykaul
Target Milestone: snapshot1Keywords: Triaged
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 893041 Environment:
Last Closed: 2013-05-29 15:06:21 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 Eric Harney 2013-03-06 20:20:09 UTC
+++ This bug was initially created as a clone of Bug #893041 +++

Description of problem:

Ctrl-C of cinder client causes a big traceback to be printed, should be cleanly messaged instead:

$ cinder list
^CTraceback (most recent call last):
  File "/usr/bin/cinder", line 9, in <module>
    load_entry_point('python-cinderclient==1.0.1', 'console_scripts', 'cinder')()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.6/site-packages/cinderclient/shell.py", line 23, in <module>
    import httplib2
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", line 36, in <module>
    import httplib
  File "/usr/lib64/python2.6/httplib.py", line 70, in <module>
    import socket
  File "/usr/lib64/python2.6/socket.py", line 50, in <module>
    import _ssl
KeyboardInterrupt

Comment 6 Giulio Fidente 2013-05-23 10:08:36 UTC
verified against python-cinderclient-1.0.4-1.el6ost

Comment 8 errata-xmlrpc 2013-05-29 15:06:21 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/RHBA-2013-0878.html