diff options
author | Eoghan Glynn <eglynn@redhat.com> | 2012-08-01 16:28:04 +0000 |
---|---|---|
committer | Eoghan Glynn <eglynn@redhat.com> | 2012-08-14 10:54:33 +0100 |
commit | f94ae65640d16124f9d7fad8c726b185f0398452 (patch) | |
tree | f7b99d99a2a8d0792a72c0de75633df7b3702c80 /nova/crypto.py | |
parent | eac3d00b1775105cb67e8e2a2dcd94112fa0e6d6 (diff) | |
download | nova-f94ae65640d16124f9d7fad8c726b185f0398452.tar.gz nova-f94ae65640d16124f9d7fad8c726b185f0398452.tar.xz nova-f94ae65640d16124f9d7fad8c726b185f0398452.zip |
Enforce quota limitations for instance resize.
Fixes LP 1030010.
Close off a back-door allowing users to go over-quota on ram
and/or cores by creating a tiny instance and then resizing
to any size regardless of the remaining usage headroom.
The quota management logic is distributed in the sense that
the reservations are passed with the RPC casts that may fail
silently, so that the rollback or commit is handled by the
actor finalizing the resize/confirmation/reversion.
Up-sizing requires there is sufficient quota headroom upfront
to accommodate the larger size, whereas conversely down-sizing
only results in a usage reduction when the resize is confirmed.
Change-Id: I2b1cbb098c79e37d7ad19221fe23657eb018eae6
Diffstat (limited to 'nova/crypto.py')
0 files changed, 0 insertions, 0 deletions