Cannot update the quotas for a quota class

Bug #1498457 reported by Ievgeniia Zadorozhna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Fix Released
Medium
Julia Varlamova

Bug Description

Cannot update the quotas for a quota class.

Steps to reproduce:
1. Execute 'manila -d quota-class-update abc --shares <some_value>' command

Expected result:
The quotas for a quota class are updated. The HTTP response is 200.

Actual result:
Getting an error:
DEBUG (shell:510) 'Namespace' object has no attribute 'class_name'
Traceback (most recent call last):
  File "/opt/stack/python-manilaclient/manilaclient/shell.py", line 505, in main
    map(encodeutils.safe_decode, sys.argv[1:]))
  File "/opt/stack/python-manilaclient/manilaclient/shell.py", line 453, in main
    args.func(self.cs, args)
  File "/opt/stack/python-manilaclient/manilaclient/v1/shell.py", line 407, 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'

Changed in python-manilaclient:
importance: Undecided → Medium
Changed in python-manilaclient:
assignee: nobody → Julia Varlamova (jvarlamova)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/227241

Changed in python-manilaclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (master)

Reviewed: https://review.openstack.org/227241
Committed: https://git.openstack.org/cgit/openstack/python-manilaclient/commit/?id=f0f2811b3629ada737b2277364e4f8e8582d596a
Submitter: Jenkins
Branch: master

commit f0f2811b3629ada737b2277364e4f8e8582d596a
Author: Julia Varlamova <email address hidden>
Date: Thu Sep 24 07:09:54 2015 -0400

    Fix args parsing for quota-class-update

    Change 'class-name' argument to 'class_name' to avoid
    AttributeError.

    Add alias '--share_network' to command-line args.

    Add argument 'snapshot_gigabytes' to 'update' function of
    QuotaClassSetManager.

    Closes-bug: #1498457

    Change-Id: Ifbf1d8391c8b3cccaa0b20990133d4a68818d811

Changed in python-manilaclient:
status: In Progress → Fix Committed
Changed in python-manilaclient:
milestone: none → 1.5.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.