1952 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
0ac6a75420 Updated from global requirements
Change-Id: I7ec6333f72229a63af6819ec9ba5488450ee592c
2017-11-16 11:16:46 +00:00
Zuul
3bf9d1240e Merge "Fix member operating status when add/remove HM" 2017-11-15 23:46:20 +00:00
OpenStack Proposal Bot
e50d953d10 Updated from global requirements
Change-Id: Ic2ec8033743569400a40d0bfd513947ea41390ac
2017-11-15 11:53:48 +00:00
Nir Magnezi
89528bf047 Fix gate breakage: unit tests
This breaks our gates and fail test_build_user_data_config

Change-Id: I32bd0d3910a014dd4972450ed50d9a9aaad24628
2017-11-14 08:57:17 -08:00
OpenStack Proposal Bot
825276d0e2 Updated from global requirements
Change-Id: I9ef9336a3067b0fdb90b74aeb77b01aba7734df9
2017-11-12 17:37:59 +00:00
Adam Harwell
8975d7acbd Merge keepalived elements
Change-Id: I2676b26ee59ad18583df937b258549bae241e100
2017-11-10 23:59:12 +00:00
Zuul
2b7193764e Merge "Merge haproxy-octavia elements" 2017-11-10 23:41:42 +00:00
Zuul
a05d8aa763 Merge "Fix possible DB deadlock scenario" 2017-11-10 00:11:10 +00:00
Michael Johnson
f336fc430a Fix member operating status when add/remove HM
This patch makes sure we consistently update the member operating status
when the user adds/removes a health monitor from a pool.

Change-Id: I71184d66ee035b9afbfee62e9a0ebb5147c2b47e
2017-11-09 15:09:19 -08:00
Michael Johnson
a332855e56 Fix possible DB deadlock scenario
Under certain conditions if an error occurred during an API request the
lock session could be left open. This patch corrects that by extending the
try block to include all calls with the lock open.

The test case was creating a second pool on a listener, which results in
a 409 conflict error, but the lock was left open.

Change-Id: I81e08775c515602f315aa8da32ff342f96c4a676
2017-11-09 11:08:21 -08:00
Michael Johnson
e50ba48c1b Merge haproxy-octavia elements
Currently there are two haproxy-octavia elements, haproxy-octavia and
haproxy-octavia-ubuntu in the Octavia project.  The have minimal changes
between them, so this patch merges them into one element with a
backward compatible element left for haproxy-octavia-ubuntu.

Change-Id: I990802726d24e319988bfb614b3bf3fb560512b4
2017-11-09 09:09:01 -08:00
OpenStack Proposal Bot
395369e628 Updated from global requirements
Change-Id: I9e75fee47c26e93ab7956643d5c319ec2fbfc5ab
2017-11-09 13:30:14 +00:00
Zuul
0cb21c543c Merge "Fix health_manager to exit without waiting" 2017-11-08 17:08:20 +00:00
Zuul
0e0250c89c Merge "Stop child objects changing status when LB locked" 2017-11-08 14:13:57 +00:00
Jude Cross
7663430f06 Fix health_manager to exit without waiting
When trying to exit health_manager the terminal
would hang due to a child process using time.sleep().
Now the process uses futurist.periodics to schedule
when to run which allows it to quickly and gracefully
exit.

Also handles the `failover_amphora` not working out or being
cancelled correctly and logging the statistics of those occurences
instead of incorrectly assuming everything always works out.

Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Co-Authored-By: Joshua Harlow <jxharlow@godaddy.com>

Change-Id: I870edaab73ab20a9322c8bc1bd2514897417d12a
2017-11-07 11:36:49 -08:00
OpenStack Proposal Bot
2ab2836d0e Updated from global requirements
Change-Id: I9047e289b8a3c931156da480b3f9f676c54a8358
2017-11-03 17:58:59 +00:00
Zuul
504cb6c682 Merge "Add cached_zone to the amphora record" 2017-11-01 19:46:39 +00:00
Zuul
e983508511 Merge "Fix body error of update loadbalancer" 2017-11-01 19:34:41 +00:00
root
d482b0e78a Fix body error of update loadbalancer
Change-Id: I29d1949545252f8d6333c635851f59258deda4a8
2017-11-01 14:12:40 +00:00
Adam Harwell
b8ebbe9919 Add cached_zone to the amphora record
This will enable a number of possible features that need to select
amphorae based on their availability zone.

