Bug 1326069

Summary: manila quota class update results in "'Namespace' object has not attribute 'class-name'"
Product: Red Hat OpenStack Reporter: Tom Barron <tbarron>
Component: python-manilaclientAssignee: Tom Barron <tbarron>
Status: CLOSED WONTFIX QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: apevec, egafford, lhh, sgotliv
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-29 15:48:17 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:

Description Tom Barron 2016-04-11 17:32:57 UTC
Description of problem:


With python-manilaclinet version 1.1.0 command to set default quota class produces error: "'Namespace' object has not attribute 'class-name'"


How reproducible: 100%


Actual results:

$ manila quota-class-update --shares 0 default
ERROR: 'Namespace' object has no attribute 'class_name'

$ manila --debug quota-class-update --shares 0 default
DEBUG (shell:507) 'Namespace' object has no attribute 'class_name'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/manilaclient/shell.py", line 502, in main
    map(encodeutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/manilaclient/shell.py", line 450, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/manilaclient/v1/shell.py", line 359, in do_quota_class_update
    _quota_update(cs.quota_classes, args.class_name, args)
AttributeError: 'Namespace' object has no attribute 'class_name'
ERROR: 'Namespace' object has no attribute 'class_name'


Expected results:

No error and quota class will be set.

Comment 2 Tom Barron 2016-04-11 17:38:16 UTC
Fixed in upstream 1.5