*********************** 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
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'
# 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'
Appears to be fixed in upstream 1.3.1.
Close base on comment #3.
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 | +------------------+-------+
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