This would allow for quick-lookups on large lists and could be stale,
but it would be expected that future code that uses this would check
with nova for an update if it needs fully accurate data.

Having it be explicitly "cached" should take care of concerns about
users (operators, in this case) being confused about correctness.
Using simply the word "zone" should address concerns about commonality
between compute providers.

Change-Id: I8e26f99bca3496a454ba7bae2570f517e07d5fc2
Story: 2001221
Task: 5732
2017-10-31 17:15:45 -07:00
James E. Blair
a610e404fd Zuul: add file extension to playbook path
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated.  Update references
to include the extension.

Change-Id: I9335e07095ec7d2821441f70ce2a73d626bc2291
2017-10-31 22:40:12 +00:00
Michael Johnson
926fb27fbe Disable kvm on OVH infra instances
OVH infra hosts are causing "KVM: entry failed, hardware error 0x0"
failures where instances fail to start (cirros, etc.).
This patch excludes OVH instances from kvm enablement until the issue is
resolved.
This patch also fixes an issue with a unit test failing after
cryptography 2.1 was released.

Co-Authored-By: Adam Harwell <flux.adam@gmail.com>

Change-Id: I630f513092c61d9785efe49d42aa3cfdc05a927e
2017-10-31 10:46:37 -07:00
Michael Johnson
6d29b8258f Update Octavia zuulv3 for newton EOL
This patch cleans up the zuul v3 config for the EOL of newton and
migrates the functional tests to use openstack-tox parent.

Change-Id: Id4a97e81d8664fd789776f1fa729d7b969ae0ffc
2017-10-27 08:13:42 -07:00
Zuul
a3c3fb8da8 Merge "Make the event streamer transport URL configurable" 2017-10-26 21:45:26 +00:00
German Eichberger
060fcc1503 Make the event streamer transport URL configurable
This adds a way to configure the event streamer transport URL
so it can post to a different queue, e.g. Neutron's

Change-Id: I69d3d6d30e33878052f2c56b8c79a14cc4ec1b24
2017-10-25 10:52:48 -07:00
Michael Johnson
b7bb5aff2d Stop child objects changing status when LB locked
This patch corrects a bug in the load balancer locking that would
modify the child object provisioning status even though it is returning
that the load balancer is currently immutable.

Change-Id: I017bdcd902327d0cc363a6edb34c5eaeb9fd42e8
Story: 2001258
Task: 5788
2017-10-24 16:55:38 -07:00
Michael Johnson
c05a8cfb88 Fix non-cascade LB delete with children
When the user attempts to delete a load balancer, without the cascade option,
the load balancer is locked in "PENDING_DELETE" prior to the check for child
objects. The child object check will return the error to the user, but would
leave the load balancer locked in "PENDING_DELETE".
This patch corrects the order to do the validation prior to locking the
load balancer in "PENDING_DELETE".

Change-Id: If1694743d098b1c1337601770a7b3466a43dda07
Story: 2001256
Task: 5786
2017-10-23 10:43:17 -07:00
Zuul
ba0f87f84a Merge "Update tests to do not use deprecated test.services()" 2017-10-20 23:13:19 +00:00
Nam Nguyen Hoai
9caf1e65f5 Update tests to do not use deprecated test.services()
Function 'tempest.test.services()' has moved to
'tempest.common.utils.services()' in version 'Pike'.
This commit update tests accordingly.

Change-Id: I27ae5aa786cf3a3c5c654644c23f59fde7693e6b
2017-10-20 11:34:33 +07:00
Zuul
ec923445e1 Merge "Move Octavia zuulv3 configuration in repo" 2017-10-20 01:39:31 +00:00
Zuul
dc9a382940 Merge "Support pylint" 2017-10-20 01:37:29 +00:00
Michael Johnson
02e6f93b8a Move Octavia zuulv3 configuration in repo
This is the start of the transition to native Zuul v3 support for Octavia.

Change-Id: I21d336d3a1fa7363f8c2ea0c5291b4d63bd1a41d
2017-10-18 16:47:42 -07:00
Zuul
1b84076ee6 Merge "Change 14.04 to 16.04 in devstack setup guide" 2017-10-18 11:59:03 +00:00
Dong Jun
344b8fa871 Support pylint
Support pylint for octavia, some harmless rules are added to messages
control group.

