Adds rest driver methods
Adds rest driver tests
Add cert task for generating server certs
Modified compute task/flow
Fixed local certificate stuff
Refactored to use requests-mock inetad of responses
Added a "conditiobal flow" for REST
Cleaned up and changed the code to work with
https://review.openstack.org/#/c/160034/
Replaces:
https://review.openstack.org/#/c/144348/https://review.openstack.org/#/c/145637/14
Change-Id: Ibcbf0717b785aab4c604deef1061e8b2fa41006c
Co-Authored-By: Phillip Toohill <phillip.toohill@rackspace.com>
Co-Authored-By: German Eichberger <german.eichberger@hp.com>
Co-Authored-By: Stephen Balukoff <sbalukoff@bluebox.net>
Implements: bp/haproxy-amphora-driver
At some point a VAR we depended on was removed or changed upstream. This
patch updates to fixes that so the users fields are populated again.
Change-Id: Ie58b478d13b758e020df0655e6e3462ab4755f9a
Updated model to include a deletion method
Modified store for tasks to delete member appropriately
Updated database task to include parameterized database request
Updated tests
Change-Id: I8c5c619c29f2dc565edd340a27dde2861ec4cab9
Closes-Bug: 1458241
Remove pre-version setting so we can rely on tags for library
versioning.
Change-Id: I3c04247f096c63c63d5c8fce1f0d955bcbc620e7
Signed-off-by: Kyle Mestery <mestery@mestery.com>
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: Ib9106f86b1a04825c24bb2be284c17590f941d3c
Update controller_simulator handler to behave clearly through operations
Update handler interface to utilize ids instead of full objects
Update controllers to utilize new handler parameters
Update tests to follow new controller behavior
Update queue producer and test to include data_models for updates
Change-Id: I3423ccf5b3e3c0810d000454df984fca4ec4dbbd
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