cinder/cinder
wangxiyuan f6aec5bb96 check the validity of metadata when update volume
The volume update API also allow users to update the volume'metadata.
But cinder doesn't check the length limit. It'will raise 500 error
if the metadata is longer than 255. We should check it and raise
413 at the api layer to keep the same with the volume metadata
update API.

Change-Id: I3928ffff9aab6a8071d0641fa6b40b10b1f6bc10
Closes-bug: #1598007
2016-07-04 11:10:27 +08:00
..
api check the validity of metadata when update volume 2016-07-04 11:10:27 +08:00
backup Merge "fix cinder ceph backup driver padding error" 2016-06-26 19:47:50 +00:00
brick Cleanup orphaned code from brick LVM 2015-11-26 23:40:25 -06:00
cmd Deprecate defining c-vol backends in DEFAULT 2016-06-30 12:58:16 -07:00
common Merge "Clarify glance_api_insecure help text" 2016-06-15 23:57:00 +00:00
compute Bump to Nova v2.1 2016-06-03 14:25:39 +08:00
config Add sample config file to cinder docs 2016-05-17 08:52:21 -05:00
consistencygroup Allow setting CG name or description to empty value 2016-06-17 12:24:52 +08:00
db Merge "Improve DB volume check in LVM manage volume" 2016-06-23 17:39:47 +00:00
hacking Revert "Add hacking check to prevent assert_called_once" 2016-05-24 12:36:22 -04:00
image Merge "volume upload-to-image fails for iso disk-format" 2016-06-27 21:00:45 +00:00
interface Add driver interface checks 2016-06-13 15:21:47 +00:00
keymgr Fix doc and source documentation errors and warning 2016-04-14 12:30:08 +02:00
locale Imported Translations from Zanata 2016-06-02 07:25:40 +00:00
message Add pagination support to messages 2016-05-27 10:49:00 +00:00
objects Improve DB volume check in LVM manage volume 2016-06-21 15:36:12 +02:00
replication Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
scheduler Merge "Use elevated context to query DB in VolumeNumberWeigher" 2016-07-02 04:40:24 +00:00
tests check the validity of metadata when update volume 2016-07-04 11:10:27 +08:00
transfer Handle quota exceed exception 2016-06-14 09:56:10 +08:00
volume check the validity of metadata when update volume 2016-07-04 11:10:27 +08:00
wsgi Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
zonemanager Merge "Fix Brcd zone driver initiator zone update" 2016-06-16 23:37:43 +00:00
__init__.py Re-enabled hacking checks for H105 2016-01-05 11:22:40 +02:00
context.py Merge "Define context.roles with base class" 2016-06-17 03:34:18 +00:00
coordination.py update coordination.Lock.release's docstring 2016-06-19 01:55:35 -04:00
exception.py Provide Kaminario K2 all-flash array iSCSI driver 2016-06-17 07:31:55 -04:00
flow_utils.py Refactoring of manager's create_volume flow 2015-07-24 11:19:09 +02:00
i18n.py Remove unused gettextutils from oslo-incubator 2015-10-16 15:22:49 -05:00
manager.py Merge "Cleanup orphaned code from image and manager" 2016-05-13 18:37:06 +00:00
opts.py Provide Kaminario K2 all-flash array iSCSI driver 2016-06-17 07:31:55 -04:00
policy.py adds user_id to check_is_admin 2015-08-25 04:46:18 -07:00
quota.py Merge "Lazy load a project quotas's default values" 2016-05-30 11:08:22 +00:00
quota_utils.py Handle quota exceed exception 2016-06-14 09:56:10 +08:00
rpc.py Fix up RPC cleanup process 2016-05-16 10:52:01 -04:00
service.py Start/Stop coordinator with Volume service 2016-06-13 16:20:03 -05:00
ssh_utils.py Fix sshpool.remove code 2016-03-01 03:20:04 +00:00
test.py Fix lock files littering working dir during tests 2016-06-21 13:59:45 -05:00
utils.py Merge "Move _check_metadata_properties to cinder/utils" 2016-06-24 22:46:05 +00:00
version.py