Since the dependent patch was merged in Neutron, we need to call
the register_common_config_options method explicitly to register common
options like oslo.log options.
This change updates the job template according to the tested runtimes
for Zed. This is required to remove Python 3.6/7 because these are no
Also, now unit tests are executed with current master code of Neutron,
instead of the latest release, so that we can run test with any
unreleased change in Neutron.
Add back .zuul.yaml to the project and change all references from
openstack/networking-l2gw to x/networking-l2gw
Make jobs work on ubuntu focal
Fix mysql syntax in tools/test-setup.sh
This repo is now testing only with Python 3, so let's 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 sections from setup.cfg
- Update classifiers
- Remove install_command from tox.ini, the default is fine
- Remove Babel from requirements, it's not needed for running.
- Remove unused babel.cfg and obsolete openstack-common.conf
- Use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE.
- Remove six usage
- update to hacking 3.1.0, fix problems found.
- Remove hacking and friends from lower-constraints, they are
As it was announced  global bindep-fallback.txt was removed and now
projects need to have a local bindep.txt to be able to install binary
dependencies for testing.
In test jobs the script tools/test-setup.sh is called which requires
mysql and postgres servers and clients to be installed.
Import jobs from project-config and update them:
* Use python36 instead of python35, since py35 is out of scope
for current cycle.
* Switch to using "tox -e docs" for docs building - using
build-openstack-docs-pti template. This does not publish since
networking-l2gw is not an official OpenStack project under governance
Update tox.ini for docs change.
Since this now uses python3 for docs building, switch from oslosphinx
(only working with python2) to openstackdocstheme.
Use new URL for upper-constraints file everywhere.
Update RST files where new sphinx was producing errors.
The commands used by constraints need at least tox 2.0. Update to
reflect reality, which should help with local running of constraints
This patch adds local tox targets for pep8 and python 3 as per 
that will install dependencies in editable mode.
To run them use the pep8-dev and py3-dev targets respectively.
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Instead of using tox-install.sh, we can install horizon and neutron
now directly from pypi - or use the current branch in CI system using
Update tox.ini for this change and add neutron to requirements file.
Do not leave content in /tmp of checked out repositories, cleanup after
installing. This is needed since some jobs - like translation sync - are
run on long-lived nodes and if several projects use the same directories
in /tmp, this might cause jobs failing.
Therefore use temporary directory for installation - and place this
in source directory so that git clean can remove it.
Blacklist this temporary directory from pep8 invocations.
There is no this directory openstack/common which was used to keep codes from
oslo-incubator, we have retired oslo-incubator. Removing openstack/commonfrom
all OpenStack code in favor of the Oslo libraries is a project wide goal
for the Ocata release. So don't use this directory any more. We should drop it
for improving searching efficiency.
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.
The patche does the following:
1. remove nested with calls from unit tests
2. updates tox.ini to enable us to use the \ at the end
of a line
3. All integers in python 3 are long.
4. Python 3 does not support __builtin__. Removed it from the tests.
Now the unit tests pass when running python 3.
This also adds support to tox.
Bring the sqlalchemy models in sync with the alembic migrations.
Add the neutron standard model-migration sync test. The test is added
to the unit test env since l2gw does not have a functional job
yet. This requires that l2gw uses the python-db-jobs template in the
(Also remove downgrades since they are not supported.)
This patch create the starting point to a fullstack job
that is going to be added to networking-l2gw project and run
by jenkins to run end-to-end tests for the project.
This patchset fixes the problem in HP L2GW CI due to
parallel execution of api test cases.
Patchset also ensures that all the tests run in sequential order.
This reverts commit 4f5b96e84c.
The commit edited .testr.conf which caused unit tests to be skipped
altogehter, and that is obviously not the right thing to do.
This patchset fixes the problem in HP L2GW CI where timeout
errors were reported.
Patchset also ensures that all the tests run in sequential order.
This allows neutron-db-manage to find the alembic migrations
automatically if this project is installed.
The config file alembic.ini is not needed in this project since it's
tables are in neutron's DB and so it depends on neutron's config.
Remove the l2gw-db-manage script since we will use
Update the alembic env to know about all neutron core tables when
generating diffs for --autogenerate.
Hopefully this will allow the Zuul "Depends-On" thing to work better.
Adopting the solution developed by Doug Wiegley for LBaaS:
This fixes the unit tests.
To get jenkins to pass we also need to comment out the migration
check for pep8 temporarily. This check will be re-enabled with
This change is for checking alembic migration scripts
as part of 'tox -e pep8' for networking-l2gw project.
It validates the migration timeline under,
This is a code for l2-gateway-client. Create/Update/Delete/List/Show CLIs for
l2gateway and l2-gateway-connection are implemented here.
Minor tweak to the requirements was needed to get the package to install
correctly and versioned to the tag we expect.
Before we can start writing tests successfully, there are minor
tweaks to tox that we need to take care of, like adding Neutron
as dependency. Also drop the environments we do not use at the