2763 Commits

Author SHA1 Message Date
Michael Johnson
db212fc304 Fix pool API handling of None/null updates
The current pool API does not properly handle clearing/reseting
values on update. There was a case where removing the CA and CRL
at the same time could be refused, requiring you to remove the
CRL first, then the CA reference. This patch resolves that issue.

This patch corrects this to appropriately handle None/null updates
to the pool parameters.

Change-Id: Iee8a12b693a09e96e59313e58beffe1b1985084f
Story: 2005374
Task: 31007
2019-05-14 17:51:03 -07:00
Zuul
987a6b3f1d Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-14 01:58:30 +00:00
Zuul
b9f09b75fb Merge "Remove v1 API and associated code" 2019-05-14 01:14:29 +00:00
caoyuan
1910f024a3 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I291eb706df84489398b4f4b2736d7c5ab2e84747
2019-05-13 19:59:59 +00:00
Zuul
28fe8ed45e Merge "Ignore .vscode directory" 2019-05-12 11:58:37 +00:00
Adam Harwell
29d4340e9f Remove v1 API and associated code
Includes some updates to docs and configs and related files to remove
references to neutron-lbaas. Also remove handlers.

Change-Id: I3082962841d3b645f3cbd1a6b41fc7fb28dcf7e6
2019-05-11 14:39:17 -07:00
Adam Harwell
1a87298ac7 Bandit test exclusions syntax change
Newer versions of bandit broke their handling of test exclusion
directories. It is now necessary to glob the contents of the directory
rather than just list the base path.

Change-Id: I02fbc02ce8d623b75a7d568ea48bb5e5e6c66b58
2019-05-10 13:30:32 -07:00
Adam Harwell
3fc6b93dfc Ignore .vscode directory
Change-Id: Ia8eb8d07cede5eb8986c082bc5f5874d68442ce7
2019-05-04 18:28:55 -06:00
Adam Harwell
28f4f9e44a Fix missing INCLUDEPKGS var in haproxy element
Change-Id: I5ccae72695642379c5e817f7335348c344480747
2019-05-03 15:28:43 -06:00
Adam Harwell
57d653cc63 Make amphora cert validity time configurable
This affects only the internal certificates that we generate and install
on Amphorae for use with the amphora-agent.

Change-Id: I8c3eb71246d339bd2d43092cce4e6122a49e9534
2019-04-30 15:30:48 -07:00
Zuul
0cadb9adf9 Merge "Remove python3.5 jobs for Train" 2019-04-26 14:06:42 +00:00
Zuul
6fb974c92b Merge "Fix spare amphora failover" 2019-04-26 04:29:38 +00:00
Zuul
6367e04de5 Merge "Removing an erroneous comment" 2019-04-25 18:27:36 +00:00
Zuul
1f0dda4df3 Merge "Update some octavia documentation" 2019-04-25 15:53:54 +00:00
Zuul
e001c664c9 Merge "Fix invalid query selector with list_ports" 2019-04-25 15:53:49 +00:00
Zuul
fd816a72e7 Merge "Fix IPv6 in Active/Standby topology on CentOS" 2019-04-25 14:06:44 +00:00
Zuul
c24794f189 Merge "Update operator maintenance doc" 2019-04-25 07:54:22 +00:00
Michael Johnson
b9e8f7e254 Update some octavia documentation
This patch improves the Octavia documentation in two ways:
It patch clarifies the format for the enabled_provider_drivers
configuration setting.
It also adds a link to the Octavia release notes to the documentation
home page.

Change-Id: I3f0349f37a5683061de2beff689314469a7dc255
2019-04-24 14:27:58 +00:00
Zuul
66a4e9b67e Merge "Fix listener API handling of None/null updates" 2019-04-24 11:09:48 +00:00
Trevor Vardeman
b1f3d949c6 Removing an erroneous comment
Left a code-comment in a change by accident, updating to remove it.

Change-Id: I97fd1de040a8bf7706b78fe1825e48761c2073ee
2019-04-23 15:31:47 -05:00
Gregory Thiemonge
5f16d221e1 Update operator maintenance doc
Added paragraph about spare amphorae rotation

Change-Id: I85092f56e196fe565b09e69e0a87f346d4d58b08
2019-04-23 09:48:33 +02:00
Michael Johnson
930a3236bf Fix listener API handling of None/null updates
The current listener API does not properly handle clearing/reseting
values on update. Some integer only fields, such as connection-limit,
will accept null, but will store the value as "None". These will
will cause failures updating the amphora configuration.

This patch corrects this to appropriately handle None/null updates
to the listener parameters.

Change-Id: I41c9bedd8a3452513af3d409fbacd65ea287f02a
Story: 2005374
Task: 30352
2019-04-22 16:24:14 -07:00
Zuul
fd1a7e5084 Merge "Adding changes to support ppc64le amphora builds with CentOS" 2019-04-22 17:22:47 +00:00
Michael Johnson
f0776e0cfb Remove python3.5 jobs for Train
The TC has decided that python 3.5 tests are not required for Train
forward[1]. This patch removes the python 3.5 jobs from Octavia.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/ \
    005097.html

Change-Id: Ic75cb45f7c89a80b779ade18a9e4a6f7bf1a6847
2019-04-22 12:59:58 +00:00
OpenDev Sysadmins
0126918334 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:36:42 +00:00
Zuul
d20e1d3289 Merge "Fix missing REDIRECT_PREFIX in the api-ref" 2019-04-18 22:04:10 +00:00
Trevor Vardeman
4c9097c681 Adding changes to support ppc64le amphora builds with CentOS
Updated diskimage create script to include an argument for disabling the temporary filesystem.
Updated diskimage create to support ppc64le as an argument.
Updated backports to support a properly configured PaaS repository for CentOS on power.

Change-Id: I8897278b1ac8b76d564f45bd0c7cbc26b29a8e5d
2019-04-18 11:11:09 -05:00
Gregory Thiemonge
a509710a7f Fix spare amphora failover
Failover of spare amphorae failed with an exception,
because they're not attached to any loadbalancer.

This commit fixes this issue, allowing to rotate/update
spare amphora images.

Story: 2005470
Task: 30549

Change-Id: I9c9002486a9a547a215514c24ccb95f039b23ec2
2019-04-17 10:46:24 +02:00
Zuul
66656bceb6 Merge "Update documentation about rotating amphorae" 2019-04-16 16:27:16 +00:00
Gregory Thiemonge
c987140f68 Update documentation about rotating amphorae
Now that octavia provides API and cli to failover and check amphorae
statuses, we can simplify operator maintenance doc.

Change-Id: I2da1f2cc78b8f4338d4481f8529cbd0a02fa66bf
2019-04-16 16:50:49 +02:00
Michael Johnson
7d1bdc31bb Fix missing REDIRECT_PREFIX in the api-ref
The Octavia API reference was missing the option of "REDIRECT_PREFIX"
as one of the L7 policy actions. This patch corrects that.

Change-Id: I5fa14354fb88b325380834e0deec09bfb813b409
2019-04-15 16:03:42 -07:00
Carlos Goncalves
b274355e8e Constraint networkx to <2.3 for Python 2
networkx >=2.3 supports Python 3 only [1]. This patch constraints
networkx to <2.3 for Python 2.

[1] https://networkx.github.io/documentation/stable/news.html#networkx-2-3

Change-Id: Icfc804f40130a613ac78165e487853c47c87e49c
2019-04-15 19:42:03 +02:00
Zuul
bd07eada87 Merge "Add error-handling for permission of /etc/octavia" 2019-04-14 21:52:05 +00:00
Zuul
6e321eb218 Merge "Fix the amphora base port coming up" 2019-04-09 14:46:36 +00:00
Zuul
b207213204 Merge "Fix spare amphora check and creation" 2019-04-06 01:55:43 +00:00
Michael Johnson
41ff43131f Fix the amphora base port coming up
A recent change[1] broke the base port IP address coming up in the
amphora. This would cause active/standby and single topology amphora
with members on the VIP subnet to fail.

This patch resolves this issue by not flushing the eth1:0 address.

