OCTAVIA_HM_LISTEN_PORT is used for amphore to talk with o-hm.
This port need to be enabled in security group.
Change-Id: I686e49a502a1abf9afa5fc6b10d444fda98dc0d5
We are seeing odd behavior connecting to the amphora on some
gate hosts. This patch adds additional logging to gather
information on this behavior as well as provide more user
friendly log messages when connection issues occur.
Change-Id: I086fd64cfadb839eec36128016ee018e373f9457
When an exception is caught and rethrown, it should call 'raise'
without any arguments because it shows the place where an exception
occured initially instead of place where the exception was re-raised.
Co-Authored-By: Songming Yan <yan.songming@zte.com.cn>
Change-Id: I49f9847fbc0733b97a99637e2400f9dbb21182e3
I don't believe that neutron extensions are loaded/unloaded on the fly,
so there should be no reason to check them every time (this adds
additional API call overhead). It is trivial to cache them instead.
If people think this is a bad idea for some reason I have not
considered, feel free to -2 (maybe my assumption is incorrect).
Change-Id: Ifa08bea3187eb1f603a28c7faf33dfbaff6f6afe
The design is for ListenerStatistics to be in its own DB (probably
Redis) because of the required write performance at scale. Having these
constrains in place (however valid they seem) will prevent a deployer
from correctly splitting these tables between different DBs.
Change-Id: I35d424cb6f8c858a3465ea94e496c7de946ffa70
This reverts commit 687a972960915ef01008701dbbb35a7b52c728ae.
Something about this seems to have possibly broken amphora boots.
Testing reverting this patch to see if it fixes the scenario runs.
Change-Id: I824cb1c6fa38f2320f84456a551585114215f625
Fix detailed generating the config regardless of the presence of the redirect
pool backend configuration, sending requests to the default pool backend
Change-Id: I84194e6b8cab765fc1c97c0acaaa0c3037320578
Closes-Bug: 1583341
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.
Change-Id: I968c8baab6b9f5c1b1b99735e16dc08158f7d8d7
This adds a rhel type and gives some pointers on needed environment
variables for base image, registration, needed subscriptions.
no-resolvconf is also updated to work on rhel-type systems
Depends-On: Icb0e20b01479fea345e01309fc4bf3f7f639900c
Change-Id: Ic452feaf32fe7699ebd072f21dd630a2ac93bb5f
Tox tests for py27 and py34 would fail various numbers of tests
when tox was run multiple times without a clean stack. This patch
tracked down the missing mocks for the various tests and put them
into place. Now running tox should pass green no matter if the
user has a running stack or does not have a running stack.
Change-Id: I0b11c83ec7ccfdc57790213d415b30d52fd55a61
Closes-Bug: 1599330
The are too many similar codes in functions for getting several
types resource in neutron, we should unify them.
Change-Id: I0b50e8b2cd29262f32db6f2b94765eb65b2bb21c
The main octavia node will need the OCTAVIA_NODES setting
in the following format to setup the octavia API haproxy
in front of all of them.
OCTAVIA_NODES=main:<ip-address>,second:<ip-address>
Change-Id: I4a88dae4aa47c508559fd7464f127a23b089af2a
This commit introduces a new parameter "OCTAVIA_NODE", which
is standalone by default. Only the main (for ha) or standalone
nodes create resources like accounts, the management network,
images, etc.
We also introduce a multinode vagrant configuration.
A follow up patch will introduce an haproxy in front of the octavia
API endpoints.
Change-Id: I835ee7e0e925232b55f3c14eeed98aeb0f0ce463
This fixes some typos and copy-paste mistakes in docstrings and
logs. Missing docstrings were added as well.
Change-Id: Idc61068f36c3a30743fe7eff033d7e8b0d660661
DevStack is used mostly for development purposes that
often involve frequent creation and deletion of resources.
That is why having a lot of stale resources like amphorae and
load balancers is quite confusing.
Keeping them around for a week makes sense in production but in
DevStack deployments it is reasonable to decrease expiry age
to 1 hour by default.
Change-Id: I1b78963256467175537caffd46a863da9f5fb018
When load balancer is deleted the corresponding DB entry is marked
as DELETED and is never actually removed along with a VIP
associated whit this load balancer.
This adds a new method to db_cleanup routine that scans the DB for
load balancers with DELETED provisioning_status and deletes them
from db if they are older than load_balancer_expiry_age. Corresponding
VIP entries are deleted in cascade.
Added new config option `load_balancer_expiry_age` to the `house_keeping`
config section.
Also changed the default value of exp_age argument to
CONF.house_keeping.amphora_expiry_age in check_amphora_expiry_age
method.
DocImpact
Closes-Bug #1573725
Change-Id: I4f99d38f44f218ac55a76ef062ed9ea401c0a02d
Neutron has added and removed [1] the dns integration extension
as enabled by default. This patch tells Octavia to check the
neutron extension list to see if the dns integration extension
is enabled before preparing a neutron port for failover and formating
the request appropriately.
Closes-Bug: #1597451
Change-Id: I15f7cb50642616f87fc8fb5bcb2af1c2e849264d
Creating separate elements per-distro is an anti-pattern for DIB. This
leads to a lot of code duplication across all the elements being used.
In DIB we try and create facilities to allow elements to easily perform
cross-distro tasks so this isn't necessary.
Change-Id: Ie3018eacfa0e2726449cfb580ded09d027bed349
There are some new facilities in DIB which simplify our element code -
declarative package installs, automated init script installation.
Change-Id: I8b91325999af5cfc9e455c4d6228453d8567c919
The 'topology' is already been checked in both
octavia.controller.worker.flows.load_balancer_flows.get_create_load_balancer_flow
and
octavia.controller.worker.flows.load_balancer_flows.get_post_lb_amp_association_flow
Change-Id: Id6f9ac2a2b880542392581113bcc76550ae41f62
Octavia is using graph_flow to handle building Amphora if there are
no spares. More details can be find:
octavia.controller.worker.flows.amphora_flows.AmphoraFlows.get_amphora_for_lb_subflow
The comment message for 'create_load_balancer' in ControllerWorker
is not correct.
Change-Id: I9cfafd96076416c86462b333fe6e6f6abfa3fb97