]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
L3 agent should always use a unique CONF object
authorJohn Schwarz <jschwarz@redhat.com>
Mon, 29 Sep 2014 13:28:18 +0000 (16:28 +0300)
committerJohn Schwarz <jschwarz@redhat.com>
Thu, 2 Oct 2014 08:53:18 +0000 (11:53 +0300)
commit28660b19f5ef861d7d2ceba04faa7f263bdf8a37
tree9c5f57027c91754bafbf725e5507fc29673959e1
parent205162f58050fcb94db53cd51b674d2093dfe700
L3 agent should always use a unique CONF object

The l3 agent accepts an oslo configuration in its constructor and uses
it throughout the code, but there are some references to the global
configuration object held by the oslo library. Since HA functional
tests need to create two agents, the configuration should be consistent
throughout the code.

The important difference between the agents is their 'host' value so
that they create different namespaces, and 'state_path' value so the
agents get their own filesystem root.

Co-Authored-By: Assaf Muller <amuller@redhat.com>
Related-bug: #1374946
Change-Id: I3326889482681dd631ca59271ebd6a5d5129ae70
neutron/agent/l3_agent.py