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
longer supported.
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.
Closes-Bug: #1977980
Related-Bug: #1968606
Depends-on: https://review.opendev.org/c/openstack/neutron/+/837392
Change-Id: I1ac3557fcd6eba187d52686345040c5fdfb4f7e9
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
Change-Id: Ic48f3d8ae8786b9ea98abba94b44ff4cb804ccc8
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
blacklisted
Change-Id: I6321b612f37bca7b441171814b059eaad03d9f24
Python 2 will be EOL at the end of 2019. Ussuri will no longer support
Python 2 so it's safe to remove python2 jobs and save some CI resources.
Change-Id: I12ec23f9f8879b984099cce3495f4687dd2e0f61
As it was announced [1] 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.
[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html
Change-Id: Iad7a49bae622cbae5203d69170e52c81e3066ba1
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
anymore.
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.
Needed-By: https://review.opendev.org/661542
Change-Id: Ic59f532e31647bc58aba236bf440b7bca934d36d
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: I825550ecc5a3a15b981a177300d152f23a6541e9
Closes-Bug: #1801467
This patch adds local tox targets for pep8 and python 3 as per [1]
that will install dependencies in editable mode.
To run them use the pep8-dev and py3-dev targets respectively.
[1] https://etherpad.openstack.org/p/neutron-sibling-setup
Change-Id: I1ef1c509576c7500ab840362700d700768613b3a
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.
Change-Id: Ia0b0ae80af2e10fc305d67b333da6e1666390c4d
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I425974aa60496e635517e64ab900ec2fa66c0e12
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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
tox-siblings.
Update tox.ini for this change and add neutron to requirements file.
Change-Id: Ie9cd8a4431ca4981e2cef7de735c7f25fc93bf19
https://review.openstack.org/#/c/527159/
sets the tempest plugin in a separate repo.
Change-Id: If72115f08f7cd965db3b42da7e07ec94fe5cc7b7
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
This commit fixes tempest installation issues on upper_constraints,
which was failing with Could not satisfy constraints error.
Change-Id: Ie2e7372435bb03e056c67608b6c6322d8c25deb3
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.
Change-Id: Ided3cb0335a13d4791df6f22c60db4a0d79ebc88
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.
Change-Id: I71fb255c0d6b0e795d931c8ca2041446e3a77618
Also sync tox_install.sh with other neutron stadium projects.
Change-Id: I7881231e663d1c608edf78fc5126fc41708c377c
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
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: I76c46dd841663c2b6ac12115dc72fee06de2d6af
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.
Change-Id: Iacbf0c2c05248819af817109e7dd637f71c82404
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
gate.
(Also remove downgrades since they are not supported.)
Closes-Bug: #1605675
Depends-On: I3a8ea02b86846e9a8a7d7f2aee9700ca952b0248
Change-Id: Ib73f554d5f0bbfbe25a0f6ad33b23e4584800e21
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.
Change-Id: I48885cd5be25cbf24c6ef10c7e96aaf55a9f18a9
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.
Change-Id: I2d9313132393c0ad55acdf84d15c8d7ae9188833
Closes-bug: 1517758
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.
Conflicts:
tox.ini
Change-Id: I404e725f33e20f75c33bb794f326e46176d54f10
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.
Change-Id: I977b52ba87112b3d5b7aefee408bd3d14c632fec
Closes-bug: 1517758
Giving the test more time to complete should reduce
the failure rate for networking-l2gw
Change-Id: I190e2607fbf817e0fe1d1bfe37c9e7c16230d3db
Closes-Bug: #1486156
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
neutron-db-manage.
Update the alembic env to know about all neutron core tables when
generating diffs for --autogenerate.
Partial-Bug: #1470625
Depends-On: I9a06de64ce35675af28adf819de6f22dc832390d
Change-Id: I581932d333e378d91d5b581760018ec274330681
Hopefully this will allow the Zuul "Depends-On" thing to work better.
Adopting the solution developed by Doug Wiegley for LBaaS:
c61f920f2a54fd829ee37484b3743ab77b909847
Change-Id: Id3f716b9f151dbb99cc02ddec00a841bea7ad463
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
https://review.openstack.org/205866
Change-Id: If8484812e7cd026727b920fa70182db23154df58
This patch adds a number of positive and negative tests for
the L2Gateway functionality implemented by networking stackforge
Change-Id: I0b5e76da2c66cc2caf3d041ccde974a184f4c4e3
This change is for checking alembic migration scripts
as part of 'tox -e pep8' for networking-l2gw project.
It validates the migration timeline under,
networking_l2gw/db/migration/alembic_migrations/versions directory.
Change-Id: Icb3ba996c77a3f2dc444541a32630cfcaf0d5eae
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.
Change-Id: I1c722643b63a523670862a6c804b19b0b6bac585
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
moment.
Change-Id: I6514db90f1523267eb7b4cda51a291598442ef3a