Bug 986987 - cinder: rate-limits and absolute-limits commands are not working in cinder
Summary: cinder: rate-limits and absolute-limits commands are not working in cinder
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinderclient
Version: unspecified
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: beta
: 4.0
Assignee: Flavio Percoco
QA Contact: Giulio Fidente
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-22 14:41 UTC by Dafna Ron
Modified: 2016-04-26 22:49 UTC (History)
7 users (show)

Fixed In Version: python-cinderclient-1.0.5-1.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-20 00:14:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1180059 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Dafna Ron 2013-07-22 14:41:45 UTC
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 |
+--------+-----------------+-------+--------+--------+----------------------+

Comment 4 Scott Lewis 2013-11-19 16:54:35 UTC
Auto adding >= MODIFIED bugs to beta

Comment 6 Giulio Fidente 2013-12-03 17:32:53 UTC
the original issue is fixed, but rate-limits is still not working as it should, see bz #1037728

Comment 9 errata-xmlrpc 2013-12-20 00:14:54 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


Note You need to log in before you can comment on or make changes to this bug.