2888 Commits

Author SHA1 Message Date
Jenkins
0b7f10c84c Merge "Fixed post_network_plug issues" 2015-05-14 19:45:02 +00:00
Brandon Logan
0cdc767a52 Fixes issue with non-unicode ip addresses in wsme
Some update happened (not exactly sure where) that stopped converting
strings to unicode to validate ip addresses.

Change-Id: Ibccc32be24a5e93e0ee3186d171f2ac0f0fcb40e
2015-05-14 14:04:26 -05:00
Brandon Logan
0da1718cda Fixed post_network_plug issues
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
2015-05-14 02:07:51 -05:00
Jenkins
1feff6d861 Merge "Update vip and network plug methods" 2015-05-14 05:42:58 +00:00
ptoohill1
8cfdb9d116 Updating member flow
Adding ability to plug networks when creating member.

Change-Id: I48fcb64839f46e4ce0754cd9b25b47cd13b7fd75
2015-05-13 18:29:20 +00:00
ptoohill1
a3f53841f8 Updates for calculate delta task
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
2015-05-13 13:28:52 -05:00
Jenkins
88049e87ae Merge "Added update_vip method to network driver" 2015-05-13 18:18:33 +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
Brandon Logan
913b6a8514 Added update_vip method to network driver
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
2015-05-12 22:02:36 -05:00
Jenkins
6fabda08dc Merge "Fixed a parameter issue for config drive files" 2015-05-12 22:53:31 +00:00
Brandon Logan
abc0374960 Fixes issue where loadbalancer is None in flow
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
2015-05-12 14:47:32 -05:00
Michael Johnson
b03a4d08b2 Fixed a parameter issue for config drive files
The parameters passed to novaclient create for config drive
files and user data were incorrect.

Change-Id: Ic7e2a1a32600194959d0c02179bbb0986bfe1413
2015-05-12 17:54:12 +00:00
OpenStack Proposal Bot
260c78f9b8 Updated from global requirements
Change-Id: I8913f0acdf73efeb2c4eaa2fcb36c33e062a4ce7
2015-05-11 14:05:11 +00:00
Michael Johnson
6210f76749 Fix a bug in the amphora create revert
There was a missing logging parameter that caused the create
amphora flow to fail during revert.

Change-Id: I3d61221476a0a9317afc64446f32e5143727e0a5
2015-05-08 18:31:44 +00: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
Brandon Logan
0837da18a7 Fixed various issues with create lb and amphora flow
Closes-Bug: #1450520
Closes-Bug: #1450524
Closes-Bug: #1450621

Change-Id: Ibc347dec4bebe10e0c7603bfa6b09833c84f181f
2015-05-06 23:54:46 -05:00
Jenkins
00d37ef490 Merge "Fix queue producer handler to send ids" 2015-05-06 22:49:56 +00:00
Brandon Logan
9226b29187 Fix queue producer handler to send ids
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
2015-05-06 17:37:45 -05: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
Jenkins
88228c4272 Merge "Fixes load balancer create flow issue" 2015-05-04 22:18:59 +00:00
OpenStack Proposal Bot
470a356ada Updated from global requirements
Change-Id: I3389086c44309b5f9100b3fae61552d0e9038ada
2015-05-04 21:13:02 +00:00
ptoohill1
987480156e Fixing inconsistencies and applying sane defaults
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
2015-05-04 12:11:45 -05:00
Trevor Vardeman
3fc14d164c Update vip and network plug methods
Change vip and network plug methods to stop if no interface is DOWN

Change-Id: Ife677ed1a488be49437197f6db1a6a8fa903819b
Closes-Bug: #1011848
2015-05-04 11:14:10 -05:00
Jenkins
f24a5b9595 Merge "Update nova_driver to use amp_network" 2015-05-01 20:28:14 +00:00
Jenkins
991e0053f8 Merge "Remove extra requirements" 2015-05-01 20:27:33 +00:00
Michael Johnson
659219d311 Fixes load balancer create flow issue
The load balancer flow needed to use updated load balancer
data model objects for the networking sub flow.

Change-Id: I5b87ef7ab17579721950e943d13fb46405e0b072
Closes-Bug: #1450621
2015-04-30 23:21:30 +00:00
Jorge Miramontes
65e361613e Implemented Queue Consumer
Co-Authored-By: Jorge Miramontes <jorge.miramontes@rackspace.com>
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>

Change-Id: I6e739506f29aa4131d7f3626a66f3ac6ea816863
2015-04-30 16:48:09 -05:00
ptoohill1
7cd76047e6 Update nova_driver to use amp_network
Updates transform method to use amp_network id instead of name

