NetApp ONTAP driver does not include snapshot-<uuid> files for capacity calculations of provisioned_capacity_gb
Bug #2021746 reported by
Michael Arndt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Medium
|
Felipe Rodrigues |
Bug Description
The cinder scheduler increments provisionied_
Changed in cinder: | |
importance: | Undecided → Medium |
tags: | added: drivers netapp |
Changed in cinder: | |
assignee: | nobody → Felipe Rodrigues (felipefutty) |
To post a comment you must log in.
Proposed diff of the simple changes to make this calculation consistent:
modules/ controller/ files/cinder/ volume/ drivers/ netapp/ dataontap/ nfs_cmode. py controller/ files/cinder/ volume/ drivers/ netapp/ dataontap/ nfs_cmode. py b/modules/ controller/ files/cinder/ volume/ drivers/ netapp/ dataontap/ nfs_cmode. py controller/ files/cinder/ volume/ drivers/ netapp/ dataontap/ nfs_cmode. py controller/ files/cinder/ volume/ drivers/ netapp/ dataontap/ nfs_cmode. py river(nfs_ base.NetAppNfsD river,
files = self.zapi_ client. get_file_ sizes_by_ dir(ssc_ vol_name)
provisioned_ cap = 0
for f in files: utils.extract_ id_from_ volume_ name(f[ 'name'] ): utils.extract_ id_from_ volume_ name(f[ 'name'] ) or \ utils.extract_ id_from_ snapshot_ name(f[ 'name'] ):
provisioned _cap = provisioned_cap + f['file-size']
pool[ 'provisioned_ capacity_ gb'] = na_utils. round_down(
float(provision ed_cap) / units.Gi)
diff --git a/modules/
index fc40f3a..edef16e 100644
--- a/modules/
+++ b/modules/
@@ -290,7 +290,8 @@ class NetAppCmodeNfsD
- if volume_
+ if volume_
+ volume_