Story: 2005383
Task: 30368

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

Change-Id: I52e7e9f172b7783bae09be76cc137f4e7198165f
2019-04-05 11:42:47 -07:00
Gregory Thiemonge
951afb9a0a Fix IPv6 in Active/Standby topology on CentOS
Avoid duplicated IPv6 VIP addresses on CentOS in Active/Standby mode,
Keepalived will set/unset the VIP address.

Story: 2005365
Task: 30340

Change-Id: I05b31ba628bafeefec36cc5c000dae1aefb63d67
2019-04-04 13:23:56 +02:00
Zuul
a728bc000f Merge "Fix setting of VIP QoS policy" 2019-04-03 22:37:52 +00:00
Gregory Thiemonge
0b468090e6 Fix spare amphora check and creation
This patch fixes an issue when the SparesPool table is empty that blocks
spare amphorae creation. It creates a new spares pool entry if the table
is empty.

Story 2005352
Task 30306

Change-Id: I0ce2778277640ee9e509c709bf8621b8b025d6d3
2019-04-03 14:13:59 -07:00
Gregory Thiemonge
5fb79c9495 Fix invalid query selector with list_ports
Fixed an exception thrown by neutron_client's list_ports when the
deletion of the VIP security group fails.

Story 2005355
Task 30309

Change-Id: I7d972dcc6b43406523063f2082b42e2d9a2b50c9
2019-04-03 17:20:43 +02:00
Carlos Goncalves
e0c45ce4d2 Fix setting of VIP QoS policy
Load balancers were going in to ERROR when updating vip_qos_policy_id in
two different cases:

- QoS extension enabled: the VIP DB data model was incorrectly
  constructed ('vip_qos_policy_id' where it should have been
  'qos_policy_id')
- QoS extension disabled: setting an UUID or None would fail in the LB
  update flow as the extension is disabled, and the API would return
  HTTP 202 to the user.

Story: 2004602
Task: 28512

Change-Id: Ie974afa52fe70cbab72b7e7f75bf7ee1015e148c
2019-04-03 14:59:58 +02:00
Zuul
147a340f40 Merge "Fix diskimage-create tox, add `build and test` targets" 2019-04-03 03:12:17 +00:00
Zuul
3aa581e6bc Merge "Fix VIP plugging on CentOS-based amphorae" 2019-04-03 03:12:10 +00:00
Zuul
5eee09c85a Merge "Add support to the Python Visual Studio Debugger" 2019-04-02 22:55:27 +00:00
Carlos Goncalves
95a872fcd9 Fix VIP plugging on CentOS-based amphorae
ifup does not provide option -v in CentOS-based amphorae.
This option was added in I0dbb145ab9a0bb8f831c1db28cabd262f9394e7e.

Story: 2005341
Task: 30288

Change-Id: I56947e0d2bb207b59b0b3928efc96546d6410f43
2019-04-02 13:59:29 +02:00
Zuul
9e5e5cd22f Merge "Fix initialization of Barbican client" 2019-03-31 09:06:05 +00:00
Carlos Goncalves
31741aa474 Add support to the Python Visual Studio Debugger
Change-Id: I1051656d61709c2f418e2fabdee2d16c889b7efd
2019-03-29 11:34:16 +01:00
Michael Johnson
23a411413f Fix ifup failures on member interfaces with IPv6
When an older version of ifup is used, there are cases where bringing
up an IPv6 address on an interface will fail with "RTNETLINK answers:
File exists"
This patch corrects this issue by bringing the interface up and
flushing the existing addresses prior to the ifup.
This returns a previous behavior of the ifdown/ifup commands.

Change-Id: I0dbb145ab9a0bb8f831c1db28cabd262f9394e7e
Story: 2005320
Task: 30248
2019-03-28 11:45:19 -07:00
Zuul
ab413f971e Merge "Replace openstack.org git:// URLs with https://" 2019-03-27 17:17:02 +00:00
Zuul
971debcc75 Merge "Adds server_certs_key_passphrase to octavia.conf" 2019-03-27 11:22:39 +00:00