Change-Id: I88577b1ab918fc7a19b2323ca652bde7ffad64ef
2017-10-16 09:32:41 +08:00
OpenStack Proposal Bot
bf9d8075b2 Updated from global requirements
Change-Id: I8e89f40664282625537e989dd6aa55e1251b5650
2017-10-15 17:05:12 +00:00
Jenkins
859bb3bae3 Merge "Allow PUT to /pools/<id>/members to batch update members" 2017-10-14 14:11:43 +00:00
Jenkins
5e19bf3221 Merge "Trivial change to adapt pylint rules" 2017-10-14 10:04:21 +00:00
Jenkins
14d2e7fa84 Merge "Valuable change reported by pylint" 2017-10-14 06:21:51 +00:00
Jenkins
4573e4b76c Merge "Force PCI bus rescan if interface is not found" 2017-10-14 02:10:24 +00:00
Jenkins
91f75b7290 Merge "import _ from octavia.i18n" 2017-10-14 01:45:30 +00:00
Jenkins
e7cf70c69a Merge "Update cookbooks for transition to OSC" 2017-10-14 00:40:42 +00:00
Jenkins
b6274ad3e3 Merge "Add dependent packages to config reference" 2017-10-13 23:49:25 +00:00
Jenkins
1cf3c2d412 Merge "Adds automatic ERD generation for the Octavia DB" 2017-10-13 23:48:55 +00:00
Dong Jun
3486879df0 Trivial change to adapt pylint rules
Eliminate bad-indentation superfluous-parens unnecessary-pass

pylint will be added in fllow up patch

************* Module octavia.common.tls_utils.cert_parser
W:322, 0: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)

************* Module octavia.api.v1.controllers.load_balancer
C:289, 0: Unnecessary parens after 'elif' keyword (superfluous-parens)

************* Module octavia.controller.worker.tasks.network_tasks
W:184,16: Unnecessary pass statement (unnecessary-pass)

Change-Id: Ice1755aee84f33cd190cfcaa6379723f0fcdb9e9
2017-10-13 22:56:44 +00:00
Dong Jun
4ee7b97743 Valuable change reported by pylint
pylint will be added in fllow up patch

************* Module octavia.api.handlers.controller_simulator.handler
E: 56,21: Too many positional arguments for method call (too-many-function-args)
E: 59,21: Too many positional arguments for method call (too-many-function-args)
E: 93,26: Too many positional arguments for method call (too-many-function-args)
E: 96,26: Too many positional arguments for method call (too-many-function-args)
E:119,24: Too many positional arguments for method call (too-many-function-args)
E:122,24: Too many positional arguments for method call (too-many-function-args)
E:150,20: Too many positional arguments for method call (too-many-function-args)

************* Module octavia.api.v2.types.load_balancer
E: 58,17: Bad first argument 'BaseLoadBalancerType' given to super() (bad-super-call)

************* Module octavia.controller.worker.tasks.amphora_driver_tasks
E:310, 8: Unsupported logging format character 'a' (0x61) at index 31 (logging-unsupported-format)

************* Module octavia.controller.worker.tasks.database_tasks
E:1437,12: Unexpected keyword argument 'provisioning_status' in method call (unexpected-keyword-arg)
E:1437,12: No value for argument 'pool_dict' in method call (no-value-for-parameter)

Change-Id: I2554a5f94f70058000ce33460fbfc6021e735eeb
2017-10-13 21:37:22 +08:00
Dong Jun
ff20b3faf4 import _ from octavia.i18n
builtin _ is deprecated and pylint will throw an error for it.

Change-Id: Ia5599dd2c65455eae13fadfac277f590dcaa2df5
2017-10-13 21:35:21 +08:00
Michael Johnson
1fa4bf042b Update cookbooks for transition to OSC
This patch creates neutron client alternatives to the cookbook guides and
updates the L7 cookbook to use the OpenStack Client (OSC) instead of the
neutron client.

Change-Id: Ibaec9fda6c1ba84edcf404625b6a4c4fa990d7a4
2017-10-12 16:57:14 -07:00
Michael Johnson
40484cc5c6 L7 policy API-REF update for result codes
The Octavia API-REF did not specify the HTTP response codes users
will receive when using the L7 policy actions REDIRECT_TO_URL and
REJECT.  This patch details those response codes.

Change-Id: Ibc2345deac518c49ece458e1bf09759cab25fa92
2017-10-09 05:39:41 +00:00
Jenkins
6a54f6ac37 Merge "Correctly unlock amphora health on failover revert" 2017-10-07 04:05:25 +00:00
Jenkins
d1d2473e35 Merge "Remove SCREEN_LOGDIR from devstack" 2017-10-07 00:48:00 +00:00