Bug 1289677 - Cinder quota class update results in error 'NoneType' object has no attribute '_info
Summary: Cinder quota class update results in error 'NoneType' object has no attribute...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinderclient
Version: 7.0 (Kilo)
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.0 (Kilo)
Assignee: Eric Harney
QA Contact: lkuchlan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-08 17:31 UTC by Prasanth Anbalagan
Modified: 2016-08-31 17:38 UTC (History)
6 users (show)

Fixed In Version: python-cinderclient-1.2.1-2.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-31 17:38:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1423884 0 None None None Never
Red Hat Product Errata RHBA-2016:1791 0 normal SHIPPED_LIVE openstack-cinder bug fix advisory 2016-08-31 21:35:36 UTC

Description Prasanth Anbalagan 2015-12-08 17:31:30 UTC
***********************
Description of problem:
***********************

Cinder quota class update results in error "ERROR: 'NoneType' object has no attribute '_info', but the show command does list the new value.

****************
Version-Release 
****************

[root@seal17 ~(keystone_admin)]# yum list installed | grep openstack-cinder
openstack-cinder.noarch              2015.1.2-4.el7ost       @rhelosp-7.0-puddle

*****************
How reproducible:
*****************

Always

*******************
Steps to Reproduce:
*******************

1. cinder quota-class-update --volumes 10000 admin
2. Error message- "ERROR: 'NoneType' object has no attribute '_info"

****************
Actual results:
****************


[root@seal17 ~(keystone_admin)]# cinder quota-class-update --volumes 10000 admin
ERROR: 'NoneType' object has no attribute '_info'
[root@seal17 ~(keystone_admin)]# cinder quota-class-update --volumes 10000 demo
ERROR: 'NoneType' object has no attribute '_info'
[root@seal17 ~(keystone_admin)]# cinder quota-class-update --volumes 10000 services
ERROR: 'NoneType' object has no attribute '_info'

*****************
quota class show
*****************

root@seal17 ~(keystone_admin)]# cinder quota-class-show admin
+------------------+-------+
|     Property     | Value |
+------------------+-------+
| backup_gigabytes |  1000 |
|     backups      |   10  |
|    gigabytes     |  1000 |
| gigabytes_iscsi  |   -1  |
|    snapshots     |   10  |
| snapshots_iscsi  |   -1  |
|     volumes      | 10000 |
|  volumes_iscsi   |   -1  |
+------------------+-------+
[root@seal17 ~(keystone_admin)]# cinder quota-class-show demo
+------------------+-------+
|     Property     | Value |
+------------------+-------+
| backup_gigabytes |  1000 |
|     backups      |   10  |
|    gigabytes     |  1000 |
| gigabytes_iscsi  |   -1  |
|    snapshots     |   10  |
| snapshots_iscsi  |   -1  |
|     volumes      | 10000 |
|  volumes_iscsi   |   -1  |
+------------------+-------+
[root@seal17 ~(keystone_admin)]# cinder quota-class-show services
+------------------+-------+
|     Property     | Value |
+------------------+-------+
| backup_gigabytes |  1000 |
|     backups      |   10  |
|    gigabytes     |  1000 |
| gigabytes_iscsi  |   -1  |
|    snapshots     |   10  |
| snapshots_iscsi  |   -1  |
|     volumes      | 10000 |
|  volumes_iscsi   |   -1  |
+------------------+-------+


******************
Expected results:
*****************

No error message

Comment 2 Eric Harney 2015-12-08 20:03:43 UTC
Reproduced:

[root@dhcp148-170 ~(keystone_admin)]# rpm -q python-cinderclient
python-cinderclient-1.2.1-1.el7ost.noarch
[root@dhcp148-170 ~(keystone_admin)]# cinder quota-class-update --volumes 10000 admin
ERROR: 'NoneType' object has no attribute '_info'

Comment 3 Eric Harney 2015-12-08 20:05:53 UTC
# OS_VOLUME_API_VERSION=2 cinder quota-class-update --volumes 10000 admin
ERROR: 'Namespace' object has no attribute 'class_name'
# OS_VOLUME_API_VERSION=1 cinder quota-class-update --volumes 10000 admin
ERROR: 'NoneType' object has no attribute '_info'

Comment 4 Eric Harney 2015-12-08 20:34:13 UTC
Appears to be fixed in upstream 1.3.1.

Comment 5 Sergey Gotliv 2015-12-15 13:44:09 UTC
Close base on comment #3.

Comment 7 lkuchlan 2016-08-01 12:52:07 UTC
Tested using:
openstack-cinder-2015.1.3-7.el7ost.noarch
python-cinderclient-1.2.1-3.el7ost.noarch
python-cinder-2015.1.3-7.el7ost.noarch

Verification flow:

[root@cougar15 ~(keystone_admin)]# cinder quota-class-show admin
+------------------+-------+
|     Property     | Value |
+------------------+-------+
| backup_gigabytes |  1000 |                                                                                                                                                                                       
|     backups      |   10  |                                                                                                                                                                                       
|    gigabytes     |  1000 |                                                                                                                                                                                       
| gigabytes_iscsi  |   -1  |                                                                                                                                                                                       
|    snapshots     |   10  |                                                                                                                                                                                       
| snapshots_iscsi  |   -1  |                                                                                                                                                                                       
|     volumes      |   10  |                                                                                                                                                                                       
|  volumes_iscsi   |   -1  |                                                                                                                                                                                       
+------------------+-------+                                                                                                                                                                                       
[root@cougar15 ~(keystone_admin)]# cinder quota-class-update --volumes 100 admin
+------------------+-------+                                                                                                                                                                                       
|     Property     | Value |                                                                                                                                                                                       
+------------------+-------+                                                                                                                                                                                       
| backup_gigabytes |  1000 |                                                                                                                                                                                       
|     backups      |   10  |                                                                                                                                                                                       
|    gigabytes     |  1000 |                                                                                                                                                                                       
| gigabytes_iscsi  |   -1  |                                                                                                                                                                                       
|    snapshots     |   10  |
| snapshots_iscsi  |   -1  |
|     volumes      |  100  |
|  volumes_iscsi   |   -1  |
+------------------+-------+

Comment 9 errata-xmlrpc 2016-08-31 17:38:23 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.

https://rhn.redhat.com/errata/RHBA-2016-1791.html


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