Commit Graph

7 Commits

Author SHA1 Message Date
Valeriy Ponomaryov 30d9144aac Port used limits to core API
Extension 'used limits' was extending core 'limits' API with used
resources information. So, provide such information in core API and
remove extension completely.
It does not require neither update of API router nor bump of
microversion.

Partially implements bp ext-to-core

Change-Id: I0ff71fbd0281eb2e34a9acbfc72ff8c14390e8d9
2015-10-19 15:15:20 +03:00
Igor Malinovskiy a26824818f Remove Limited XML API Support from Manila
Remove the broken XML support presently available in Manila
in order to comply with the general direction among other
OpenStack projects to support JSON only.

Change-Id: Ibb542fa223f7f7d1bf95f3d1f568987ef839cd12
Closes-Bug: #1440782
2015-04-13 15:43:47 +03:00
Valeriy Ponomaryov c0019bce6b Add snapshot gigabytes quota
Manila has used single gigabytes quota for shares and snapshots.
Config opt 'no_snapshot_gb_quota' is set to False by default, that has been
used for enabling/disabling of snapshot gigabytes quota considerations.

Add separate snapshot gigabyte quota and remove opt 'no_snapshot_gb_quota' that
is not needed anymore. To be able to set infinite quota for snapshot gigabytes,
just set value for new config option 'quota_snapshot_gigabytes' to '-1'.

Change-Id: I43cb95ff3d0d3e6191f520b52edb67a0a44e9c2c
Implements BP add-snapshot-gb-quota
2015-02-26 07:42:28 +00:00
Andreas Jaeger 7d61666a62 Fix F402 pep8
Fix:
./manila/api/contrib/used_limits.py:45:27: F402 import 'quota' from line
19 shadowed by loop variable

Rename the loop variable.

Remove F402 from ignore list since it now passes.

Change-Id: Iaa1f882d0ce1843496283a922b701860746995a2
2014-08-05 15:04:06 +00:00
Valeriy a8b0c25f81 py33: use six.iteritems for item iterations (part2)
Second final part of replacement dict.iteritems() with
six.iteritems(dict)

Partially-implements blueprint py3-compatibility

Change-Id: I2c4f23a8ba2defcebb0dacf04cdad9f1dc40c04e
2014-07-09 09:54:06 -04:00
vponomaryov 3e76645fbd Made limits usages names unique
Current usages in manila have several same names
as cinder does. It causes overwrites in horizon.

Change-Id: I204b17f33bddb1d5a2ef8cd4927705cd267f2c3a
2014-04-02 13:08:05 -04:00
Valeriy Ponomaryov c98a2cf238 Added extension that provides used resources in absolute limits
Change-Id: Ic042c382bddb8d52518ce3afc75786b1386c1231
2014-03-27 20:00:10 +02:00