Adding VIP unplug
Adding ComputeDelete task to delete an amphorae on load balancer
Updated unit tests for new tasks
Change-Id: Ie26235314389607f33cfde69904ed3fae940360f
Closes-Bug: 1458998
- Added configuration
- Added uploading of haproxy config
- Added start, stop, reload (async)
- Added get_details
- Fixed returns of API -- they are now all spec conform
- Added info, get haproxy file
- Added function to get listener status
- Added class to parse haproxy stats socket
- Added methods to handle certs
- Added client cert validation to the sever
- Added script to generate example certs
- Added init script for agent
- Added network and vip plugging
- Added devstack stuff
- Added diskimage scripts; upstart ini file
Change-Id: Ib1db8da9e019e68e9a0f4a16a622b8b1286afd3e
Implements: blueprint amphora-api
The current settings file has a hard coded admin username
and password. This change pulls the admin password and username
in from the devstack environment.
Change-Id: If2bbd62fa4c92ac1b26d0aaf74e0cd26c553fa75
"true" now passed the boolean test in wsme, so I changed the invalid
data test to use "notvalid" instead of "true"
Change-Id: Ia0a47921100fb6bc3d91d322bfa2e8001b266133
Added 'sudo' to 'rm', 'mkdir', and 'kill' commands throughout the driver.
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>
Change-Id: Id53490b50ff122b7a95ba5b0182714ab918a4705
Queue producer handler was not sending pool_id, it was sending a healthmonitor
id instead, which doesn't exist. Changed queue consumer and controller worker
to relfect this change as well. Also had to handle None expected codes better
in jinja config.
Change-Id: Icbd6e4f34ddba107af529634400eb41ad4cb9d38
DevStack will error out during the install with the current
configuration. This change puts stub services in place so that
DevStack will not error out during the install.
Change-Id: I4d053de933f5d6a576f09fc46e41cc305106ed29
Some update happened (not exactly sure where) that stopped converting
strings to unicode to validate ip addresses.
Change-Id: Ibccc32be24a5e93e0ee3186d171f2ac0f0fcb40e
If there was no interface to raise, it would insert bad data into
the interfaces file. Also, execute ifdown first before ifup for
sanity that prevents some inconsistent successes and failures.
Change-Id: I96d552e0f46ebbdfd9827b9b9c818e5c561699b1
Member has subnet_id and we need to compare with network_id.
In order to do this CalculateDelta task now takes in a load balancer
loops through the amphora, collects the plugged networks
and gathers the network_ids from member subnet_ids and
builds the list accordingly.
Updates network_tasks CalculateDelta
Updates network_tasks adding method to handle deltas
Updates driver adding method to get network
Updates tests, spec and other required code
Change-Id: I698625e4e2e7352cb3000e22de808c33fa7636ed
Updates plugin.sh with method to add octavia service endpoint
Updates settings for protocol and port
Change-Id: Ie2a36f7a7f487c411d35f4a39cae336090caad33
There needed to be a method to update the security group rules whenever
a listener is added or removed. The update_vip method will not update those
rules based on what listener's are present.
Also changed the allocate_vip method to take in a load_balancer instead of
port_id, network_id, and/or ip_address. The reason for this is some driver
implementations may just want the vip to be the IP directly on the amphora.
The previous signature did not allow this.
Closes-Bug: #1453609
Closes-Bug: #1453610
Change-Id: Ie5765c231c6f6ba45042db9b111e6814cf50c465
A task was saying it provided LOADBALANCER but it wasn't returning
anything, so it overwrote the LOADBALANCER with None.
Change-Id: I8274832b5bfbabdf29f2491a5a7591e0817f6345
Closes-Bug: #1453945
Also renaming queueworker.py to controllerworker.py to be more
obvious what it is. This patch should complete the api to queue to
controller worker workflow (i.e. it should work).
Change-Id: Id924e83674dab1a5f13e57533dd5272c3d667b7d
Closes-Bug: #1452141
Update haproxy_amphora section with sane defaults
Fixed inconsistency with example conf
Updated controller worker and test to reflect updated config option
Change-Id: Ib178df4476bab3fa220c6955dc57c49e4d8f1066
The load balancer flow needed to use updated load balancer
data model objects for the networking sub flow.
Change-Id: I5b87ef7ab17579721950e943d13fb46405e0b072
Closes-Bug: #1450621
Remove ipaddr and simpledispatch as they are dependencies pulled
in by WSME and pecan.
Since these requirements are not part of global-requirements a
build error will occur with devstack attempting to sync the requirements
that can be prevented by removing requirements that should be
pulled in by other packages.
Change-Id: Ib83afb4f11e478764f80a2fa8c0f47903ff999a2
Adds config value to retrieve key for amphora access
Adds a HAProxyManager class with methods to modify/delete/start/stop an amphora
Modified sample_config to include amphorae on load balancer
Change-Id: I3fc2423a480ecc4b1b732a83fa1d4981c213da47
Implements: blueprint bp/haproxy-amphora-driver
The config loading code for keystone v3 authtokens
require domian paramters, but the keystone middleware
currently doesn't have those configuration options.
This fixes the config loading for the domains.
Change-Id: Ieb1571e64ef52b8e48fe21883d3c9f57c8402a54