516 Commits

Author SHA1 Message Date
Bertrand Lallau
c4dd8b89fd Enable automatic sample config generation
- Added an entry_point for oslo config generator
- Added a script to enumerate config options
- Added a tox target to invoke config generator

Change-Id: Ibc66efd103e790a73ef6389817e099ede65d4f32
2015-08-28 11:29:19 +02:00
Jenkins
41cd509270 Merge "Correct rabbit messaging config set in devstack" 2015-08-28 09:03:33 +00:00
OpenStack Proposal Bot
b88f689ba7 Updated from global requirements
Change-Id: I6e6c12854fd0ba7244697ea6103db9337bf6aa0a
2015-08-27 04:17:43 +00:00
Jenkins
1c5389bd71 Merge "Updated from global requirements" 2015-08-27 02:23:14 +00:00
ptoohill1
8f223a3a66 Fixes for WSME updates
WSME released version 0.8.0 which included a few API breaking changes.
These changes resulted in additional validation of our API definition and
is a good thing as things that should have been caught in testing are being caught now.

Email thread:
http://osdir.com/ml/openstack-dev/2015-08/msg01687.html

Culprit:
https://review.openstack.org/#/c/182761/7

Change-Id: I782545d135d622ce8238ec71695ebc342e68bcf7
2015-08-26 12:40:54 -05:00
OpenStack Proposal Bot
71d9e9b87f Updated from global requirements
Change-Id: I581448920a536a07973bc8f4c4c80218ceaf342a
2015-08-26 14:03:21 +00: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
Cedric Brandily
845165f311 Ensure mocks are stopped during test cleanup
Some tests start mocks[1] but never stop them! This change updates
Octavia testcase base class[2] in order to ensure all mocks are stopped
during test cleanups.

[1] self.worker_patcher in
    octavia.tests.unit.controller.queue.test_endpoint
[2] octavia.tests.unit.base.TestCase

Change-Id: I30805c729da6a43c028d7df118d26dfe85f000ed
Closes-Bug: #1488586
2015-08-25 18:56:33 +02:00
OpenStack Proposal Bot
aa2bdc50e6 Updated from global requirements
Change-Id: Ic6037891a4b8f86cf17c69d0333646b00e4d4825
2015-08-23 05:27:30 +00:00
OpenStack Proposal Bot
dfeea9ba13 Updated from global requirements
Change-Id: Ic993676985eb2819a4bae99513616070d71fa945
2015-08-21 05:12:38 +00:00
Brandon Logan
cfe191b737 test_plug_vip not testing properly in py34
Not sure if this is actually the fix, but by passing a pure NotFound as
a side-effect, the building of that exception actually fails, which
causes the test to fail (as expected) but not for the reason expected...
NotFound expects at LEAST code=<response_code> and optionally a message.

Change-Id: I0a8539da164074249aa93b70d2cf5af72d1036b4
2015-08-20 17:43:28 -05:00
Jenkins
b4cc0c6b83 Merge "Check for port ownership on vip deallocation" 2015-08-20 22:34:28 +00:00
ptoohill1
6147bfe765 Fixes missed refactoring of barbican client
Renamed barbican client to be more generic in several places
and missed an important one.

Change-Id: I81e436f9b02b83b40bbcebe71c839fbae6559d98
2015-08-20 15:41:55 -05:00
Brandon Logan
e9c60cc132 Check for port ownership on vip deallocation
The code was checking the tenant to determine if octavia had created the
vip port or not. If it did create the vip port then it would delete it, if not
it would not delete the port. Since neutron-lbaas merged a change that set
the device_owner appropriately on the port, we can now check device_owner for
ownership. This also adds octavia as the device_owner of the vip port if
it does create it and sets the device_id to the load balancer's id.

Change-Id: I12adf2824c77f633be7499f120e6f5b3a9c326ef
2015-08-20 15:30:46 -05:00
Jenkins
9609f199ca Merge "Setup base neutron network driver" 2015-08-20 19:04:04 +00:00
Jenkins
9f01290356 Merge "Add Housekeeping to manage spare amphora and DB cleanup" 2015-08-20 18:45:26 +00:00
Brandon Logan
c7617ff992 Setup base neutron network driver
There are common methods that all neutron based network drivers will most
likely implement the same way.  To prevent duplicate code, a common base driver
for all neutron drivers has been created. In the process of splitting this out,
cleaning up of some existing code was done as well.