Change-Id: I0a04b93d66b87d92adaa80bf5ec9953c5fc10b97
2015-04-30 10:20:07 -05:00
ptoohill1
a65c89a3bf Remove extra requirements
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
2015-04-29 18:33:58 -05:00
Michael Johnson
424c320b01 Implements Octavia Controller Worker
Co-Authored-By: Aishwarya Thangappa <aishwarya.thangappa@gmail.com>
Co-Authored-By: German Eichberger <german.eichberger@hp.com>
Implements: blueprint controller-worker
Change-Id: If44a70d6ada43673d827987081e7c760598523bd
2015-04-29 21:34:07 +00:00
Trevor Vardeman
fac74ad2d6 Amphora SSH Driver
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
2015-04-29 16:22:55 -05:00
Jenkins
62b34038fb Merge "Fixes a config load bug for keystone v3 domains" 2015-04-29 20:53:31 +00:00
Michael Johnson
3567965154 Fixes a config load bug for keystone v3 domains
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
2015-04-29 17:38:40 +00:00
ptoohill1
a062968d2b Removes include_members from jinja_cfg
The include_memebers check is not required

Change-Id: Ib758a834f24d97e6e281975272ebdf4cf7320d54
2015-04-28 23:57:49 -05:00
minwang
321bc765ae Fix Octavia complexity issues
This is for fixing the octavia issue.
We ran the Octavia code base through a static code analyser and several issues got flagged.
As an exercise we looked at each issue and are now proposing fixes to the complexity/code style issues.

Change-Id: I2fc0cf213a9f7488e7cf1dff789d98ca2deeb81f
2015-04-28 13:17:10 -07:00
Brandon Logan
a48ccb03fb Fix ups so pbr and setup works
Moved octavia/bin directory to octavia/octavia/cmd and renamed octavia-api to
api.py.  This follows the new strucutre most openstack projects are doing.
Also implemented octavia-api being built when doing setup install.

Had to remove the octavia/tests/specs symlink because pbr did not like it and
would not allow anything to be built. Also found out the test_titles test was
not being run on the specs, so that has been added as a separate tox
environment.

Change-Id: I92f2bc6eaa346983f7a2479dc9fa43d2040f2cd5
2015-04-23 16:04:27 -05:00
ajmiller
08e95875b8 Fix "Revises" comment to be consistent with reality
Change-Id: If8f8995d2acbab41026a06338941b746196df6e4
2015-04-23 10:49:00 -07:00
Jenkins
9360f32ef8 Merge "Added neutron allowed address pairs network driver" 2015-04-23 02:09:55 +00:00
ptoohill1
6c85431e53 Use stevedore to load API handler
Updates controller base to load handler via stevedore
Updates setup.cfg with entry point
Updates octavia.conf for api_handler default example
Updates config.py for api_handler
Updates requirements.txt for stevedore

Change-Id: I67e3da376fad1d48cec7f56f990c4b13ac7f4b83
2015-04-22 17:59:14 -05:00
Jenkins
fc5eb91a68 Merge "Adds plug VIP and plug Port to spec" 2015-04-22 20:47:57 +00:00
Jenkins
4d53679f0e Merge "Added vrrp_ip and ha_ip to amphora models" 2015-04-22 20:25:58 +00:00
German Eichberger
1c15a79ebf Adds plug VIP and plug Port to spec
Change-Id: Ic983b184ecac5a37994ee4115a026b42224c3e1a
2015-04-21 14:36:34 -07:00
Michael Johnson
b88d5ee53b Fix the common/keystone.py for identity v3
tenant_name is no longer accepted for the v3 client authentication.
This patch updates that to project_name which is accepted on v3.

Change-Id: Iccc460c1a4bae10ff530ce09888b877bfd5c39f4
2015-04-21 00:38:46 +00:00
Jenkins
c9494a83a2 Merge "Allow id to be added in POSTs for all entities" 2015-04-17 00:16:40 +00:00
Brandon Logan
44bda48a91 Allow id to be added in POSTs for all entities
This is to allow neturon-lbaas to be able to give its own ids so it
can know what id octavia is tracking.

Change-Id: Id49c7971894228fdf56189df86175fd35c6ed5ca
2015-04-16 16:31:44 -05:00
ptoohill1
03f1d5d88c Updates service and config for Octavia API
Updates bind_port default to something not already used(hopefully)
Updates prepare_service to follow oslo_log new behaviour
Updates octavia.conf bind_port default

Change-Id: I399aeb200bccb97ada4e8d59ac7b3ffb0646fb6d
2015-04-16 01:27:28 +00:00
Carlos D. Garza
939e685d96 Switched from sha265 to sha256 in octavia.conf
Seems sha256 is more popular then sha265.

Change-Id: I19eec93410973d68f5d221a7964211e8af06c2d8
2015-04-15 16:17:26 -05:00
Michael Johnson
8c9ee6d230 Corrected some __init__() parameters
Removed log from __init__() parameters
Removed get_logger methods
Updated specs for above
Added optional region parameter to noop compute driver

Change-Id: Ie3ed4ebb5d0407cb18f7cf957334dab4bb821bf7
2015-04-13 23:03:54 +00:00
Jenkins
5bd04f8471 Merge "Fixed sessionpersistence and healthmonitor refs" 2015-04-13 19:26:23 +00:00
minwang
0a49aa4b31 Add compute noop driver and test case
1. implement methods in noop_driver/driver.py
2. add unit test class in test_compute_noop_driver

Change-Id: Ifc31c7d819ededd7f350cd1d4207ffd48c49a8bb
2015-04-13 11:45:14 -07:00