Bug 1289677

Summary: Cinder quota class update results in error 'NoneType' object has no attribute '_info
Product: Red Hat OpenStack Reporter: Prasanth Anbalagan <panbalag>
Component: python-cinderclientAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: lkuchlan <lkuchlan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: eharney, jruzicka, scohen, sengork, sgotliv, srevivo
Target Milestone: ---Keywords: Reopened, ZStream
Target Release: 7.0 (Kilo)   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-cinderclient-1.2.1-2.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-31 17:38:23 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 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