python-novaclient problem with PrettyTable 0.6

Bug #1006045 reported by Jered Heeschen
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
High
Unassigned

Bug Description

The 0.6 version of PrettyTable removed the "printt" function, causing a problem for python-novaclient. the solution appears to be to replace printt with "get_string" in utils.py, per a bugfix for openstack/python-keystoneclient:

https://review.openstack.org/#/c/7200/

Original question follows, with error message.

-----

Hello,

nova client doesn't work on my Debian Wheezy.
Every command gives the same error:

ERROR: printt

Here is debug output for 'nova image-list' ('glance index' shows three testing images):

# nova --debug image-list

connect: (192.168.0.1, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.0.1:5000\r\nContent-Length: 114\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "somepassword"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Date: Mon, 28 May 2012 21:43:50 GMT
header: Transfer-Encoding: chunked
connect: (192.168.0.1, 8774)
send: u'GET /v2/4b52eb4c8f284725806fd7917eaa8d61/images/detail HTTP/1.1\r\nHost: 192.168.0.1:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: 7b956feb7c2a4c899f3a18918a69fbc0\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-3579f481-61f9-4c27-ba7b-7b323e4824ef
header: Content-Type: application/json
header: Content-Length: 2166
header: Date: Mon, 28 May 2012 21:43:50 GMT
DEBUG (shell:394) printt
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 391, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 342, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 304, in do_image_list
    utils.print_list(image_list, ['ID', 'Name', 'Status', 'Server'], fmts)
  File "/usr/lib/python2.7/dist-packages/novaclient/utils.py", line 143, in print_list
    pt.printt(sortby=fields[0])
  File "/usr/lib/pymodules/python2.7/prettytable.py", line 163, in __getattr__
    raise AttributeError(name)
AttributeError: printt
ERROR: printt

I can get list of images with 'curl X-Auth-Token' on http://192.168.0.1:8774/v2/tenant_id/images/detail

Regards

Thierry Carrez (ttx)
tags: added: python-novaclient
Changed in nova:
importance: Undecided → High
milestone: none → folsom-2
status: New → Confirmed
Revision history for this message
Matt Joyce (matt-nycresistor) wrote :

Looks like this has already been patched in novaclient.

Changed in nova:
status: Confirmed → Fix Released
Revision history for this message
Jered Heeschen (jered-heeschen) wrote :

Both versions of the client available via pip (on pypi.org) have this problem. Is there another project this should be reported to for the standalone installs?

Revision history for this message
Jered Heeschen (jered-heeschen) wrote :

Gah. Make that pypi.python.org, posted before my brain could correct me.

Revision history for this message
Thierry Carrez (ttx) wrote :

@Jered: Pushing recent versions to PyPI is a known issue with our continuous integration / release processes. We are working on fixing it. You can track progress on bug 995198

Thierry Carrez (ttx)
affects: nova → python-novaclient
Changed in python-novaclient:
milestone: folsom-2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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