3322 Commits

Author SHA1 Message Date
Zuul
0eb57b10dd Merge "setup.cfg: Replace dashes with underscores" 2021-08-10 09:19:19 +00:00
likui
66d6204933 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of
dash-separated options in 'setup.cfg' will not be supported
in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages
like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I9ff2cdf3d1e2d262c53933d8151b982f87f1122c
2021-05-19 09:57:18 +08:00
likui
042e32aa93 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I38355c133f41bfad8125f81b2334176cc3972117
2021-05-19 09:54:10 +08:00
elajkat
5312d23b43 pdf-docs: use UPPER_CONSTRAINTS_FILE for doc build
UPPER_CONSTRAINTS_FILE was not used for testenv:docs, and a recent
sphinx release seems to break pdf doc build, to avoid it use upper
constraints in tox.ini

Change-Id: Ica52306c9c2ca2d64161b09317735ed740bd4d32
2.0.0
2021-05-18 11:35:29 +02:00
Zuul
3ddf69bd5e Merge "Add requirements-check job for os-ken" 2021-03-24 08:07:01 +00:00
Zuul
78a8de70ec Merge "Remove os_ken/app and os_ken/services/protocols/bgp/api/jsonrpc modules" 2021-03-24 08:03:56 +00:00
0220f50e8c Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I82d0d9fe704a6468e9e4b4289d0db4d7bbb7cf5a
2021-03-18 12:52:45 +00:00
9223eb9adf Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I0541dd6507be9c7a68044d2bac7280e1e404e987
2021-03-18 12:52:15 +00:00
Slawek Kaplonski
bfffa92ecc Add requirements-check job for os-ken
Story: #2008648
Task: #41926

Change-Id: Ifbcf479291d28caece98c7a8eca69a7bb2f0bd08
2021-03-03 07:50:09 +00:00
Slawek Kaplonski
cd4926b235 Remove os_ken/app and os_ken/services/protocols/bgp/api/jsonrpc modules
The os_ken/services/protocols/bgp/api/jsonrpc.py module was using
os_ken/app and os_ken app is the only one which was using tinyrpc lib.
Modules under os_ken/app except os_ken/app/ofctl are not used in neutron
and neutron-dynamic-routing so lets drop them from the code.

With that we can also drop tinyrpc from the requirements file at all.

Task: #41912
Story: #2008648
Change-Id: Ic35d1f7ee4112bc5cf16fee3d828534ded26ce7f
2021-03-02 08:29:32 +09:00
Akihiro Motoki
28b0341e48 Fix lower-constraints job
The summary of changes in lower-constraints.txt are as below.

* Address version mismatch of eventlet in requirements.txt and
  lower-constraints.txt. eventlet 0.21.0 is blocked in
  global-requirements.txt, so the min version is set to 0.22.0.
* pytz version in l-c is bumped to satisfy Babel requirement.
* Update the min version of msgpack to 0.5.0 as 0.3.0 is not
  available in PyPI. msgpack-python is dropped as it is not used.
* Drop linter-specific entries from lower-constraints.txt
* hacking in l-c is updated to match the version in test-requirements.

I also ran requirements-check script locally and detected
a lot of inconsistencies in requirements related files in os-ken.
Errors detected by the script are fixed in this commit too.

NOTE: The above inconsistencies were not detected mainly because
we don't have requirements-check job in os-ken CI.
Perhaps it is due to 'tinyrpc' which is not included in g-r.
It is better to enable requirements-check job in os-ken CI,
but we need to add tinyrpc to global-requirements.txt or drop
tinyrpc dependencies (for example, by dropping os-ken/app
as tinyrpc is used only in os-ken/app).

Change-Id: I19617aee765f9086fbfdb67fb17839b83d9df48c
1.4.0
2021-02-10 10:56:49 +09:00
likui
ee19c59a9b Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/

Change-Id: Ie06d4e049e5e82fc0f75b8f3791b0b39594782b3
1.3.0
2020-11-01 16:36:53 +08:00
Zuul
c3d054c827 Merge "Add Python3 wallaby unit tests" 2020-09-17 00:48:28 +00:00
Zuul
c172a50cd8 Merge "Update master for stable/victoria" 2020-09-16 23:47:16 +00:00
Zuul
a813d93fea Merge "Add basic tempest-integrated-networking job to os-ken ci" 2020-09-16 19:14:51 +00:00
Slawek Kaplonski
43e7848b18 Add basic tempest-integrated-networking job to os-ken ci
Os-ken is library which us used a lot in the Neutron so we should
be sure that new patches in os-ken will not break Neutron.
To ensure that this patch adds tempest-integrated-networking job to the
check and gate queues in os-ken.

Change-Id: I3e5db6b6c2a3147f96f759948be9a0fcba184209
2020-09-16 12:11:00 +00:00
Bernard Cafarelli
ec04d5c427
Limit sockaddr UT to little-endian systems
I was notified that these new tests fail on s390, so test endianness
before running them

Change-Id: I571a83fa7e7bc38037c1aa656c982d638974ffee
Story: 2007910
Task: 40894
2020-09-16 14:01:58 +02:00
a130ac7a87 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I972a93ec691f4e8a6dca4686ef39d278087bd75f
2020-09-16 11:18:07 +00:00
3a34619f11 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I3381d14c6bb71d06bb7b5ebcbace61d0f54f47e3
Sem-Ver: feature
2020-09-16 11:17:59 +00:00
Bernard Cafarelli
f61da64144
Fix lower-constraints and pep8 for Focal
Bump lower-constraints to versions supporting python 3.8 and with wheels
available and sync requirements

Bump hacking to 3.2.0 in order to work with Focal, disabling W504
to align with neutron and F405 (similar F403 is already disabled and it
needs a large fix)

Change-Id: I6b6329b2bb7a117f7426fdd63186d321290d9b67
2020-09-16 12:56:36 +02:00
Zuul
0703a9238c Merge "Fix sockaddr lib with python 3" 1.2.0 2020-09-03 09:17:28 +00:00
Bernard Cafarelli
9a5aa8b720
Fix sockaddr lib with python 3
Padding did not work and this lib did not have tests

Sample failure seen in neutron-dynamic-routing:
neutron-bgp-dragent[29325]: TypeError: can't concat str to bytes

Story: 2007910
Task: 40311
Change-Id: If616980b2c6d7303cdc5d4f5e7247d63e4c34939
2020-09-03 09:11:02 +02:00
Zuul
6aa79bf3ee Merge "Clean python2 remained stuff" 2020-09-02 20:01:18 +00:00
Zuul
c6b5847329 Merge "Remove elementtree deprecated methods" 2020-09-02 20:01:17 +00:00
gugug
195ec82629 Clean python2 remained stuff
Change-Id: I9658ebaa911f129f567197ff7ad531e093f9752f
2020-08-30 23:12:55 +08:00
Bernard Cafarelli
9c04dc0c6f
Update some URLs in README and tox
Use opendev.org URLs, point to storyboard instead of launchpad

Change-Id: Ib609aeadfde08cb4c3767d51c3c9ec906504f8a7
2020-07-08 14:08:19 +02:00
Hervé Beraud
5d05bcbe14 Remove elementtree deprecated methods
All our supported runtimes [1] are compatible with the recommended
alternatives.

`Element.getiterator` [2] is deprecated since python 3.2 and will be removed
in python 3.9, these changes switch usages to Element.iter() [3]

