diff options
author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-03-24 19:22:05 +0000 |
---|---|---|
committer | Tarmac <> | 2011-03-24 19:22:05 +0000 |
commit | a0ea76b26a7725efb2fc4a811dff66b4f8bff6b7 (patch) | |
tree | 8b5411b38c5911ae6558f4c5d0de1320b23b0d79 /nova/utils.py | |
parent | 0d42b309ac723d18e6795210bc8d8ca6d295de23 (diff) | |
parent | 18eee851d86451737102bacca777c93d3eb66bb3 (diff) | |
download | nova-a0ea76b26a7725efb2fc4a811dff66b4f8bff6b7.tar.gz nova-a0ea76b26a7725efb2fc4a811dff66b4f8bff6b7.tar.xz nova-a0ea76b26a7725efb2fc4a811dff66b4f8bff6b7.zip |
In this branch we are forwarding incoming requests to child zones when the requested resource is not found in the current zone.
For example: If 'nova pause 123' is issued against Zone 1, but instance 123 does not live in Zone 1, the call will be forwarded to all child zones hoping someone can deal with it.
NOTE: This currently only works with OpenStack API requests and routing checks are only being done against Compute/instance_id checks.
Specifically:
* servers.get/pause/unpause/diagnostics/suspend/resume/rescue/unrescue/delete
* servers.create is pending for distributed scheduler
* servers.get_all will get added early in Diablo.
What I've been doing for testing:
1. Set up a Nova deployment in a VM (Zone0)
2. Clone the VM and set --zone_name=zone1 (and change all the IP addresses to the new address in nova.conf, glance.conf and novarc)
3. Set --enable_zone_routing=true on all zones
4. use the --connection_type=fake driver for compute to keep things easy
5. Add Zone1 as a child of Zone0 (nova zone-add)
(make sure the instance id's are different in each zone)
Example of calls being sent to child zones:
http://paste.openstack.org/show/964/
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions