]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add scheduling feature basing on agent management extension
authorgongysh <gongysh@linux.vnet.ibm.com>
Fri, 22 Feb 2013 15:34:57 +0000 (23:34 +0800)
committergongysh <gongysh@linux.vnet.ibm.com>
Wed, 27 Feb 2013 13:20:51 +0000 (21:20 +0800)
commit0070b452f1c00817dd4a47deb57bfbe6b79c4152
tree99e649bca2f14c996be2ba1d100388227fd81565
parent598483f0fbbc1f86fcff9f89dc0a4781831438c8
Add scheduling feature basing on agent management extension

3rd part of blueprint quantum-scheduler

1. Allow networks to be hosted by certain dhcp agents.
Network to dhcp agent is a
many to many relationship. Provide a simple
scheduler to schedule a network randomly
to an active dhcp agent when a network or port is created.
2. Allow admin user to (de)schedule network to a
certain dhcp agent manually.
3. Allow routers to be hosted by a certain l3 agent.
Router to l3 agent is a many to one relationship.
Provide a simple scheduler to
schedule a router to l3 agent if the router is not
scheduled when the router is  updated.
4. Auto schedule networks and routers to agents when agents
start.
5. Only support ovs plugin at this point

Change-Id: Iddec3ea9d4c0fe2d51a59f7db47145722fc5a1cd
29 files changed:
etc/policy.json
etc/quantum.conf
quantum/agent/dhcp_agent.py
quantum/agent/l3_agent.py
quantum/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py
quantum/api/rpc/agentnotifiers/l3_rpc_agent_api.py [new file with mode: 0644]
quantum/common/constants.py
quantum/common/utils.py
quantum/db/agents_db.py
quantum/db/agentschedulers_db.py [new file with mode: 0644]
quantum/db/dhcp_rpc_base.py
quantum/db/extraroute_db.py
quantum/db/l3_db.py
quantum/db/l3_rpc_agent_api.py [deleted file]
quantum/db/l3_rpc_base.py
quantum/db/migration/alembic_migrations/versions/4692d074d587_agent_scheduler.py [new file with mode: 0644]
quantum/extensions/agentscheduler.py [new file with mode: 0644]
quantum/plugins/openvswitch/common/config.py
quantum/plugins/openvswitch/ovs_quantum_plugin.py
quantum/policy.py
quantum/scheduler/__init__.py [new file with mode: 0644]
quantum/scheduler/dhcp_agent_scheduler.py [new file with mode: 0644]
quantum/scheduler/l3_agent_scheduler.py [new file with mode: 0644]
quantum/tests/unit/openvswitch/test_agent_scheduler.py [new file with mode: 0644]
quantum/tests/unit/test_agent_ext_plugin.py
quantum/tests/unit/test_db_rpc_base.py
quantum/tests/unit/test_l3_agent.py
quantum/tests/unit/test_l3_plugin.py
tox.ini