The network driver's plug_network and unplug_network methods took an
amphora_id as a parameter, but it was always assumed to be the compute_id.
This parameter has been changed to compute_id.

The octavia interface network model originally had just a single ip_address,
but to more accurately reflect what neutron and probably other networking
as a services will return, this has been changed to fixed_ips because
interfaces and ports can have multiple ip addresses.

Other cleanup includes calling the network drivers own get_network, get_subnet,
and get_port methods instead of calling the neutron client's show_network,
show_subnet, and show_port methods.  Also, all of these changes required some
test changes as well.

Change-Id: Ie6ebc5bc8babe8562c280ba12a1feab21b4ff3f9
2015-08-20 12:57:05 -05:00
OpenStack Proposal Bot
dd598ffd06 Updated from global requirements
Change-Id: I43eb8b4b242db72bbc01e77689c7afb50d5b86ba
2015-08-20 11:24:02 +00:00
bharath
d74ef6b138 Add Housekeeping to manage spare amphora and DB cleanup
Updating config file to include attributes for spare check and db cleanup
Validate the spare amphora count and create new ones when needed
Perform DB cleanup of the expired amphora

Implements: blueprint housekeeping-manager
Change-Id: I98990fbd3a3cb281a70e0eab97f256c960ca5dcb
2015-08-20 03:04:18 -07:00
Jenkins
539310db95 Merge "Correct shebang in create_certificates.sh" 2015-08-20 08:33:24 +00:00
Bertrand Lallau
be095e5e57 Correct shebang in create_certificates.sh
Change-Id: Ifaca8a29532269c2cbf929c7be8adfb73ca49400
2015-08-19 16:17:52 +02:00
ptoohill1
afff3b3c74 Updating cert_parser for cert loading
Will now load certificates with the provided cert manager.

This allows multilple driver implementations to reuse code
in regards to loading the certificate data from the certificate
manager, e.g. Barbican cert manager.

Change-Id: Id20acf49753c3f75b4152d351412e93394e72b17
2015-08-18 21:14:23 -05:00
Jenkins
71e5725a7f Merge "Updating ssh driver with root user check" 2015-08-18 22:22:24 +00:00
Jenkins
4f996d000a Merge "Correct usage and configuration of CertManager/Generator with Stevedore" 2015-08-18 22:22:09 +00:00
OpenStack Proposal Bot
4380e797c5 Updated from global requirements
Change-Id: I7dadd68c1a4dcfbb3579e712b55a9d349ca898d8
2015-08-17 22:39:39 +00:00
ptoohill1
fe9f506a07 Updating ssh driver with root user check
In some cases a root user cannot run commands with sudo, check
for it

Change-Id: Idcd18764d287305713f0ba14bb65680480b9bec7
2015-08-17 15:16:46 -05:00
OpenStack Proposal Bot
37112abdd4 Updated from global requirements
Change-Id: I84a8686866094e18c770428721485732beccc9e4
2015-08-14 08:20:16 +00:00
Adam Harwell
77125839d5 Correct usage and configuration of CertManager/Generator with Stevedore
Change-Id: Id6371adf104a860e8926b676c8f6842c5c076abf
2015-08-13 19:13:22 -05: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
32b5d95512 Merge "Fixes REST driver json encoding" 2015-08-13 23:20:37 +00:00
Michael Johnson
a27a19ceae Fixes REST driver json encoding
The REST driver had an issue with json encoding.
This patchset fixes that issue and adds an assertion
that will cause the tests to catch future encoding issues
with the json encoding.

