There have been recent changes to how docs jobs are run under zuul [1].
This patch updates stable/pike to be able to run under the new zuul docs
jobs.
[1] https://review.openstack.org/#/c/508694/
(cherry picked from commit 967edebe0c4c1711aa6b566ed581bc33d51b611c)
Change-Id: I7ba3f7ea0b1e0733cec4e0cd3a05128c772e0238
This patch adds policies and enforcement to the Octavia v2 API for pools.
It also fixes a minor issue with the specs tox job.
Change-Id: Id2aa4dfad149583f9cb16205cb617f6e2a1bc92e
Partial-Bug: #1690481
This patch adds policies and enforcement to the Octavia v2 API for
load balancers and listeners. Child patches will add the rest of the API.
In this patch I also correct some improper functional tests.
Change-Id: Id8a2d15c117c54bd45fc8bb76bf71aff1b3c8fe9
Closes-Bug: #1690481
The coverage job is only showing partial results in the HTML version
of the report. This patch corrects that by generating an HTML report
with the combined results.
Change-Id: I66b563d8d17a982ec3701626e8ac60c52a01a363
Fix the Sphinx html_last_updated_fmt for Python3.
The html_last_updated_fmt option is interpeted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.
Change-Id: I6cde9bb1f815bae91378772626142dd7645188d7
In preparation for adding coverage to the octavia check gate,
adjusts the cover tox job to check for 80% coverage.
Change-Id: Ifa924da594af53d07f156aa0ffbb870389dcb513
Because original directory 'etc/octavia' does not exist, excuting
'tox -egenconfig' fail with 'No such file or directory'.
Change-Id: I1b26bc1e631d1280dab223b1271362100347fe82
This patch will create the initial directory and index for the api reference
documentation (using the new guidelines) for the Octavia API.
Change-Id: Id5fbe569acfe7348f4f9dfc9cbef49834ea824c3
Partial-Bug: #1558385
The Consistent Testing Interface (CTI) [1] does not list python3.4
testing as needed for OpenStack Python 3 support. This patch removes
the unnecessary Python 3.4 tests from our tox configuration.
[1] https://governance.openstack.org/tc/reference/cti/python_cti.html
Change-Id: I4d9b72f7ad83c4d41ce364a1d0253c358537e64c
When running the unit tests we will now see which tests is being
run and the status of the test in question. This will help debugging,
triaging and cleaning things up.
Change-Id: I6d1458654d2fb6a8e814b17c4673bb9337fac4ec
This patch sets up octavia for translations.
It also includes some additional pep8 tests borrowed from neutron
that will be used in the future (tempest idempotent ids and policy.json)
Change-Id: Ia70506fa8cfdbcea7cc67b940761365093e94f2b
After the scenario test merge [1] our functional tests were no longer
being run by the py* tests. This patch adds a functional test
environment and updates the cover environment to include the
functional test coverage.
[1] https://review.openstack.org/172199
Change-Id: If6b1de66ed441e0c05cc8daf640b6e713d7e0708
Closes-Bug: #1630012
TESTING: Devstack plugin changes to run scenarios
Adds: Structure for tempest testing
Adds: Required tempest files and configuration for tempest testing
Adds: Octavia clients for communication with the API
Adds: Utilities for tempest testing
Adds: Mock session in method test_update_health_no_status_change of test_update_db
Co-Authored-By: Franklin Naval <franklin.naval@gmail.com>
Co-Authored-By: Madhusudhan Kandadai <madhusudhan.openstack@gmail.com>
Co-Authored-By: min wang <swiftwangster@gmail.com>
Change-Id: Ifd821ad0d94131e7dc42f2a52746ec094cf4153e
It turns out the gate doesn't actually use tox for the docs test,
so in order to catch errors in specs, this commit moves the tox
specs testing to the pep8 environment, where the gate actually does
use tox for the test.
Change-Id: I660d360eed5b109c85d7ba73d421d3973c96c452
bandit-baseline finds *new* issues introduced in a commit, by comparing
results between two git commits. If the git repository has uncommitted
changes, bandit-baseline refuses to run.
This switches over to using plain bandit instead of bandit-baseline,
and resolves or stifles existing bandit errors so we have a clean run.
These updates apply to bandit running as part of `tox -e pep8` or `tox
-e bandit`.
* Have bandit runs from tox ignore the octavia/tests directory
* Resolve several instances of `B701 jinja2_autoescape_false`
* Stifle several instances of `B303 md5`
* Resolve two instances of `B104 hardcoded_bind_all_interfaces`
* Stifle one instance of `B104 hardcoded_bind_all_interfaces` (see
https://bugs.launchpad.net/octavia/+bug/1489963)
Closes-Bug: #1621251
Related-Bug: #1489963
Change-Id: Iad3cbe5762949a6311bdd361b1f12c5a24c40633
This commit updates the tox 'docs' environment to also run our specs
tests, so that the existing docs gate merge jobs will catch any specs
that get added but don't follow the template.
This commit also updates the specs test to suppress warnings for
:doc: references in specs.
Change-Id: Ie7dda124a0c964712b1a02b55730a76fa346111e
Closes-Bug: #1621648
The bandit gate is passing, let's make it voting.
Since bandit is a security linter, add it to the linter target - called
pep8 - and run it there. This will save the CI systems spawning an extra
test machine for this.
This is the recommended approach in OpenStack CI to run all linters as
part of pep8 target - see also the consistent testing interface for
python (http://governance.openstack.org/reference/cti/python_cti.html)
that associates pep8 with "Codestyle checks".
Change-Id: Id65a50c35723b79e9b92952d138e60ee998c341c
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.
Change-Id: I1f31ac2761e793a7831676de520de08497e2fb95
Closes-Bug: #1614361
Octavia extensively uses TaskFlow flows for orchestration.
To make it easier for developers to understand these flows,
this patch adds a mechanism for generating graphviz representations
of the key Octavia TaskFlow flows.
It also updates our tox docs task to generate this documentation.
This patch depends on a fix to the TaskFlow export_to_dot method.
Added into conf.py as first step of configuration
Closes-Bug: #1561063
Change-Id: I914e1c062b400148565def37ccf618b3d2ea2573
Depends-On: I99f87af0b2bed959fcb43ef611b3186e23bd9549
Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.
Change-Id: Iaa71926035889763ee733fe64ea2336d326faa5f
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.
Change-Id: I968c8baab6b9f5c1b1b99735e16dc08158f7d8d7
Remove directories that no longer exist in the project,
for example openstack/common. This is now part of libraries
that are imported.
TrivialFix
Change-Id: I5e8abb022686c581e5faa8063b7497582122cc3e
The only targets that are left unconstrained are those that belong to
post merge queues where constraints are not yet available.
Change-Id: I0546be87a0bb2a34b8c030d883ede3c45e6d6f54
Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.
Change-Id: Ic0635f2b99c166c77757277e8273f42cdb17ce73
Since the roadmap is usually one of the first documents
that people curious about Octavia are likely to read, it makes
sense to move this to somewhere both more easily found by new
people, and more quickly updated by project leadership. As such,
this commit removes the ROADMAP.rst file from this repo, and
moves it to: https://wiki.openstack.org/wiki/Octavia/Roadmap
Change-Id: Ibce2191fbfb33c09af0f9ae0d839e1fabcf788b5
- Added an entry_point for oslo config generator
- Added a script to enumerate config options
- Added a tox target to invoke config generator
Change-Id: Ibc66efd103e790a73ef6389817e099ede65d4f32
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
Initial status daemon. What's done:
sends udp to both ipv4 and ipv6
calculates hmac
has config file in json
initial command line arg parsing
a few unit tests
Not done:
config file changes
signal support
communication from API on amphora
Serious work in progress
Change-Id: I1e7759335ac43364d27e3176cf813c4f6ef549cb