diff options
author | Chris Behrens <cbehrens@codestud.com> | 2011-09-08 20:18:11 +0000 |
---|---|---|
committer | Tarmac <> | 2011-09-08 20:18:11 +0000 |
commit | 22690ddbe73cdd0087d0b5c6d82be7ecdf048932 (patch) | |
tree | 73302be220f144acd99d5d6194eaab944b127d66 /nova/context.py | |
parent | 1b5a4e553216376c44d6adb8af8aa425d0ec1b92 (diff) | |
parent | 61394a97c07b65a6e4a480ec0edee57093bce52f (diff) | |
download | nova-22690ddbe73cdd0087d0b5c6d82be7ecdf048932.tar.gz nova-22690ddbe73cdd0087d0b5c6d82be7ecdf048932.tar.xz nova-22690ddbe73cdd0087d0b5c6d82be7ecdf048932.zip |
Fixes the reroute_compute decorator in the scheduler API so that it properly:
1) Raises InstanceNotFound when all zones return no instance
2) If an instance is found in a zone, ignore whether other zones may be down. Return the instance
information, catching the novaclient exceptions from the other zones.
3) If a zone is down and no instances are found in other zones, raise a ZoneRequestError... as it's possible the instance exists in the downed zones.
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions