The neutron.common.rpc and exceptions were rehomed into neutron-lib and
are currently shimmed in neutron [1]
This patch consumes those modules from neutron-lib by using lib's
modules rather than neutrons.
[1] https://review.openstack.org/#/c/586525/
Change-Id: Ic95e9ab17fa6ba3b12cea7837322f113d0084aeb
This patch switches the use of openstack-tox-lower-constraints over to
openstack-lower-constraints-jobs-neutron so that neutron is installed
from source rather than pypi.
Change-Id: Ie59cc6107b836e5a581e6260d3eacb7a2993e8e1
To access neutron objects we're moving to a dynamic plugin approach as
shown in the depends on and related patches.
This patch removes the imports of neutron.objects and uses neutron-lib
to load them instead.
Change-Id: I63bf23a6c116388dd038cfb4b75721f314997bca
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: Id6e30be7b063e3ae42590068d4a25b7c563d67a3
The model_query module is in neutron-lib and the CommonDBMixin will
eventually be removed. This patch swiches use of the _model_query
method over to query_with_hooks from neutron-lib.
This patch also bumps the neutron-lib version up to 1.20.0
Change-Id: I3f2711239772a41ccb6a0d7eb19f11326f125e86
Access to neutron.db.api's context manager is already in neutron-lib
and in fact neutron is already using it as a shim. This patch switches
over context manager access to use neutron-lib's accessors.
Also see https://review.openstack.org/#/c/613122
Change-Id: Id07fb7da50f80a3434c6bf790ffddf2bb25a6796
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: I1d2d013695d783cee0ea3e8caf69a71da6a9028c
Closes-Bug: #1801465
Because:
- They are not necessary.
- Neutron agent scheduler code (reschedule_resources_from_down_agents)
seems to (correctly) assume each get_admin_context() call returns
a fresh context. This mocking breaks it.
- Right now, Neutron agentdb uses the new engine facade [1] and
Neutron agent scheduler doesn't. It causes caching issue in our
unit tests. (See the Related-Bug) Stopping reusing contexts
(thus sessions) would prevent the issue.
[1] https://review.openstack.org/#/c/611462/
Related-Bug: #1803745
Change-Id: Ia986f98f8bda9c7cde33af3dfdf2e45a2685fd6d
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: I383a87c917dcdf9469d57b55ab2630420e3ac87c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Argument is config_file, but conf is used in method, just
change definition. Necessary if using python3.
Change-Id: I6d92b3718810589c35974571278574d0906fce36
With moving away from required milestone releases, the version numbers
calculated by PBR on the master branch will not work for those testing
upgrades from the last stable release. More details can be found in the
mailing list post here:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/135706.html
This is an empty commit that will cause PBR to increment its calculated
version to get around this.
PBR will see the following which will cause it to increment the version:
Sem-Ver: feature
Please merge this patch as soon as possible to support those testing
upgrades.
Change-Id: I4e2f92a467c45617328e616b677de4afdf7d0846
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Small cleanups:
* Use openstack-tox-cover template, this runs the cover job
in the check queue only. Remove individual cover jobs.
* Use openstack-lower-constraints-jobs template, remove individual
jobs.
Change-Id: I5945969c4afbb61fc97271ed09dad61e0c96ae62
As part of the Denver PTG [1] we decided networking related projects
that are "current" and want to receive neutron-lib consumption patches
on an on-going basis should indicate such with a well defined comment
in their requirements.txt. This allows us to easily find the list of
project to receive neutron-lib consumption patches [2] by searching for
the string.
In addition, projects opting-in for these patches are also attesting
they will stay up to date with TC and infra initiatives to ensure
consumption patches can flow freely.
This patch adds the "neutron-lib-current" string to requirements.txt
opting in for neutron-lib consumption patches.
[1] https://etherpad.openstack.org/p/neutron-stein-ptg
[2] https://docs.openstack.org/neutron-lib/latest/contributor/contributing.html#phase-4-consume
Change-Id: Ie153c218d631ad373881d8bf39617b8483342988
In python3.6 the path used by os.path.join can be either
a string or bytes, so mock the neutron.common.config.init
to return a string so the tests pass with python3.6.
Change-Id: I10b399edb76b2ed3a2a235f9f4ec278ef94c4251
Signed-off-by: Chuck Short <chucks@redhat.com>
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I05678e6e768fc919208ca77e0c4e9a6a0505c364
Story: #2002586
Task: #24314
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I9e153979d5b06d97942ae1a1a44156eae5dea2af
Story: #2002586
Task: #24314
Neutron-lib 1.18.0 is our Rocky RC and is already being used by neutron
[1]. This patch updates the neutron-lib required version to match
neutron [1] in prep for the Rocky release.
[1] https://review.openstack.org/#/c/583671/
To work with neutron-lib 1.18.0, we need Rocky version of neutron,
so the minimum version of neutron is bumped to 13.0.0.0b2 (Rocky-2).
We also need to bump the minimum version of SQLAlchemy. Rocky neutron
depends on pending_to_persistent ORM event in SQLAlchemy which was added
in SQLAlchemy 1.1. Rocky neutron now requires SqlAlchemy>=1.2.0,
so the min version of SQLAlchemy is bumped to 1.2.0.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Ifa33d7bc000ebbcf5e0f130fe0e0e34207f3361c
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I9fd237292f7da50e60da398b1649001bf1829c66
Reserving subnet CIDR make impossible to reuse the same
CIDR for a subnet twice for the test case class.
Change-Id: Ia32f0e3fea509d1eb0074f5d4bdaf5b02b6dcae0
Depends-On: I421dd28999086ee0af9246121f4f033291e341b4
Closes-Bug: #1766702
1. remove unused requirement: mock-requests. This is due to the fact
that is is unused.
2. Update sphinx
3. Uncap evenlet: uncap eventlet. We will manage the eventlet
version using constraints now. See the thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.
4. Update RYU to be 4.24 to sort out issues with pip 10
Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Change-Id: I855f88ca09a735054c3582f16d8eff977dc53ce1
The create_connection function in neutron.common.rpc is just an alias to
Connection. This patch switches to the later so we can remove the former
in: https://review.openstack.org/#/c/560130
Change-Id: Ie8eaca442fa2872fe061f997898d9cd7d9195c9d
New releases of oslo.config support a 'mutable' parameter to Opts.
This is only respected when the new method mutate_config_files is
called instead of reload_config_files. Neutron-dynamic-routing
delegates making this call to oslo.service.
This was provided in patchset
Icec3e664f3fe72614e373b2938e8dee53cf8bc5e
Further patches will be needed to make select config options be
marked as mutable. This change enables support for oslo provided
config options to be updated via SIGHUP such as log level.
Change-Id: Icb405ae7197af7507469593e8555b833186c0e68
Task: 12505
Story: 2001545
Since a separate job has not been created [0], move the scenario test
into the basic directory so that it will be executed there.
Set TEMPEST_CONCURRENCY=1 for the basic scenario job in order to avoid
resource collisions.
[0] https://review.openstack.org/529256
Change-Id: Idbf2739a585473fdf1d364ad1ee263ad359fd750
The ``verbose`` option has been deprecated for a long time and no longer
exists in the config. So do not set it for our agent.
Change-Id: Ief48c4d1185f2edf35152b92b2ba18339c34da47