]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Enable services on agents with admin_state_up False
authorItsuro Oda <oda@valinux.co.jp>
Thu, 8 Jan 2015 23:47:56 +0000 (08:47 +0900)
committerItsuro Oda <oda@valinux.co.jp>
Fri, 27 Mar 2015 01:33:31 +0000 (10:33 +0900)
commit766c2738ae16ebbae37f26b17e261f0112616bb5
tree540936846e0a33176f18b7db25f7a042f78b0511
parent822a488976ba6bf75ce89fff18992ad53ca7f326
Enable services on agents with admin_state_up False

Previously when admin_state_up of an agent is turned to False,
all services on it will be disabled.
This fix makes existing services on agents with admin_state_up
False keep available.
To keep current behavior available the following configuration
parameter added.

* enable_services_on_agents_with_admin_state_down

If the parameter is True, existing services on agents with admin_state_up
False keep available. No more service will be scheduled to the agent
automatically. But adding a service to the agent manually is available.
i.e. admin_state_up: False means to stop automatic scheduling under the
parameter is True.
The default of the parameter is False (current behavior).

Change-Id: Ifba606a5c1f3f07d717c7695a7a64e16238c2057
Closes-Bug: #1408488
etc/neutron.conf
neutron/api/rpc/agentnotifiers/dhcp_rpc_agent_api.py
neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py
neutron/api/rpc/agentnotifiers/metering_rpc_agent_api.py
neutron/db/agentschedulers_db.py
neutron/db/l3_agentschedulers_db.py
neutron/tests/unit/api/rpc/agentnotifiers/test_dhcp_rpc_agent_api.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py