[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-train
[2] https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.getiterator
[3] https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.iter

Change-Id: Iaf5291698d866c9c86cda0f255799d8f10fff3dd
2020-06-23 11:26:20 +02:00
Zuul
a123234b00 Merge "Monkey patch original current_thread _active" 2020-06-22 19:30:26 +00:00
Chris MacNaughton
4706b6c295
Monkey patch original current_thread _active
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592

Change-Id: Icb26c43a71accdb4658ad6087fb3226f9a1090c0
Story: 2007614
2020-06-22 08:05:08 +02:00
Zuul
1128ef4881 Merge "Remove translation sections from setup.cfg" 2020-06-19 17:13:29 +00:00
Hervé Beraud
a550ea1084 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ieccdcdcec557efe480dcf3546299718b0baa37a4
2020-06-18 12:24:22 +02:00
wu.chunyang
3616b29ccf Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Remove babel.cfg as well, this is the default role and not needed
anymore.

also remove Babel from requirements[1]
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: I073d3d7e2f2e8a4f06c17541a0f4d4fedcaed2dc
2020-06-16 00:24:58 +08:00
Hervé Beraud
778ed750a0 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I03172d63f61cba012ec4f85b20106744c9c24a1c
1.1.0
2020-06-11 11:02:42 +02:00
Andreas Jaeger
dd379ae2f6 Switch to newer openstackdocstheme and reno versions
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

Update Sphinx version as well.

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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I2e87016e0dbabf0e5c2b6f05b8b3a2e0d026e20c
2020-05-23 18:09:47 +02:00
Zuul
4b489435e1 Merge "Bump default tox env from py37 to py38" 2020-04-26 12:30:32 +00:00
Sean McGinnis
2d31e3b0ff
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I27363c065ba3410db07a4d343854d9f3145da83a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:48 -05:00
Sean McGinnis
082988c7c5
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I7eafe056d570417d49e26de61b5c0316d0bf09a6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:11 -05:00
Zuul
67985512d1 Merge "Add Python3 victoria unit tests" 2020-04-20 09:05:00 +00:00
Zuul
adcee7e09f Merge "Update master for stable/ussuri" 2020-04-20 09:04:58 +00:00
Sean McGinnis
850deafdf2
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ifb209347ec1748e143d1e93a5da8f40596cd0e39
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:56:52 -05:00
8f0cfbf9e4 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ic6a9406023ae3a44a1d177e605859ac7eb276007
2020-04-11 18:46:07 +00:00
d0f046488a Update master for stable/ussuri
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: I8783d496616a77c3ec6d70c3295f3a17de0e7e80
Sem-Ver: feature
2020-04-11 18:46:02 +00:00
Rodolfo Alonso Hernandez
1f751b2d7d Replace deprecated brctl with ip commands
The bridge-utils package has been deprecated for some time now [1] and
'brctl' does not exist on some more recent distros like Fedora 28.
Replace references to brctl with the proper ip commands.

Calls to "brctl show" are not being replaced with calls to "bridge link"
because the output format is very different and in testing some bridges
were not listed.  So the simpler method of consulting /sys/class/net is
used.

[1] https://lwn.net/Articles/703776/ for example

Change-Id: I8a4891bb7ed44dc25ba3f79d2ace6927313c17b3
Related-Bug: #1801919
1.0.0 ussuri-em
2020-01-21 13:36:03 +00:00
Rodolfo Alonso Hernandez
3134ffe712 Drop Python2 support and testing
Remove Python2 CI testing and set the minimum Python version required
in setup.cfg.

Change-Id: Ifc65c94c00990bc50a5ae3789b71ae8c24b99e94
2020-01-18 19:29:14 +00:00
Akihiro Motoki
d74ca437b4 doc: Improve the document structure
This commit updates the document structure to fix
both HTML and PDF versions.
Some minor fixes are also included.

* doc/source/conf.py: Specify openany and oneside
  as extra class options for LaTeX.
* doc/source/conf.py: Specify the depth of TOC for PDF.
* Create a separate top page for "Archived Contents"
* Adjust the content of doc/source/contributor/index.rst
  to avoid unnecessary subsection.
* Drop strings from the top page as they leads to
  separate pages in the PDF file.
* Add "T.B.D." comments to placeholder documents.
* CONTRIBUTING.rst: Remove unnecessary markups for quoting texts.
* doc/source/parameters.rst: Update the mailing list link.

Story: 2006099
Task: 35137
Change-Id: I5fc03cd8ba53df58ee75e1c1bac4e906f840ec4e
2019-10-01 17:18:14 +09:00
Zuul
dc3e10d417 Merge "Update master for stable/train" 2019-09-27 21:26:20 +00:00
99e3b65d3a Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I21d417ac68b1d6f456c73fe0dbceabce3d648f6d
Sem-Ver: feature
2019-09-20 16:27:47 +00:00
Akihiro Motoki
0d2059f933 PDF documentation build
It turns out that blank lines are not allowed in tables in
the latex builder. Otherwise, LaTeX complication fails.
A blank line in the docstring of 'bfd' class in os_ken/lib/packet/bfd.py
was dropped to pass LaTeX build.

Note that the structure of the generated PDF is not good (bad enough?).
This will be updated later.

Change-Id: Iec62042d4642d50d411478fadfa09e6a6bbf0a42
Story: 2006099
Task: 35137
2019-09-05 23:13:31 +09:00
Corey Bryant
8f7851a727 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: If9a09aa250139d8585445c3a892f71074e7637c7
Story: #2005924
Task: #34225
train-em 0.4.1
2019-07-05 13:55:38 -04:00
Zuul
2ba552d527 Merge "Change openstack-dev to openstack-discuss" 0.4.0 2019-05-28 13:02:19 +00:00