Change-Id: I723a978dd42282289e25de7077897cccd017df42
2015-08-13 23:01:53 +00:00
OpenStack Proposal Bot
ef5e3b9fcf Updated from global requirements
Change-Id: Ib7ecd2093025896e4de27fd013b80612384badb6
2015-08-11 01:37:46 +00:00
OpenStack Proposal Bot
82fd07bb76 Updated from global requirements
Change-Id: I6cb59b69af6a692391522f85d2434c66da4edf19
2015-08-10 01:09:09 +00:00
Jenkins
edc4907065 Merge "Adds the reload on cert change" 2015-08-07 21:48:30 +00:00
Jenkins
6a49846965 Merge "Blueprint: Active/Standby Amphora Setup using VRRP" 2015-08-07 05:14:03 +00:00
German Eichberger
0df52a7a84 Adds the reload on cert change
Adds the functionality to reload the REST agent  when
the certificat to communicate with the controller
changes.

Change-Id: Ifda7ddce5979237b8c00a22a24f73d3c6f993f07
2015-08-06 08:43:07 -07:00
Jenkins
d1e7d31b55 Merge "Adds policy based routing for the amphora" 2015-08-06 15:17:43 +00:00
Jenkins
a84bd7e56a Merge "Fix member creation when retrieving network" 2015-08-05 21:12:48 +00:00
Jenkins
6593e458d5 Merge "Better parsing for HAProxy stats_socket data" 2015-08-05 21:12:32 +00:00
Michael Johnson
fcc5dcf6e0 Adds policy based routing for the amphora
1. Creates a new element for pyroute2
2. Adds this element to the amphora image
3. Updates the amphora REST interface to pass additional network information
4. Creates the policy based routes and rules on the amp during plug vip
5. Updates the REST API spec

Change-Id: Ibd622ec302cf78c12ae2bd5d76d012ab619939a6
2015-08-05 17:27:56 +00:00
Adam Harwell
6f1101da96 Better parsing for HAProxy stats_socket data
Change-Id: I8df695061cade05cae3d540e395051580803ff42
2015-08-04 20:56:10 -05:00
OpenStack Proposal Bot
d910a45eca Updated from global requirements
Change-Id: I674b802253aab6dee6a592b6ab3e857495f0d323
2015-08-04 14:25:13 +00:00
Jenkins
46660c34cd Merge "Exclude virtual interfaces for collecting stats" 2015-08-04 04:35:31 +00:00
OpenStack Proposal Bot
ae855fd34e Updated from global requirements
Change-Id: I31499c3749c92dbfee7b2a38ed30bd66346a721a
2015-08-04 00:56:30 +00:00
Brandon Logan
9cd07f2e86 Fix member creation when retrieving network
When a member is created there must be some calculation to determine what
networks the amphorae need to be plugged into.  This calculation needs to
retrieve network information.  How it retrieves information was based on an
old version of the network driver and was missed during the network driver
decoupling refactor.  The calculate delta method now calls the get_subnet
method of the member's subnet_id attribute.

Change-Id: I65da3ae5f02b991fb6aad5a267dc02b0572b35fd
2015-08-03 18:36:26 -05:00
Banashankar K Veerad
4b701c6ce9 Exclude virtual interfaces for collecting stats
The /details api provides details about the amphora VM.
It reads the interface's statistics file
/sys/class/net/{interface}/statistics/{type}_bytes
to collect all the stats. While doing so it tries to read the
stat files of the virtual interfaces like eth0:1 also,
which are not available and throws an exception. This
fix excludes virtual interfaces while collecting the
stats by checking whether the interface name has : in it

Closes-Bug:1466688
Change-Id: Ie2786f18b96881ba600a338bcad916677709a5b3
2015-08-03 16:31:58 -07:00
Stephen Balukoff
6d88d6a347 Fixing a couple minor terminology errors
Since I'm updating documentation anyway, and as these fixes don't
fit well into v1 or v2 design documents, I figured a small commit
here to correct the 'VM' terminology to be 'amphora' where
appropriate is called for.

Change-Id: I5f62f9fb62534f48de3d761c64419c08c66fed64
2015-08-03 15:24:01 -07:00
Jenkins
a98e5d708f Merge "Hooking TLS together" 2015-08-03 18:39:25 +00:00
Jenkins
af341f9fd8 Merge "Adds method to update server.pem to Amphora REST spec" 2015-08-03 16:21:55 +00:00
ptoohill1
5ad396cbb2 Hooking TLS together
Updated components to support TLS

Change-Id: Ia75e1d85709d37fc8cc6a7bba2f59684ce9b76ba
2015-08-01 20:12:52 -05:00