lp:~termie/nova/nearly_direct_api

Created by termie and last modified
Get this branch:
bzr branch lp:~termie/nova/nearly_direct_api
Only termie can upload to this branch. If you are termie please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
termie
Project:
OpenStack Compute (nova)
Status:
Merged

Recent revisions

882. By termie

pep8 cleanups

881. By termie

better error handling and serialization

880. By termie

add some more docs and make it more obvious which parts are examples

879. By termie

add an example of a versioned api

878. By termie

add some more docs to direct.py

877. By termie

add Limited, an API limiting/versioning wrapper

876. By termie

improve the formatting of the stack tool

875. By termie

support volume and network in the direct api

874. By Sandy Walsh

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/

873. By termie

Fixes a bug that was causing tests to fail on OS X by ensuring that greenthread sleep is called during retry loops.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~hudson-openstack/nova/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers