2536 Commits

Author SHA1 Message Date
Michael Johnson
e60cd189fb Add auditing support to the Octavia API
This patch adds Cloud Auditing Data Federation (CADF) auditing support to the
Octavia API. This is implemented using the keystonemiddleware audit filter.

Change-Id: I87a7e15171dfaf28b6ed97ca71d4423d18fbdbea
2018-12-11 23:32:58 +00:00
Michael Johnson
75adf92e09 Make the CentOS 7 scenario gate non-voting
We have seen a lot of instability in the octavia-v2-dsvm-scenario-centos-7
gate[1] over the last few months. In the weekly IRC meeting we decided to
revert this gate back to non-voting until the CentOS issues are resolved.

We have seen:
1. Package repository issues.
2. Mirror issues.
3. CentOS 7.6 dropping packages.

[1] http://zuul.openstack.org/builds?job_name= \
        octavia-v2-dsvm-scenario-centos-7

Change-Id: I0d9ffc639b9decc9d13038d3033c61f6ba261ffe
2018-12-11 16:12:08 +00:00
Zuul
b360f29e03 Merge "Correct the base class for v2 l7rules type tests" 2018-12-11 12:35:35 +00:00
Jacky Hu
f9fd702b20 Allow release id to be specified with fedora
This resolves the fedora image build failure below:
http://logs.openstack.org/periodic/git.openstack.org/openstack/octavia/ \
master/publish-openstack-octavia-amphora-image-fedora/6be692a/job-output.txt.gz

Change-Id: Ide8ebbc6264afb2f33cf2d6803aaf21631449424
2018-12-10 16:41:32 +08:00
Zuul
5ab8dc42b9 Merge "Add a periodic job to build + publish diskimage for fedora" 2018-12-09 08:13:05 +00:00
Zuul
75c1d7c1ab Merge "Make disk image buildable for fedora" 2018-12-08 14:52:21 +00:00
Zuul
ef90f0ed9d Merge "Fix IPv6 in Active/Standby topology" 2018-12-08 03:11:43 +00:00
Zuul
37622044ad Merge "Fix devstack plugin for /var/log/dib-build exists" 2018-12-07 22:53:57 +00:00
Nir Magnezi
fbb9397979 Fix IPv6 in Active/Standby topology
Load balancers with IPv6 VIP addresses would fail to create due to
a duplicate address detection issue. The keepalived process would also
crash with a segfault due to a known bug[1].

This patch resolves both issues and allows load balancers with IPv6
VIP addresses to be created in active/standby topology.

[1] https://github.com/acassen/keepalived/issues/457

Story: 2003451
Task: 24657
Co-Authored-By: Michael Johnson <johnsomor@gmail.com>

Change-Id: I15a4be05740e2657f998902d468e57763c3ed52e
2018-12-06 20:10:38 +00:00
Michael Johnson
1e4940f37e Fix the grenade gate
After the upgrade Apache seems unable to reach the Octavia API.
It appears that the devstack plugin.sh enables the octavia-wsgi site,
but fails to restart the Apache server to pick up this change.

This patch corrects that by restarting Apache after any Apache site
changes.

Change-Id: I972c7d7934268131765ce5eebab1d81cc326fd49
2018-12-05 15:21:02 -08:00
wangxiyuan
77d6f08dec Correct the base class for v2 l7rules type tests
The v2 L7rules type tests should base on v2 types.

This patch fix the incorrct import and add some missing
cases for v2 L7rules type tests.

Change-Id: I029163531b3f5bd87781e87d5c1b8e326c49d252
2018-11-28 10:02:48 +08:00
Zuul
d2324cc276 Merge "Fix possible state machine hole in failover" 2018-11-26 22:19:33 +00:00
Michael Johnson
c62031f909 Fix devstack plugin for /var/log/dib-build exists
The recent change to log the DIB output assumes the /var/log/dib-build
directory does not exist. This is not the case on dev systems.
This patch now handles the case where an old /var/log/dib-build exists.

Change-Id: If4116e2c9b13db64b07ffbc3fd6af13e2373b860
2018-11-21 21:16:54 +01:00
Zuul
9d7967b702 Merge "Treat null admin_state_up as False" 2018-11-21 05:27:50 +00:00
Zuul
c07612aba1 Merge "devstack: Define packages for (open)SUSE" 2018-11-19 00:52:10 +00:00
Zuul
d29e129f94 Merge "Add framework for octavia-status upgrade check" 2018-11-18 01:33:42 +00:00
ZhaoBo
0e13939769 Treat null admin_state_up as False
This patch changes the to_dict function for the API obj, if the user
pass null into admin_state_up to request. We treat it as False.

