nova/nova
Chris Dent 0fc4f95914 [placement] disallow additional fields in allocations
Back in microversion 1.12, when the allocations structure was extended
to allow project_id and user_id on PUT /allocations/{uuid},
"additionalProperties" was not set in the JSON schema, so it has been
possible since then to include unused fields in the input. The schema
was then reused in the creation of subsequent schema for new
microversions and for new URIs, such as POST /allocations and the
forthcoming /reshaper.

This change fixes it by fixing the old microversion. This is the "just
fix it" option from the discussion on the associated bug. The other
option is to create a new microversion that corrects the behavior. This
is more complex than it might initially sound because of the way in
which the original schema is used to compose new ones.

Change-Id: Ied464744803864e61a45e03c559760a8a2e2581f
Closes-Bug: #1782340
2018-07-19 10:46:13 +01:00
..
api [placement] disallow additional fields in allocations 2018-07-19 10:46:13 +01:00
cells Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
cmd Merge "fix cellv2 delete_host" 2018-07-17 00:46:46 +00:00
common
compute Merge "Address nit in 79dac41fee178dabb547f4d7bc10609630767131" 2018-07-18 18:05:09 +00:00
conductor Merge "Add unshelve instance error info to fault table" 2018-07-17 19:59:16 +00:00
conf z/VM Driver: Spawn and destroy function of z/VM driver 2018-07-16 11:35:11 +08:00
console Use nova.db.api directly 2018-07-10 14:56:27 +00:00
consoleauth
db Merge "Address nits in server group policy series" 2018-07-17 06:23:25 +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 "Delete port bindings in setup_networks_on_host if teardown=True" 2018-07-18 03:44:09 +00:00
notifications Transform metrics.update notification 2018-07-18 09:13:27 +09:00
objects Merge "objects: Add RequestSpec.network_metadata" 2018-07-18 12:24:19 +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 "Address nits in server group policy series" 2018-07-17 06:23:25 +00:00
servicegroup
tests [placement] disallow additional fields in allocations 2018-07-19 10:46:13 +01:00
virt Merge "hardware: Start accounting for networks in NUMA fitting" 2018-07-18 12:24:10 +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 "API: add support to abort queued live migration in microversion 2.65" 2018-07-18 17:45:24 +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