cmode driver does not calculate real capacity

Bug #1335113 reported by Valeriy Ponomaryov on 2014-06-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Manila
Medium
Julia Portnova

Bug Description

manila/share/drivers/netapp/cluster_mode.py

Cluster mode driver (netapp) does not calculate capacity, that is used by scheduler for filtering backends. It has constant 'infinite' value.

tags: added: cmode
Changed in manila:
importance: Undecided → Medium
Changed in manila:
assignee: nobody → Julia Portnova (yportnova)
Changed in manila:
assignee: Julia Portnova (yportnova) → Vladimir Vechkanov (vvechkanov)
Changed in manila:
status: New → In Progress
Changed in manila:
assignee: Vladimir Vechkanov (vvechkanov) → Julia Portnova (yportnova)
Julia Portnova (yportnova) wrote :

There is a problem with calculating capacity.

When manila creates volume it picks one aggreagte assigned to Vserver. There can be more than one aggregates assigned.
So when we calculate capacity we sum the capacity of all aggregates assigned to vserver.

For example we may have three aggreagates - 1G, 2G and 2G free capacity. So the total will be 5G.
When creating 4G share netapp driver will fail.

So for now I think the right way is to return max capacity of aggregate.

Reviewed: https://review.openstack.org/109964
Committed: https://git.openstack.org/cgit/stackforge/manila/commit/?id=2ed2c64e6b8dda4c799c1319604636cee90ac426
Submitter: Jenkins
Branch: master

commit 2ed2c64e6b8dda4c799c1319604636cee90ac426
Author: Yulia Portnova <email address hidden>
Date: Mon Jul 28 14:49:58 2014 +0300

    Added calculating capacity info in Cmode

    Change-Id: I02036081e5737bd7b4f11a3fd478acce431c069c
    Closes-Bug: 1335113

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

Other bug subscribers