Method get_quota does not handle quotas smaller than 1 GB.
When the share quota is KB or MB, get_quota transforms everything to GB.
It is impacting directly on managing shares.
As an example, managing a 500 MB share results in 500 GB share in HDS HNAS
Driver.
The unit TB was already being transformed in GB.
This patch implements a condition to deny share with quota smaller than
1GB.
Reviewed: https:/ /review. openstack. org/224830 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=dd77cf98c10 18531d0e539e915 b3421bd14fc3e8
Committed: https:/
Submitter: Jenkins
Branch: master
commit dd77cf98c101853 1d0e539e915b342 1bd14fc3e8
Author: Alyson Rosa <email address hidden>
Date: Thu Sep 17 13:14:08 2015 -0300
Fix HDS HNAS manage incorrect share size
Method get_quota does not handle quotas smaller than 1 GB.
When the share quota is KB or MB, get_quota transforms everything to GB.
It is impacting directly on managing shares.
As an example, managing a 500 MB share results in 500 GB share in HDS HNAS
Driver.
The unit TB was already being transformed in GB.
This patch implements a condition to deny share with quota smaller than
1GB.
Closes-bug: #1496917 7a856702f8a024a 8b50886207b
Change-Id: I73edc1f413bd30