This is for fixing the octavia issue.
We ran the Octavia code base through a static code analyser and several issues got flagged.
As an exercise we looked at each issue and are now proposing fixes to the complexity/code style issues.
Change-Id: I2fc0cf213a9f7488e7cf1dff789d98ca2deeb81f
Moved octavia/bin directory to octavia/octavia/cmd and renamed octavia-api to
api.py. This follows the new strucutre most openstack projects are doing.
Also implemented octavia-api being built when doing setup install.
Had to remove the octavia/tests/specs symlink because pbr did not like it and
would not allow anything to be built. Also found out the test_titles test was
not being run on the specs, so that has been added as a separate tox
environment.
Change-Id: I92f2bc6eaa346983f7a2479dc9fa43d2040f2cd5
Updates controller base to load handler via stevedore
Updates setup.cfg with entry point
Updates octavia.conf for api_handler default example
Updates config.py for api_handler
Updates requirements.txt for stevedore
Change-Id: I67e3da376fad1d48cec7f56f990c4b13ac7f4b83
tenant_name is no longer accepted for the v3 client authentication.
This patch updates that to project_name which is accepted on v3.
Change-Id: Iccc460c1a4bae10ff530ce09888b877bfd5c39f4
This is to allow neturon-lbaas to be able to give its own ids so it
can know what id octavia is tracking.
Change-Id: Id49c7971894228fdf56189df86175fd35c6ed5ca
Fixed some doc'ed docstrings as well to satisfy someone's OCD. I won't name
names but they're name rhymes with Hadam Arwell.
Change-Id: I0b6482cda29c556918c2b2eb8b03cdec30b0b7c3
The jinja config translation layer references the pool data model's
session persistence and health monitor as pool.sessionpersistence and
pool.healthmonitor. It should be pool.session_persistence and
pool.health_monitor.
Change-Id: I7664d7498a7dd69896f47937b8440ceb94db653f
Adds haproxy 1.5.x from ubuntu trusty backports
Adds a git pull for the amphora agent code
Removes check for argparse (internal for python 2.7)
Adds sysctl net.ipv4.ip_nonlocal_bind=1
Change-Id: I7aecf727fb5d9be08982c5a32ae3c6e280ebda14
This driver will allocate a neutron port and fixed_ip on the VIP's network.
Upon plugging the VIP, it will use neutron's allowed address pair to allow
traffic destined for the ha_ip to pass to raised on amphora interfaces.
Change-Id: I7bce4c2bbb9b35905c21caf79cb865e0ca146dac
vrrp_ip will typically be the ip through which the amphora communicates with
its vrrp peer.
ha_ip will typically be the ip that is shared between the amphorae.
Since it is possible each amphora may have a different ha_ip and vrrp_ip,
it makes sense to add them to the model/table. Adding them now because the
network driver will be assigning the values.
Changed the network driver spec and base class to mention the plug_vip method
should return a list of amphoras.
Change-Id: I04a97caf00bc6fa25f94e6470d3ed7da48880ae6
Co-Authored-By: German german.eichberger@hp.com
Create data models and repositories for healthmanager
Change the health manager's property---lastupdated to be datetime type
Change the code based on the previous comment
Design a new class healthmanager and implement the update health method
and unit test class test_health_mixin
Add try and exception for get member in update_health_mixin
Delete the pool part when the member gets offline status
Add get_all method for AmphoraHealthRepository so we can pass non equality comparation in it,
also make a test for it in test_repositories.py
Changed the name of test_all and get_all to be test_all_filter and get_all_filter
Change-Id: Ic356dee139e743a9617d401f9658cfefcb49d15f