Bug 1326069 - manila quota class update results in "'Namespace' object has not attribute 'class-name'"
Summary: manila quota class update results in "'Namespace' object has not attribute 'c...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-manilaclient
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.0 (Kilo)
Assignee: Tom Barron
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-11 17:32 UTC by Tom Barron
Modified: 2016-08-29 15:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-29 15:48:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1498457 0 None None None 2016-04-11 17:35:23 UTC
OpenStack gerrit 227241 0 None None None 2016-04-11 17:37:03 UTC

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


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