Depends-On: https://review.openstack.org/#/c/583413/
Story: 2002927
Task: 22914
Change-Id: Iab79b422983f6b2124837fd9ebe60a85b0516f41
2018-11-17 23:57:22 +00:00
Zuul
1c33b0f328 Merge "Update min tox version to 2.0" 2018-11-17 02:10:02 +00:00
Zuul
5a7de9fd80 Merge "Update the HTTP links to HTTPS" 2018-11-17 00:40:53 +00:00
guotao.bj
d7d3e3f566 Delete duplicate word in component-design.rst
Change-Id: I054c7f2ee03f33aa883cff8e2ca9c57827b0c1c0
2018-11-14 06:36:27 +00:00
zhouxinyong
079ab45f4d Update the HTTP links to HTTPS
In consideration of the link security,We'd better to update the links to https.

Change-Id: Ic6821cc74a094cb27ae98bb91db1779ed1fdfaf8
2018-11-14 01:04:08 +00:00
akhiljain23
c60931f4b4 Add framework for octavia-status upgrade check
This commit adds the functionality of octavia-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: I8b6d134b0bf5b5c82a19177fed6145ef8aaf7507
Story: 2003657
Task: 26146
2018-11-12 14:41:14 +05:30
Zuul
1b71a56791 Merge "Fix VIP plug failure if netns directory exists" 2018-11-09 11:31:12 +00:00
Michael Johnson
63b5cfc14e Fix VIP plug failure if netns directory exists
In rare cases, the network namespace may already exist in the amphroa.
VIP plug should not fail if the directory is already present.

Change-Id: I33c2e1740bff1313ba6b8d3ef2ea4fe494263751
Story: 2004300
Task: 27856
2018-11-08 09:18:37 -08:00
Michael Johnson
fc7bbd7599 Log the compute ID when nova fails
When nova fails to successfuly start an amphora and we hit our
ComputeWaitTimeoutException, currently it's hard to see the compute
ID nova issued us. This patch includes it in the exception message
so we can track the ID back into the nova logs to see why nova
failed.

Change-Id: I3e89ac3aae526b8d705a408e7c0a9eaba6bca193
2018-11-07 16:50:42 -08:00
Adam Harwell
f552a30038 Fix possible state machine hole in failover
Change-Id: I5c68791c48b0f6766439560bca1cb6b0e61360be
2018-11-07 12:14:07 -08:00
Vieri
43e9283100 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: Ic65e4f789e7394bf73920d17614c60e3e87e3750
Closes-Bug:  #1801477
2018-11-03 06:58:48 +00:00
Zuul
5bd7cc7cb4 Merge "Update README by adding Mailing List and Wiki URL" 2018-11-01 00:20:13 +00:00
Zuul
e4a6532cd2 Merge "Don't quote {posargs} in tox.ini" 2018-10-31 23:05:48 +00:00
Zuul
22c5028533 Merge "Redirect disk-image-builder logs, make verbose" 2018-10-31 14:28:39 +00:00
Kim Bao Long
95db992d00 Update README by adding Mailing List and Wiki URL
Currently, README.rst does not mention about Wiki page and Mailing
List as contact point to community. So this patch aims to add an
URL that links to Wiki page and Mailing List tag in `External
Resources` session.

Change-Id: I3d9fffbfe110c6515cf7f47835e2bcc32fa3be9d
2018-10-31 09:32:10 +07:00
Ian Wienand
5bec6f70c2 Redirect disk-image-builder logs, make verbose
Update the diskimage-create.sh to have a "-l" option to pass into
dib's "--logfile" option.  In the devstack job, use this to redirect
the dib output to a separate logfile.  Turn on verbose logging by
default for this log.

Copy this in the v1 jobs.  v2 jobs are covered by a similar change in
octavia-tempest-plugin: I5bc0d9a3b071733cbe31d618f7236a3c2285b3e5

Depends-On: https://review.openstack.org/612865
Change-Id: Ie639af4266152d4626f8312b1849deeba5048348
2018-10-30 11:39:12 +01:00
Michael Johnson
4b1c374bdc Fix diskimage-create README.rst
We missed updating the diskimage-create README.rst when we added
some new command line options. This patch corrects those omisions.

