997 Commits

Author SHA1 Message Date
Ghanshyam Mann
f73cad3277 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I5c7e56384172751411ecf0394884feda1cfc3a3f
2022-04-30 20:20:09 -05:00
Hongbin Lu
9cc51ae2c8 Fix the bindir path
It looks the bindir should be "/usr/local/libexec/kuryr" instead.

Closes-Bug: #1970217
Change-Id: I92cb41bf22e28cbbeb9e88699432dbfadef86107
2022-04-25 13:37:51 +00:00
9408478444 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: Iec8c12c82e21a53aec31245144d4131e1a077134
2022-03-10 08:20:45 +00:00
151d17c51a Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: Ia7dca0e96be41cde7303a9b8d9a40f1478de66d2
2022-03-10 08:20:44 +00:00
e5daefc3c2 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: Iaba13af368373fa604c0a198b6ebb8f585a43e84
9.0.0
2021-09-15 02:30:58 +00:00
5c0721832a Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: If5886e167889b1c02aeee932dda70d386b6968f7
2021-09-15 02:30:56 +00:00
YuehuiLei
dbb7a4dff6 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: Ie4e3366ad01e219971595464122a6b262e55cb91
xena-em
2021-05-06 11:01:39 +08:00
f2edb0c54a 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: I60b72e28a81bd8536e48ed25f6e8beb7d0ab9863
2021-03-23 17:02:47 +00:00
03958c9dec 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: I3ce8b6ac6d8a666b75ef943d0c35dc58262c8c94
2021-03-23 17:02:39 +00:00
Maysa Macedo
8f78668092 Add doc/requirements
Specify doc requirements needs to be moved out from
test-requirements.txt to in doc/requirements.txt
to avoid problems with the pip resolver as announced by
the release team [1].

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html

Change-Id: Iac9a3421c23370f19f57d6aa84c2862ccfce2a94
wallaby-em
2021-01-05 23:03:40 -03:00
Maysa Macedo
e7bc12e5cb Fix lower-constraints job
This commit upgrades versions of kuryr-lib, MarkupSafe and
pyroute, which were required for the new pip resolver.

Change-Id: I214bcb70d05c871dc7e35ce1d0d861911f728650
2021-01-05 22:42:22 -03:00
Andrew Bonney
c34f977cfd docs: add CAP_NET_ADMIN to service AmbientCapabilities
This adds CAP_NET_ADMIN to the list of capabilities available
to the service. This is most relevant when the service runs as a
non-root user.

Related-Bug: #1852105
Change-Id: Ie50c092b723a4e5e8fc501370547711b06f77f1c
2020-12-03 14:12:18 +00:00
Zuul
e8ba97ab8d Merge "optimize size and time using --no-cache-dir" 2020-10-09 17:32:57 +00:00
Zuul
3f30c7a4f2 Merge "Run fullstack jobs on available python" 2020-10-06 02:47:01 +00:00
Pratik Raj
952e881922
optimize size and time using --no-cache-dir
Using --no-cache-dir flag in pip install ,make sure dowloaded packages
by pip don't cached on system . This is a best practise which make sure
to fetch ftom repo instead of using local cached one . Further , in case
of Docker Containers , by restricing caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Change-Id: Ia635ecb0eaea3a400a0b03031efec354d0c3c77e
Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2020-10-03 11:52:16 +05:30
Ghanshyam Mann
29342ddf6f Run fullstack jobs on available python
fullstack jobs via tox env are hardcoded to run on python3.6 which
is not available on all the etsting runtime distro version for example
Ubuntu Focal.

Story: #2007865
Task: #40192
Depends-On: https://review.opendev.org/#/c/734700/

Change-Id: I7dd539f4723983c7a7ddf54f2c3010713d84f257
2020-09-22 20:25:01 +00:00
c4d74c2d89 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: I1bbe63570cae0e8e5de2a50629e1553b28141e4f
2020-09-22 14:04:28 +00:00
d6e710d579 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: I33898b6cd8f9c00db7672603aec85636cff71cce
Sem-Ver: feature
2020-09-22 14:04:26 +00:00
Zuul
c587fc063d Merge "bump py37 to py38 in tox.ini" victoria-em 2020-09-19 14:18:09 +00:00
zhoulinhui
1fd18abbc0 Clean debug-py35 up from tox.ini
kuryr-libnetwork require python >= 3.6[1], so the debug-py35 is stale and
should be removed

[1]: https://github.com/openstack/kuryr-libnetwork/blob/master/setup.cfg#L9

Change-Id: I145008bae1789284ff6850b8c0c5f47c274ccf5a
2020-09-18 22:45:12 +08:00
zhoulinhui
1c0e6f8e45 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

Change-Id: Ice109d685d1d74951694caef0c29c656f313abe9
2020-09-18 00:43:48 +08:00
Hongbin Lu
b096b19a5f Remove unnecessary "run" and "post-run"
Change-Id: I8fa392718c2a747a99639d0bd1fa1e2e97a7b47a
2020-07-25 23:06:26 +00:00
Hongbin Lu
055745136e Migrate jobs to zuulv3 native
Migrate the following jobs to zuul v3:
* kuryr-libnetwork-fullstack-py3
* kuryr-libnetwork-kuryr_lib-src-fullstack
* kuryr-libnetwork-install
* kuryr-libnetwork-fullstack-ipv6-only

