Modified flows to receive appropriate arguments for flows to complete
Added task to delete listener from DB
Modified deletion tasks to remove listener from the DB rather than update to DELETED
Added tests for new task
Change-Id: I4e7c0310de13b5dab0f7a382b9c81a0b0c6e72ad
Closes-Bug: 1459001
The plugin.sh script should refrain from using apt-get directly.
By doing so, package installation (in our case qemu and kpartx) fails
for non ubuntu distributions.
This Fix uses the install_package wrapper function, which is part of devstack.
Change-Id: Ie602fbb6f7a39ceff11354ee95d99fe1e267a4ed
Closes-Bug: 1465618
Updated tasks in delete flow
Added more constants to keep flows consistent
Updated model methods to define a deletion step
Updated unit tests
Change-Id: Icf22c36cbdf0e3f95b56876c776524958090bdf2
Closes-Bug: 1458242
Octavia should not attempt to delete the vip port if the port was previously
created by another service and its id was passed to Octavia. It is that
service's responsibility to delete it.
Change-Id: Ia233349e0ade804a2b02145e9ae91b7d3d3e57ce
Closes-Bug: #1464948
The allowed address pairs driver did not appropriately calculate what ports
should be removed upon a listener deletion. It does now by removing any
protocol ports of a listener that is in PENDING_DELETE provisioning_status.
Change-Id: Ice5224d9a9af51a981ee2efad792f037204fba7b
Closes-Bug: #1464954
Updated files to use openstack instead of stackforge
Updated devstack samples to not point to old references
Change-Id: I501d76173475bb1619006819d971493854fdd15c
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