]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add agent scheduling for LBaaS namespace agent
authorOleg Bondarev <obondarev@mirantis.com>
Wed, 29 May 2013 07:58:17 +0000 (11:58 +0400)
committerOleg Bondarev <obondarev@mirantis.com>
Fri, 19 Jul 2013 09:25:04 +0000 (13:25 +0400)
commitda65fe6951531146113185726dd0c955aa3df75d
treea049e33b2fcc694fc4f57879f92a75fb09d0d4dd
parentf341ad570313e619ae8d75d611f0d4fcbc285cb9
Add agent scheduling for LBaaS namespace agent

- adds simple chance scheduling on create pool operation
- adds PoolsLoadbalancerAgentBinding db table
- adds lbaas_agentscheduler extension to list pools hosted by a particular agent
  and to get an agent hosting a particular pool
- adds agent notifiers mapping to AgentSchedulerDbMixin to make it easier
  for services to add their agent notifiers to the core plugin

Implements blueprint lbaas-agent-scheduler
Change-Id: Id98649fd5c7873dcd5be1a2b117b8bed25f06cc2
27 files changed:
etc/neutron.conf
etc/policy.json
neutron/common/constants.py
neutron/db/agents_db.py
neutron/db/agentschedulers_db.py
neutron/db/migration/alembic_migrations/versions/52c5e4a18807_lbaas_pool_scheduler.py [new file with mode: 0644]
neutron/extensions/lbaas_agentscheduler.py [new file with mode: 0644]
neutron/manager.py
neutron/plugins/brocade/NeutronPlugin.py
neutron/plugins/linuxbridge/lb_neutron_plugin.py
neutron/plugins/ml2/plugin.py
neutron/plugins/nec/nec_plugin.py
neutron/plugins/nicira/NeutronPlugin.py
neutron/plugins/openvswitch/ovs_neutron_plugin.py
neutron/services/loadbalancer/agent_scheduler.py [new file with mode: 0644]
neutron/services/loadbalancer/drivers/haproxy/agent.py
neutron/services/loadbalancer/drivers/haproxy/agent_manager.py
neutron/services/loadbalancer/drivers/haproxy/plugin_driver.py
neutron/services/loadbalancer/drivers/noop/noop_driver.py
neutron/services/loadbalancer/plugin.py
neutron/tests/unit/db/loadbalancer/test_db_loadbalancer.py
neutron/tests/unit/dummy_plugin.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py
neutron/tests/unit/services/loadbalancer/drivers/haproxy/test_plugin_driver.py
neutron/tests/unit/services/loadbalancer/test_agent_scheduler.py [new file with mode: 0644]
neutron/tests/unit/test_agent_ext_plugin.py
neutron/tests/unit/test_neutron_manager.py