74 Commits

Author SHA1 Message Date
Brandon Logan
8e24232371 Setup health manager networking for devstack
When running the health manager on single host devstack machine, the
hosts IP cannot simply be used as if the health manager is running
on a host by itself.  The solution here is to create a neutron port
on the lb-mgmt-net which sets up necessary ovs ports and also
reserves an IP.  Then the script creates an ovs port for and sets
and interface with the information the neutron port create allocated.

There are some flaws with this but its a starting point and can and
probably will be improved on in the future.  However it works for
now.

Change-Id: Ic3d3d1d63a5cc352c5fc00dea58bb16915754a7c
Closes-Bug: #1490033
2016-01-09 00:22:54 -06:00
James Arendt
ce21995319 Make Octavia devstack pass env settings to sudo pip install
Current code to install diskimage-builder requirements in
devstack does not pass on enviroment settings to sudo, which can
cause the pip install to fail behind a proxy.

This happens when the user has http_proxy/https_proxy values set
but not for root.  The stack.sh runs and installs for a while,
before failing on the Octavia diskimage-builder.

Change-Id: I196aca7004ea0eed713877e54ba10dcfe1d343e7
Closes-Bug: #1526108
2015-12-10 07:40:16 -08:00
Michael Johnson
887012f1d4 Add environment varible to skip amp image build
This patch adds an environment variable check in the devstack
plugin.sh script that disables the amphora image build process.
This will be used by gate test jobs that test against the noop
driver and do not boot amphora.

Change-Id: I6faf2f4d853972f7e700122444da202bdba2dc64
2015-10-16 00:13:54 +00:00
Brandon Logan
01abc3f34c Allow drivers to be overridden for devstack
Change-Id: Ia26bd8cb28dccbb021b2a2f64a9b7e6ef498ff4c
2015-10-01 01:39:36 -05:00
Michael Johnson
0000908ab0 Don't build amphora image if one is available
The devstack plugin.sh script will always build and load an
amphora image.  This patch checks for an existing amphora
image and if one exists it will not build another.

Change-Id: Ifce40b0af9da715d44bab8ec437f844ccf638f52
2015-09-18 03:44:30 +00:00
Brandon Logan
fd0301a5a7 Default controller_ip_port_list option to empty
Also, change a mutable default in the ComputeCreate method.

Change-Id: Ifb90c4a4064500a07fe2243187e4b5fefe6ee899
Closes-Bug: #1490707
2015-09-11 13:32:07 -05:00
Jenkins
9cf4fe4b75 Merge "Implement UDP heartbeat sender and receiver" 2015-09-10 16:01:09 +00:00
minwang
c511b2f195 Increase connection_max_retries to be 300
We also set request_poll_timeout to be 3000 in neutron.conf;
This can help to resolve the error for could not ssh to instance for octavia gate-setting.


This patch is needed by https://review.openstack.org/#/c/209675/


Change-Id: I90002a8913dd7db375ff5740a3f9cd5566b82054
2015-09-09 18:16:22 +00:00
Carlos D. Garza
ccd7865350 Implement UDP heartbeat sender and receiver
Used binary compressed encoding of json dumped object. To reduce
the size needed to send heart beats incase some stats objects
start getting sent later on. Also used sha256 instead of sha1
with hmac.

Co-Authored-By: Michael Johnson <johnsomor@gmail.com>
Co-Authored-By: German Eichberger <german.eichbeger@hp.com>
Co-Authored-By: Carlos Garza <carlos.garza@rackspace.com>
Partially implements: health-manager
Change-Id: I932c693101b94c9132e1741291610508876eab43
2015-09-09 06:48:24 +00:00
Jenkins
c15689a25b Merge "Switch to OSC for devstack (keystone client deprecated)" 2015-09-04 22:19:40 +00:00
Adam Harwell
a050d426eb Switch to OSC for devstack (keystone client deprecated)
Change-Id: I503a7494d1e20f78dda402737eea1d4ae6d45ee1
2015-09-04 14:36:01 -07:00
Michael Johnson
26e43bec11 Set the Amphora REST driver as devstack default
Change-Id: I11eee8062ed1e61accef6e9e9f6eeb032cdf9466
2015-09-01 19:32:48 +00:00
Jenkins
11d682870b Merge "Increase the amp active retries to be 500 times" 2015-08-29 18:28:37 +00:00
minwang
1271d5653f Increase the amp active retries to be 500 times
By increasing te times of amphora active retries,we are targeting for octavia gate setting to work.

Change-Id: If81cc13966a0a24368225b89c9678f6b0fdc1a7b
2015-08-28 13:41:52 -07:00
Bertrand Lallau
4bd3b20083 Correct rabbit messaging config set in devstack
Config section [oslo_messaging] used to set rabbit config is wrong and not used anymore.
New section [oslo_messaging_rabbit] must be used.

Change-Id: Id06bcdfbfecda202bff13915c4f020bc00e19c3c
2015-08-26 10:11:38 +02:00
Adam Harwell
8669340ffc Fix a typo in the devstack plugin.sh which caused a truncated error
Change-Id: I5ad319c43319844944b7675be184eacd0ae8c627
2015-08-13 18:22:16 -05:00
Jenkins
15128a6f40 Merge "haproxy reference amphora REST API client" 2015-07-02 02:16:38 +00:00
German Eichberger
0abcbc4f7d haproxy reference amphora REST API client
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
2015-06-29 09:08:37 -07:00
minwang
d978263786 Add content for octavia in plugin.sh and settings
The purpose is to make sure the service provider is pointing to octavia
instead of lbaas v2.

Change-Id: I2b315edae15606b0706e49e123db067d7cd67056
2015-06-26 16:06:55 -07:00
nmagnezi
d0f9a5ccdc Fix the devstack octavia plugin for non ubuntu distributions
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
2015-06-16 14:24:39 +03:00
German Eichberger
40440b8a0b Implements the haproxy amphora agent api server
- 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
2015-06-02 18:13:39 +00:00
ptoohill1
df6f5b4a56 Updates devstack plugin to add service endpoint
Updates plugin.sh with method to add octavia service endpoint
Updates settings for protocol and port

Change-Id: Ie2a36f7a7f487c411d35f4a39cae336090caad33
2015-05-13 01:53:26 -05:00
minwang
e4beb4edad Edit the plugin to add alembic information
Add the alembic migration information in plug.sh.
Closes-Bug:1450523

Change-Id: I5e63076e8e119d9eaa02845105d6d6d469c2a48e
2015-05-07 15:33:38 -07:00
Al Miller
4ac7376c2f Add devstack plugin for octavia
Co-Authored-By: Phillip Toohill <phillip.toohill@rackspace.com>

Change-Id: I9f8c87cd39ef59db71fe3a93b09f905f71dd2feb
2015-05-06 15:31:45 -07:00