Description of problem: when running rate-limits and absolute-limits we get the below output: [root@opens-vdsb ~(keystone_admin)]# cinder rate-limits /usr/lib/python2.6/site-packages/cinderclient/shell.py:507: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 message = e.message ERROR: object of type 'generator' has no len() [root@opens-vdsb ~(keystone_admin)]# cinder absolute-limits /usr/lib/python2.6/site-packages/cinderclient/shell.py:507: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 message = e.message ERROR: object of type 'generator' has no len() both of these commands are working for nova. Version-Release number of selected component (if applicable): openstack-cinder-2013.1.2-3.el6ost.noarch How reproducible: 100% Steps to Reproduce: 1. create an AIO 2. run cinder rate-limits 3. run cinder absolute-limits Actual results: we get: ERROR: object of type 'generator' has no len() for both commands Expected results: if the commands are deprecated from cinder they should be removed or have a human readable error. if they are not deprecated they should be fixed to show the output. Additional info: nova works for both commands: [root@opens-vdsb ~(keystone_admin)]# nova absolute-limits +-------------------------+-------+ | Name | Value | +-------------------------+-------+ | maxImageMeta | 128 | | maxPersonality | 5 | | maxPersonalitySize | 10240 | | maxSecurityGroupRules | 20 | | maxSecurityGroups | 10 | | maxServerMeta | 128 | | maxTotalCores | 20 | | maxTotalFloatingIps | 10 | | maxTotalInstances | 10 | | maxTotalKeypairs | 100 | | maxTotalRAMSize | 51200 | | totalCoresUsed | 9 | | totalFloatingIpsUsed | 6 | | totalInstancesUsed | 9 | | totalRAMUsed | 4608 | | totalSecurityGroupsUsed | 1 | +-------------------------+-------+ [root@opens-vdsb ~(keystone_admin)]# nova rate-limits +--------+-----------------+-------+--------+--------+----------------------+ | Verb | URI | Value | Remain | Unit | Next_Available | +--------+-----------------+-------+--------+--------+----------------------+ | DELETE | * | 100 | 99 | MINUTE | 2013-07-16T11:33:24Z | | GET | */os-fping | 12 | 12 | HOUR | 2013-07-22T14:37:09Z | | GET | *changes-since* | 3 | 3 | MINUTE | 2013-07-22T14:37:09Z | | POST | * | 10 | 9 | MINUTE | 2013-07-17T16:21:29Z | | POST | */servers | 50 | 50 | DAY | 2013-07-22T14:37:09Z | | PUT | * | 10 | 10 | MINUTE | 2013-07-22T14:37:09Z | +--------+-----------------+-------+--------+--------+----------------------+
Auto adding >= MODIFIED bugs to beta
the original issue is fixed, but rate-limits is still not working as it should, see bz #1037728
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