summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Use yaml.safe_load instead of yaml.load" into stable/wallabywallaby-em7.3.1stable/wallabyZuul2022-03-302-4/+4
|\
| * Use yaml.safe_load instead of yaml.loadTakashi Kajinami2022-03-252-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since PyYAML 5.1, yaml.load without specifying the Loader option is deprecated and shows the following warning. YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. This change replaces usage of yaml.load by yaml.safe_load, to get rid of that warning message. Change-Id: Ibe25c4aaf3aa7226f28ec60b8a929ecc143face1 (cherry picked from commit f83108d85874a87e47b51af3eebc9faeeb11faa0)
* | tests: change safe_hasattr to hasattrelajkat2022-03-251-3/+2
|/ | | | | | | | | | | | | | | testtools 2.5.0 removed the helper (see [0]) safe_hasattr, and assumes that the hasattr implementation in python reliable enough now. NOTE(mlavalle): The patch from which this one was cherry-picked from also disbled a test case in neutronclient/tests/functional/core/test_readonly_neutron.py. That is not needed in this back port. [0] https://github.com/testing-cabal/testtools/blob/2.5.0/NEWS#L31 Change-Id: I4fe6fabc4f745e2c9a366e30dbea7e7200151f12 (cherry picked from commit 23fb666f923e9fa117ce5744e9abe00d3874d3fc)
* Dropping lower constraints testing (stable Wallaby)Miguel Lavalle2022-03-254-119/+1
| | | | | | | | | | | As decided in Neutron meeting, stable branches will drop this CI job [1]. Also, a [B105:hardcoded_password_string] bandit issue is fixed [1] http://eavesdrop.openstack.org/meetings/networking/2021/networking.2021-01-12-14.00.log.html Change-Id: Ic1300f7aa03efe8fc82d1210dea44ff841465a79
* Update TOX_CONSTRAINTS_FILE for stable/wallabyOpenStack Release Bot2021-03-221-3/+3
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/wallaby branch, tests will continue to use the upper-constraints list on master. Change-Id: I429305b782e765ab5ec33d7130b3b13bac75804f
* Update .gitreview for stable/wallabyOpenStack Release Bot2021-03-221-0/+1
| | | | Change-Id: Ide350b5218bbccf965b2553c88e57c85e498ca5f
* Fix lower constraintsElod Illes2021-03-222-12/+12
| | | | | | | | | | | | | This patch updates lower-constraints.txt to eliminate contradictions. keystoneauth1 lower constraint has to be bumped in requirements.txt as another dependency, openstacksdk 0.15.0 depends on keystoneauth1>=3.8.0 dogpile.cache version bumped to 0.6.5 as older version had 'async' as variable name which gives SyntaxError from py37. Change-Id: I31464518cb7f76c0fa5275a4ef52b2a6b634cfa3 (cherry picked from commit d87683b59b8f755890e71fb8a73f537215beb60b)
* remove unicode from code7.3.0zhangboye2021-01-032-5/+5
| | | | Change-Id: I2521c2ba836b6a332883134112b6f99d996cc4e4
* Dep's should be restricted by tox-constraintswu.shiming2020-11-201-2/+6
| | | | | | | | Tox trying to install latest versions for building docs which may not be supported by stable and lower branches, so should be restricted by respective version's tox-constraints.txt Change-Id: Iecd29788d1c94fd727072aa5dd7fe5d828dbf174
* Update requirements URLs in tox configlikui2020-11-021-1/+1
| | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so will switch to the correct upper-constraints list automatically when the requirements repository branches. Change-Id: I496dfbc709ecd864f619618252ef5dc992216ca7
* Add Python3 wallaby unit testsOpenStack Release Bot2020-09-101-1/+1
| | | | | | | | | | | 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: I26b3f45c78c1230a8b7d7faa46b504ac7cd0cc4b
* Update master for stable/victoriaOpenStack Release Bot2020-09-102-0/+7
| | | | | | | | | | | | 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: I09f54e58239b6c2e77f69bff07bc7fe72ce4690d Sem-Ver: feature
* Fix lower-constraints for FocalBernard Cafarelli2020-09-102-7/+7
| | | | | | | Bump to versions supporting python 3.8 and with wheels available and sync requirements Change-Id: Ibcd16c9a9f691775af428ec447f4ebf9baea5e86
* Merge "Allow 4byte ASNs in dynamic routing client"victoria-em7.2.1Zuul2020-09-084-6/+8
|\
| * Allow 4byte ASNs in dynamic routing clientJens Harbott2020-09-014-6/+8
| | | | | | | | | | | | | | | | | | | | Neutron-dynamic-routing has the bgp_4byte_asn extension which allows 4byte ASNs to be used, increasing the range of valid AS numbers. Since we cannot easily tell beforehand whether that extension is available, allow for the maximal interval to be used by clients and let the API validate the input. Change-Id: Ib4695272784b4a5ebbcb792cfec82dac3ef6f3cf
* | Merge "Add aggressive negotiation mode for ikepolicy"Zuul2020-09-083-1/+26
|\ \
| * | Add aggressive negotiation mode for ikepolicyzhanghao2020-05-133-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | The phase1 negotiation mode adds support for aggressive mode, which can be selected when creating an ikepolicy. Change-Id: I8148011558094db07b5f9eba70b16cfe6eeaf98f Partial-Bug: #1701413
* | | Merge "Remove translation sections from setup.cfg"Zuul2020-09-082-16/+0
|\ \ \ | |_|/ |/| |
| * | Remove translation sections from setup.cfgmelissaml2020-08-142-16/+0
| | | | | | | | | | | | | | | | | | | | | These translation sections are not needed anymore, Babel can generate translation files without them. Change-Id: If20aa86f21807497c5dfefb0f34f771040517c6f
* | | zuul: native Zuul v3 version of the grenade jobLuigi Toscano2020-08-103-81/+13
| | | | | | | | | | | | | | | | | | | | | Also fix the name according the guidelines. This job should really live inside neutron-lib. Change-Id: I76043ea43efe1c78ba9637876ed6a8b997b6d0ee
* | | Merge "lower-constraints: Drop os-testr, mox3"Zuul2020-07-211-2/+0
|\ \ \
| * | | lower-constraints: Drop os-testr, mox3Stephen Finucane2020-07-091-2/+0
| |/ / | | | | | | | | | | | | | | | | | | They're no longer used. Change-Id: Ic8b68f900c2d42a3f5e1508ddde2821cb12b696e Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | | Fix description of bgp speaker set argJens Harbott2020-07-121-1/+1
|/ / | | | | | | | | | | | | The name argument for bgp speaker set defines the new name for the speaker, make the description more clear about this. Change-Id: I29a0c87214c3c60084d0541f8b9a7abc72ff987f
* | Use unittest.mock instead of mock7.2.0Hervé Beraud2020-06-091-1/+1
| | | | | | | | | | | | | | | | 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: Ia7226d968b8594677fc8dea664b58a80ba193ac5
* | Merge "Use unittest.mock instead of third party mock"Zuul2020-06-0551-53/+50
|\ \
| * | Use unittest.mock instead of third party mockSean McGinnis2020-06-0151-53/+50
| | | | | | | | | | | | | | | | | | | | | | | | 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: I12e1a2a4a22116cabd09a3b808f871d98e4bd1f2 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | | Merge "Stop to use the __future__ module."Zuul2020-06-0413-26/+0
|\ \ \
| * | | Stop to use the __future__ module.Hervé Beraud2020-06-0213-26/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I65fb53db889afcf1a947ea61094bfab877853324
* | | Merge "Add segments client code"Zuul2020-06-032-0/+30
|\ \ \ | |/ / |/| |
| * | Add segments client codeelajkat2020-05-182-0/+30
| | | | | | | | | | | | | | | | | | | | | Related-Bug: #1878632 Needed-By: https://review.opendev.org/728904 Change-Id: I85b8e7b3fb84e7e9fd133edffc300a83eeb7c56d
* | | Remove usage of sixzhanghao2020-05-1516-52/+34
| |/ |/| | | | | | | | | | | | | | | | | | | With python3.x, classes can use 'metaclass=' instead of 'six.add_metaclass', 'six.iteritems' and 'six.iterkeys' can be replaced by 'items' and 'keys', 'six.moves.urllib.parse' can be replaced by 'urllib.parse', 'six.StringIO' and 'six.moves.cStringIO' can be replaced by 'io.StringIO', 'six.text_type' and 'six.string_type' are just 'str'. Change-Id: I357968c6a1932856b1600f6c191966bc90cbc258
* | Switch to newer openstackdocstheme and reno versionsAndreas Jaeger2020-05-184-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to openstackdocstheme 2.2.0 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. 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. 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. Set openstackdocs_auto_name to use 'project' as name. Depends-On: https://review.opendev.org/728938 Change-Id: I9e1dcc5c8861ac9d800ed7425b3e3193dd13c546
* | Fix hacking min version to 3.0.1Ghanshyam Mann2020-05-121-1/+1
|/ | | | | | | | | | | | | | | | | flake8 new release 3.8.0 added new checks and gate pep8 job start failing. hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new version with new checks. Though it is fixed in latest hacking but 2.0 and 3.0 has cap for flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also break the pep8 job if new check are added. To avoid similar gate break in future, we need to bump the hacking min version. - http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html Change-Id: I5486638526b26ce0710c7b1926e408dd70057a66
* Merge "Add py38 package metadata"Zuul2020-04-271-0/+1
|\
| * Add py38 package metadataSean McGinnis2020-04-241-0/+1
| | | | | | | | | | | | | | | | | | 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: I449ba49cd8c2c8c9890b603c298295c56a5df6de Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Bump default tox env from py37 to py38Sean McGinnis2020-04-241-1/+1
|/ | | | | | | | | | | | | | 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: I026ae0fae10114d9aed8bdb0ae7061b3dc2ff895 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Remove Babel from requirementsDmitry Tantsur2020-04-171-1/+0
| | | | | | | | | | | It's not a runtime dependency (and even oslo.i18n has dropped it). The translation infrastructure installs Babel explicitly. See this mailing list thread for a full reasoning: http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html Keeping Babel in lower-constraints since other projects still pull it. Change-Id: I1c92bd28c3f54368b591b965b5f904c8fda424e0
* Add Python3 victoria unit testsOpenStack Release Bot2020-04-111-1/+1
| | | | | | | | | | | 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: I817e39d2229ffc803fd285d4bedfcad86a450c05
* Update master for stable/ussuriOpenStack Release Bot2020-04-112-0/+7
| | | | | | | | | | | | 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: Id46b2b493579dcf984e537d81392c792c9d9aeea Sem-Ver: feature
* Cleanup py27 supportussuri-em7.1.1Andreas Jaeger2020-04-046-19/+6
| | | | | | | | | | | | | | 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 - Update requirements, no need for python_version anymore - Remove html_last_updated_fmt from conf.py, this is not needed with openstackdocstheme anymore; update openstackdocstheme requirement Change-Id: I66d7b502349de38bc2b646ed99cf5a41471d81bf
* Replace 'bgp speaker show dragents' with 'bgp dragent list'7.1.0zhanghao2020-02-175-4/+215
| | | | | | | | | | | In order to follow other agent related commands in OSC, it is more appropriate and friendly to replace 'bgp speaker show dragents' with 'bgp dragent list'. this patch uses 'openstack bgp dragent list' to show the list of dragents, and the optional parameter 'bgp-speaker' shows the list of dragents hosting a specific bgp speaker. Change-Id: I9e0703fccf535b1e1a2055ed917336055b7395f5 Closes-Bug: #1858377
* Drop lib-forward-testingzhanghao2020-01-251-1/+0
| | | | Change-Id: Ifdce9146e8233e6760ee6c0009338661f90848a2
* Add support for port bindingsStephen Finucane2020-02-102-0/+30
| | | | | | | | | | | The port bindings API has been around since Pike but has never been exposed via neutronclient. We still use this in nova so it would be nice to avoid having to create a KSA client manually for this stuff. We don't need to expose things via the UI, just the client itself, so do that. Change-Id: Ied1a057186f0819166df84725b09ded314930a1d Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Sem-Ver: feature
* Convert exception to string before passing it in7.0.0Jay Faulkner2020-01-141-2/+2
| | | | | | | | | | | | | Before this change, neutronclient was passing in a raw exception as a kwarg to the ConnectionFailed exception. This caused an exception to be raised in _safe_decode_dict() due to the exception not being a text type. Now, we explicitly convert the raw exception to a string before passing it as a kwarg. Closes-bug: 1859068 Change-Id: I323b3aceec0a937874eabf770fbc82995202f6d6
* Avoid py36 error when printing unicode chars in a streamRodolfo Alonso Hernandez2020-01-101-6/+7
| | | | | | | | | The IOStream was not able to encode characters out of range 128: "UnicodeEncodeError: 'ascii' codec can't encode characters in position 19-21: ordinal not in range(128)" Change-Id: Ic95396a5cf73c49d332928857dc064819a6d7ea6 Closes-Bug: #1858421
* fix a typoliushuobj2019-12-271-1/+1
| | | | Change-Id: I9d82335c37f114aa43f26dec106e7598e776e068
* Merge "Drop python3 hack for XML serializer"Zuul2019-12-211-4/+0
|\
| * Drop python3 hack for XML serializerAkihiro Motoki2019-12-171-4/+0
| | | | | | | | | | | | | | | | | | It was added in https://review.opendev.org/#/c/110947/ to make the XML serializer work in python 3. We dropped the XML serializer support long ago. I believe we can drop it safely. Change-Id: I208de891515cb2cbdde779013ba58f19e36fc55c
* | Merge "Drop python 2.7 support"Zuul2019-12-214-17/+8
|\ \
| * | Drop python 2.7 supportAkihiro Motoki2019-12-174-17/+8
| |/ | | | | | | | | | | | | | | | | We no longer support python 2.7 past Train. Let's stop testings with python 2.7 and drop python 2.7 stuffs. pypy in tox.ini is also dropped too. It is not used for long. Change-Id: I8a07c007a129cd2141085a1a3cc7f81658c42db2