Change-Id: I28dbc5b83321a69e060ea7fef5a1889ec623a3be
2018-10-29 11:53:23 -07:00
Zuul
3cf910baa8 Merge "Simplify keepalived lvsquery parsing for UDP" 2018-10-28 19:02:11 +00:00
Zuul
2deadd3f83 Merge "Remove unused methods." 2018-10-27 08:39:50 +00:00
Zuul
47b24d7669 Merge "Add posibilities to set default timeouts" 2018-10-24 11:57:43 +00:00
Zuul
2c790796f5 Merge "Fix logging error in get_current_loadbalancer_from_db" 2018-10-22 19:03:23 +00:00
Nguyen Van Trung
809a383635 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I7c45e4525f255deec7c79ae567cf4b1dda111a4a
2018-10-22 16:34:59 +00:00
Vadim Ponomarev
be377afcca Remove unused methods.
Remove unused methods _reset_lb_and_listener_statuses, _reset_lb_status,
_reset_lb_listener_policy_statuses from controllers.

Change-Id: I8e5980489bc905daa946ff4e2e7c3ae698d5b0b4
Story: 1655768
2018-10-22 13:56:28 +00:00
Kamil Sambor
8923935df2 Add posibilities to set default timeouts
Default timeouts for backend member and frontend
client can be set now via config file.
Timeouts exposed in config in section haproxy_amphora:
 * timeout_client_data
 * timeout_member_connect
 * timeout_member_data
 * timeout_tcp_inspect

Change-Id: I6e1be42c5c15c4171b012734e4c2a1fded51dbc7
Partial-Bug: 1797130
Story: 2004042
Task: 27046
2018-10-22 12:55:08 +00:00
Michael Johnson
759cb75960 Update docs conf.py for openstackdocstheme change
A Starlingx patch[1] changed the signature for some openstackdocstheme
methods which is causing Octavia docs to not build.

This patch updates the octavia docs configuration for the new
openstackdocstheme.

[1] https://review.openstack.org/#/c/607298

Change-Id: Id09ab3b78291c28e116f1f4ffb8836eac0537d94
2018-10-19 16:18:20 -07:00
Zuul
8e373c8053 Merge "Remove deprecated parameters" 2018-10-19 20:59:02 +00:00
Michael Johnson
e644b9fdce Remove deprecated API settings
We moved "bind_host", "bind_port", "auth_strategy", and "api_handler"
into the api_settings section in the configuration file. These settings
have now reached the end of their deprecation cycle and are being removed.

Change-Id: I323a7bdceae5a8d0e3025800beaf1d0a13c12ef8
2018-10-18 19:42:21 +00:00
Luis Tomas Bolivar
feff3b472c Ensure pool object contains the listener_id if passed
When creating a pool with an associated listener_id, sometimes the
listener_id is not set. Problem comes from [1] not setting the listeners
property on db_pool pool object even if it is passed.

[1] https://github.com/openstack/octavia/blob/master/octavia/api/v2/controllers/pool.py#L244-L245

Story: 2003833
Change-Id: I414a3c6d2e97d30ff12eda4ecf71ec032998df7d
2018-10-16 10:56:26 +02:00
Zuul
e9bd56f094 Merge "Refactor the AAP driver to not depend on nova" 2018-10-16 06:23:20 +00:00
Zuul
d81257d4cf Merge "Increment versioning with pbr instruction" 2018-10-16 05:59:19 +00:00
German Eichberger
79cd851548 Refactor the AAP driver to not depend on nova
Replace calls to the nova client with calls to the compute driver.
This will help non vm efforts (e.g. zune) and also make the code
easier to break up later.

Change-Id: I7ee175c5ecb98af0ca5e299c2ac10e43eb40ed30
2018-10-15 13:48:42 -07:00
Zuul
ed301d7fa2 Merge "Add API versioning to the api-ref" 2018-10-14 13:43:59 +00:00
Sean McGinnis
dd1b1be815 Increment versioning with pbr instruction
With moving away from required milestone releases, the version numbers
calculated by PBR on the master branch will not work for those testing
upgrades from the last stable release. More details can be found in the
mailing list post here:

    http://lists.openstack.org/pipermail/openstack-dev/2018-October/135706.html

This is an empty commit that will cause PBR to increment its calculated
version to get around this.

PBR will see the following which will cause it to increment the version:

Sem-Ver: feature

Please merge this patch as soon as possible to support those testing
upgrades.

Change-Id: Id29359e81c002cc302b81a8779f363a4a2ba5474
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-12 13:10:02 -05:00
Vadim Ponomarev
862f9f438e Fix logging error in get_current_loadbalancer_from_db
Change-Id: Ib69fe420658dee635045a47681a91fba921f7248
2018-10-12 11:32:13 +03:00