Remove the following unused jobs:
* kuryr-libnetwork-install-multinode

Change-Id: I54d784fe0bded5f461ba9f26ed901ec042a6bd0d
2020-07-22 02:06:45 +00:00
Hongbin Lu
8eee0968b9 Use python3 by default in all jobs
Change-Id: I823085b73ec816177a1f63c22eb4b7438bbd560a
2020-07-20 01:12:50 +00:00
Zuul
3c1a92403f Merge "Handle subnet without gateway" 2020-06-26 19:59:02 +00:00
Hongbin Lu
243e500e8c Install tox before running tests
We run tests by using 'tox' so we need to install it.

Change-Id: I95d3354b4f691850af8cc6f4c6af4c9e98e5cb1f
2020-06-26 02:54:56 +00:00
Michał Dulko
47dc0e759f Inform that single +2 is required to merge patches
This was agreed with active devs of the project and raised on the
mailing list [1]. From now on, we can merge patches with only a single
+2 vote in Gerrit.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-June/015440.html

Change-Id: I0b631401cdb9a293a4eaeda6c7d9e0d41cb01cee
2020-06-23 13:05:36 +02:00
lidong
3fc01f57fd Add blueprints link to README
Change-Id: I0adb8922f36365b9c0e3f436341bd03f77b8a5f7
2020-06-10 09:01:06 +08:00
Hervé Beraud
63e7072a89 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I264cfc61d6f20ac0842931b793bf72935fdd550d
2020-06-09 01:19:35 +02:00
Zuul
a6e231f876 Merge "Remove six" 2020-06-08 13:47:00 +00:00
Hongbin Lu
960993652e Handle subnet without gateway
* When libnetwork requests the IP address of the gateway
  (via /IpamDriver.RequestAddress) and the neutron subnet has gateway
  as None, return '0.0.0.0/0' as a placeholder.
* Disable default docker gateway via the 'DisableGatewayService' flag
  (see https://github.com/moby/libnetwork/pull/778).

Change-Id: I3033d28eb268a01de8cf038b1ed20110ca9a31ea
Closes-Bug: #1881910
2020-06-08 05:10:02 +00:00
Zuul
3bd07c557c Merge "Cap jsonschema 3.2.0 as the minimal version" 2020-06-03 16:37:37 +00:00
Andreas Jaeger
e544677d39 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.

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.

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: If74b848e1f63a0e116737553fec8ab76d63457f5
2020-05-30 18:41:53 +02:00
gugug
075a8cb96b Remove six
We don't need this in a Python 3-only world.

Change-Id: I14ed209a18ab572c073400fabdd28fd639d55240
2020-05-28 00:03:18 +08:00
Hervé Beraud
4cf3d16522 Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Ib5308485e50cc076855cc8e1df72b02d208febe1
2020-05-26 21:52:07 +02:00
Zuul
4c445c2198 Merge "Fix pygments style" 2020-05-26 15:23:25 +00:00
Zuul
de1057c9e6 Merge "Add releasenotes link to README" 2020-05-26 12:32:30 +00:00
jacky06
036703c8d4 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I71b869fc509cb46b55b1e88fae20422bcba085f7
2020-05-23 00:03:51 +00:00
gugug
7524152766 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html


Change-Id: I26b15daf38616c29ac4b2cf0f68be6eb975577cb
2020-05-21 01:18:39 +00:00
Zuul
5c03de1668 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2020-05-19 08:08:30 +00:00
lidong
fcdb395e76 Add releasenotes link to README
Change-Id: I37f2acd77a953c67e18f0772cd1aa3d47e62f6a0
2020-05-19 06:30:05 +00:00
gujin
910f2e72db Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org counterparts.

Change-Id: Ia04c82127761ee818a37efe6cf9137987f8262f8
2020-05-17 04:38:56 +00:00
melissaml
085fb3c9c5 Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I6478639b17968e5eb5e44ffcbca2ca65cbc995f7
2020-05-14 17:51:40 +08:00
afecf766f5 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: Ibd57244400306ed8b976f61c3e45428e537b098c
2020-04-22 16:25:08 +00:00
e6541de2bd 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: I0c83a8eedb3e50c2dc39c7d690f3457aecebf585
Sem-Ver: feature
2020-04-22 16:25:06 +00:00
Sean McGinnis
bf8a79a5e1
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: I9357128c04f2fe0284432c1f6a543d63309efda3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:53:56 -05:00
Andreas Jaeger
d63d664b28 Fix doc building
Use sphinx-build, this fixes doc building so that the generated content
is available for publishing again.

(change I0dbb13d555eb473916ba585c62a0f7433d15afed broke this)

Change-Id: Ib7c6b7437abc0b5c500a5afdaaf79a045f7df9fe
2020-04-06 14:48:39 +02:00
Andreas Jaeger
bfbaea9749 Cleanup py27 support
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:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I0dbb13d555eb473916ba585c62a0f7433d15afed
2020-04-05 09:21:00 +02:00
Sean McGinnis
21e4e3455a
Uncap jsonschema
Global requirements has uncapped jsonschema, so we need to do so here
too.

Change-Id: I525215e95ebe4b155a17e0e187e9aca27a8217bb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-13 13:58:37 -05:00
Zuul
559e89b069 Merge "Update docs and scripts for using python3" 2020-02-26 12:06:43 +00:00