Listener, pool and health-monitor objects now support SCTP protocol.
Depends-On: https://review.opendev.org/#/c/738381/
Story: 2007884
Task: 40257
Change-Id: Ib92c9896b6bd397c7fda2658a0e710f1014877fb
The move to focal for the tox jobs has raised issues with package
versions supporting python 3.8.
This patch bumps the version for the following packages:
cffi==1.14.0
cryptography==3.0
pyOpenSSL==19.1.0
Change-Id: I72c7bdd07a0b571fea01f76d8579a8d84057ebf8
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: Iaddbf2b55b3ec29fc8f12a226a97f691143165ad
Users can define a list of application layer protocols to be negotiated
over a secure connection. For example, users can limit to HTTP/2 or
to HTTP/2 and HTTP/1.1 but exclude HTTP/1.0.
Depends-On: https://review.opendev.org/#/c/744520/
Change-Id: Ia7afa9268650744710bc486de1302eb36ac3849d
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
* Adds version to PDF files
Update Sphinx version as well.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
Add Pygments to fix pep8 failure.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I964ac70a4ab0b1ff92876e85e3bca21e089480b3
Updated the pool create and set parameters to add
a repeatable argumet "--tls-version" for passing TLS
Protocols
Change-Id: Ia7a5ebbfc32f354ba733cc404539239fd6009e7a
Story: 2006733
Task: 37175
Depends-On: I480b7fb9756d98ba9dbcdfd1d4b193ce6868e291
This, along with the usage of unittest.mock, is breaking
the python3.8 unit test jobs. Just remove it as we're
really not losing much in test verification.
Change-Id: I5fbcc56f32f824cb52895a3f42e5a4dabe209ac2
Updated the listener create and set parameters to add
an argumet "--tls-version" for passing TLS protocol versions
Change-Id: Icb3171a7722e3b3028a108345506e907132bb856
Story: 2006733
Task: 37174
Depends-On: Ic33d9b9a256490ae1b048cdfd2475d6340509fdb
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: I5ca0fb28f6a24207e2b87bce357fc41a010cd052
Sem-Ver: feature
Added an optional argument --tls-ciphers for passing
an OpenSSL cipher string into the octavia commandline
client
Change-Id: Ida05b7a07c5a9adf81c95be1fe44e32b82793303
Story: 2006627
Task: 37176
Added an optional argument --tls-ciphers for passing
an OpenSSL cipher string into the octavia commandline
client when creating or updating a pool
Change-Id: Ifd2964b17e8b5704e79a9ef0d8cd3000f637a154
Story: 2006627
Task: 37178
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete section from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
Change-Id: I2f4d7644588316c30e639dcb093c5638b5b5526c
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove check check_python3_no_iteritems since this repo is now python3
only.
Change-Id: Ibe75f412a077325e926366897dc505b6ab34dd6f
A previous patch added an ignore for the modules documentation
that we don't use in python-octaviaclient.
It also missed the CONTRIBUTING.rst document.
This patch corrects those issues.
Change-Id: Iddf03867321c08c50ed374c5e33552604f60c701
When removing the "mock" module from python-octaviaclient, it was
clear that python-octaviaclient did not follow the same coding
style guides as the main octavia project.
This patch corrects that by updating the code style checks in
python-octaviaclient to those of the octavia repository and
corrects any style issues found by the new tests.
Change-Id: I505b3e139217ff7d4952880dec304eb5667ae310
Now that we are python3 only, we should move to using the built
in version of mock that supports all of our testing needs and
remove the dependency on the "mock" package.
This patch moves all references to "import mock" to
"from unittest import mock". It also cleans up some new line
inconsistency.
Change-Id: Id881071803e580c10ca3ff33689d01b8b305b3e8
In some deployments the Octavia API is behind a load balancer.
This load balancer may directly return an HTTP 503 status code
error to the client.
Prior to this patch, the client would not handle this situation
correctly and would return a cryptic error message:
'Expecting value: line 1 column 1 (char 0)'.
This patch updates the client to handle these types of errors
better by returning a better error message such as
"Service Unavailble".
Change-Id: Ib5e4e6ba698ec58774df20dfb8903c99ac2f0917
Story: 2007404
Task: 39004
Often when looking at lists of amphorae, I really need to quickly browse
them based on image/zone/compute_id, and this makes it much easier and
fewer API-roundtrips to get that data. The API already returns it, we
can just show it (optionally)!
Change-Id: I229392b5b324e92909ea417696a3652492274613
The python-octaviaclient plugin was using "choices" for validating
port numbers and weights. The cliff "choices" parameter will output
an error that includes every valid "choice". For port numbers, this
is 65,000+ valid options.
This patch changes this to produce a more user friendly error
message.
This patch also fixes the listener protocol-port type validation.
Change-Id: I4cb32bcc4681bd99f178d31547af37a7c582d210
Story: 2007218
Task: 38470
Can now also pass the --availability-zone argument when creating a
load balancer.
Co-Authored-By: Adam Harwell <flux.adam@gmail.com>
Change-Id: I7280d2e8d027733e34be6a92b096f7e054563d62
Added amphora_stats_show in the OctaviaAPI class.
Added "amphora stats show" command in the CLI, with an optional
"--listener <listener>" argument to display the statistics of a specific
listener that runs in the amphora.
Change-Id: I7ca43b55064e04e6d214a88eef5ed853090fbc34
The commit ae244fcf25 broke API consumers
by moving the OctaviaClientException to a different module. Ensure it
remains available in its previous location by importing it by name.
Change-Id: I35aa0bf105c3b59abb2ff775af12198bc0436572
Story: #2006970
Task: 37698
Now function get_resource_id getting all resources even if exact
ID is passed.
And checking if ID is passed and call directly
to get exact resource. If direct call failed - try to get ID
as it was done before (important for case, when name is generated
in UUID format).
Change-Id: Ic66d5289afe1f8849e327f9347f9c3de8bb8b595
Story: 2006810
Task: 37365