nova/nova
Balazs Gibizer 928746a7bb Add UUID validation for consumer_uuid
When an allocation is created with PUT /allocations/{consumer_uuid} the
consumer_uuid is not validated as UUID in the API and the DB schema only
checks that is fits into String(36). However the Consumer object stores
this value in a UUIDField oslo only raises a warning today.

This patch adds a UUID validation for that URL path.

Change-Id: Idedd85ca9266f10ce09231c34cab7ca43029a56c
Closes-Bug: #1780238
2018-07-16 15:23:05 +02:00
..
api Add UUID validation for consumer_uuid 2018-07-16 15:23:05 +02:00
cells Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
cmd Merge "Heal allocations with incomplete consumer information" 2018-07-13 19:26:59 +00:00
common
compute Merge "Transform instance.live_migration_rollback_dest notification" 2018-07-15 13:25:45 +00:00
conductor Merge "Transform instance.rebuild_scheduled notification" 2018-07-14 17:20:16 +00:00
conf make incomplete_consumer_project_id a valid UUID 2018-07-09 19:15:46 +01:00
console Use nova.db.api directly 2018-07-10 14:56:27 +00:00
consoleauth
db Merge "Add policy to InstanceGroup object" 2018-07-12 14:34:04 +00:00
hacking Use nova.db.api directly 2018-07-10 14:56:27 +00:00
image Implement certificate_utils 2018-06-12 14:44:32 -04:00
ipv6
keymgr
locale Imported Translations from Zanata 2018-07-13 06:58:20 +00:00
network Merge "Handle network-changed event for a specific port" 2018-06-27 22:06:23 +00:00
notifications Merge "Transform instance.live_migration_rollback_dest notification" 2018-07-15 13:25:45 +00:00
objects Merge "Transform instance.rebuild_scheduled notification" 2018-07-14 17:20:16 +00:00
pci network: update pci request spec to handle trusted tags 2018-05-31 13:55:40 -04:00
policies Merge "Remove support for /os-fixed-ips REST API" 2018-06-26 21:01:35 +00:00
privsep Merge "Revert "Re-using the code of os brick cinder"" 2018-06-19 02:08:35 +00:00
scheduler Merge "Heal allocations with incomplete consumer information" 2018-07-13 19:26:59 +00:00
servicegroup
tests Add UUID validation for consumer_uuid 2018-07-16 15:23:05 +02:00
virt Merge "Transform instance.live_migration_rollback_dest notification" 2018-07-15 13:25:45 +00:00
vnc
volume Remove unnecessary parameters from create volume API 2018-06-12 12:06:41 +05:30
__init__.py
availability_zones.py
baserpc.py
block_device.py Add uuid column to BlockDeviceMapping 2017-12-17 14:28:35 +00:00
cache_utils.py
config.py
context.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
crypto.py Convert certificate generation to processutils. 2018-05-02 19:18:41 +10:00
debugger.py
exception.py Merge "virt/ironic: Implement rescue and unrescue" 2018-07-15 07:49:36 +00:00
exception_wrapper.py Add full traceback to ExceptionPayload in versioned notifications 2018-06-19 16:46:46 +08:00
filters.py
hooks.py
i18n.py correct referenced url in comments 2018-01-18 09:16:37 +08:00
loadables.py
manager.py conf: Remove 'db_driver' config opt 2018-03-16 17:23:16 +00:00
policy.py
profiler.py
quota.py Merge "Fix server_group_members quota check" 2018-07-11 21:33:06 +00:00
rc_fields.py Make ResourceClass.normalize_name handle sharp S 2018-04-10 12:24:40 -05:00
rpc.py Use oslo.messaging per-call monitoring 2018-06-11 14:44:10 -07:00
safe_utils.py
service.py Deprecate running API services under eventlet 2018-05-16 03:48:32 +00:00
service_auth.py Fix NoneType error when [service_user] is misconfigured 2017-11-28 12:22:30 -06:00
test.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
utils.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
version.py
weights.py
wsgi.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00