Commit Graph

83 Commits

Author SHA1 Message Date
Takashi Kajinami 90a82c4b19 Drop dependency on pytz
... because the current usage can be easily re-implemented using
the built-in datetime library.

Change-Id: Ic0c7919f0288fd61dd5bfa402c99d7080ffd9083
2024-01-27 19:50:06 +09:00
Jake Yip cb40fb3685 Add back pep8 test
In Change I523a4a85867f82d234ba1f3e6fad8b8cd2291182, the pep8 test was
accidentally dropped.

Fix up code so that pep8 passes.

In addition to that following change has been added here to unbreak CI:

Add WebTest as an indirect test dependency

Pecan has made webtest an optional dependency for testing only [1].
Since it is still used for testing we need to add it to our
test-requirements.txt.

[1]: https://github.com/pecan/pecan/pull/140

Change-Id: I2f85adb4ef29a43389897c201e6152fd4c7be9d6
2022-07-19 12:35:14 +00:00
Mohammed Naser 6eb907cc89 Drop Kubernetes Python client dependency
We depend on the Kubernetes Python client for several things such as
health checks & metrics polling.  Those are both run inside periodic
jobs which spawn in greenthreads.

The Kubernetes API uses it's own thread pools which seem to use
native pools and cause several different deadlocks when it comes to
logging.  Since we don't make extensive use of the Kubernetes API
and we want something that doesn't use any threadpools, we can
simply use a simple wrapper using Requests.

This patch takes care of dropping the dependency and refactoring
all the code to use this simple mechansim instead, which should
reduce the overall dependency list as well as avoid any deadlock
issues which are present in the upstream client.

Change-Id: If0b7c96cb77bba0c79a678c9885622f1fe0f7ebc
2022-01-20 16:02:21 +00:00
Feilong Wang 94737878af Fix gate - update lower-constraints
Story: 2008482
Task: 41522

Change-Id: I875b9b2e0ef8bb6751a27e9a917a6d58042570ce
2021-01-04 09:31:37 +00:00
Andreas Jaeger a7f2e2102d 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.

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: Ic07c726697a8ed7d0a837bf0d16feec222e805f1
2020-05-21 17:13:23 +02:00
Ghanshyam Mann 1baf13e455 Fix hacking min version to 3.0.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: I27e6ff946f5785d551ff6ae19bea7c1246f3960f
2020-05-12 19:27:58 -05:00
Sean McGinnis 45fd25c572 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: I6245a207ec65df0ef11a798b4cffe3157abccb73
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: Spyros Trigazis <spyridon.trigazis@cern.ch>
2020-04-29 17:10:23 +03:00
Andreas Jaeger 7ad3ef18c0 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
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I705a40cb3a19e16641a2b9de6891ab72fe2b98f0
2020-04-05 09:45:17 +02:00
Andreas Jaeger ae228bb5cc Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, those are not needed
for co-installing.

Change-Id: I926efaef501f190e78da9cab40c1e94203277258
2020-03-31 20:09:46 +02:00
caoyuan c5e65f3ff5 tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: Ia9273b02cd56352ca7628d95afa4a2062f4daa22
2019-12-20 10:32:33 +08:00
pengyuesheng 5438a3c6e3 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I9a167c082d685f02766349ba9e301afd52d0d284
2019-07-30 16:52:22 +08:00
gao.hanxiang 913636b6b1 Blacklist bandit 1.6.0 and cap Sphinx on Python2
There's a regression[0] in bandit 1.6.0 which causes bandit to stop
respecting excluded directories, and our tests throw a bunch of
violations. Blacklist this version, but allow newer versions as there is
already a pull request[1] to fix it, and I expect it will be included in
the next release.

Also fix the requirements job which was broken by
https://review.opendev.org/657890 adding a cap on Sphinx on Python 2.

[0] https://github.com/PyCQA/bandit/issues/488
[1] https://github.com/PyCQA/bandit/pull/489

Co-Authored-By: Jake Yip <jake.yip@unimelb.edu.au>

Task: 33401
Story: 2005740

Change-Id: I34dc36c5236debc42424073af2c2d2104e18179a
2019-05-21 13:27:31 +12:00
Vu Cong Tuan ff67ac89f3 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I6267a0287dd9ae1296fdc775bb3848be9b52978c
2018-07-13 13:05:52 +07:00
Nguyen Hai 6215887bc1 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Remove the '[build_sphinx]' section as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: Ibd6c6e9cca238821099ce190784d077ffe4c2dee
2018-04-25 12:11:07 +00:00
OpenStack Proposal Bot c0f8db98ae Updated from global requirements
Change-Id: I0814491a783060b66291991ff58772338d82c148
2018-03-26 08:07:15 +00:00
Chandan Kumar 53fa3accea Remove intree magnum tempest plugin
* It removes magnum tempest plugin reference in favour of using
  newly magnum-tempest-plugin.
* We removed tempest tests resides under functional.api.v1.test-*
  files as they are tempest tests and keeping the rest as they are
  used by functional tests.

Depends-On: Ibdddd26da9cfb0d08c2977660320b2c052d7261b
Change-Id: Ida2fa1ef5880ebead787e3b27ac7ebf5aa498f62
2017-12-14 15:48:47 +05:30
OpenStack Proposal Bot 4371d21952 Updated from global requirements
Change-Id: I7aabf35dda0e028c13db6f5244ddce30ea3b84f3
2017-11-16 11:09:01 +00:00
OpenStack Proposal Bot c86bffe606 Updated from global requirements
Change-Id: I1af06684e354a0e7601d1711753f60da0295f3cf
2017-09-21 03:41:45 +00:00
OpenStack Proposal Bot ce0c039089 Updated from global requirements
Change-Id: Ic88b8fa8682d9baec64351d4f8745932a106e6a5
2017-09-14 00:33:17 +00:00
OpenStack Proposal Bot d1b754d021 Updated from global requirements
Change-Id: Idf2fc92eec70e0fb400c380e7df2bbb2b02df988
2017-08-18 11:32:09 +00:00
Spyros Trigazis 761bc404f7 Fix barbicanclient and swarm-ci
This squash of commits is required to fix gate

Updated from global requirements

Change-Id: Ib38a2fd3d2f46f8383e2a5245e58f2f03cdb657a

swarm-ci: Assert against ConnectionError instead of SSLError

tcp returns ConnectionError whereas https returns SSLError. The
default protocol we use in magnum is tcp which works fine docker
python SDK docker>=2.0.0.

Change-Id: Ibd122d225ad0f0439abd185bd0846ddb3b22a63a
Fixes: I32b58cf567f4ae5597d9207b81f8546d1062b8b9
2017-07-29 09:13:04 +05:30
OpenStack Proposal Bot a65d9302ce Updated from global requirements
Change-Id: Iae2e33c6bbf2ca7701720387bdd0863700d41f68
2017-07-19 12:51:43 +00:00
rajat29 f47a6f71cd Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: Id7b352dc0c72a79482e77f92f6b588e5760ad754
2017-07-11 04:15:07 +00:00
OpenStack Proposal Bot bc873231dd Updated from global requirements
Change-Id: I204d8f8fde4a91dbe2320269593c2bf9766373a7
2017-06-27 12:30:19 +00:00
OpenStack Proposal Bot 24510b20e2 Updated from global requirements
Change-Id: Ia27909e1583551783e2189de00a65f8e527c2f47
2017-06-05 17:22:12 +00:00
OpenStack Proposal Bot ab2ffeb590 Updated from global requirements
Change-Id: Id65dbfa079d749a080d82f67900584e6d0279691
2017-05-17 03:49:44 +00:00
OpenStack Proposal Bot c6678d466f Updated from global requirements
Change-Id: I7699b0bef8d028aff0d17d33c6f2708ca6c3a258
2017-05-15 00:46:08 +00:00
OpenStack Proposal Bot 533570d8c2 Updated from global requirements
Change-Id: Ia57eaa2e50270c8815fa2104d0a451a5efb5d588
2017-05-04 13:23:21 +00:00
Juan Badia Payno 1b5a9266c4 Added tempest to test-requirements
Change-Id: I8b7031306533fb9085c232d7ecc6a7d1c99a39cb
2017-04-27 05:38:12 +00:00
OpenStack Proposal Bot e68e7fb314 Updated from global requirements
Change-Id: Ifc3eec2717021db8a97aaf39999969f731ab525a
2017-03-07 01:58:36 +00:00
ricolin 9ab31e0d03 Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1669276

Change-Id: I90d62333c08f4e90bccc42241fd94ad76d44bb43
2017-03-02 15:25:12 +08:00
OpenStack Proposal Bot c0fac8e8f1 Updated from global requirements
Change-Id: Ia8979759fabda6e8b9500e84fe4000c53dd7d934
2017-02-11 00:16:34 +00:00
Tovin Seven 32d088b2c1 Integrate OSProfiler in Magnum
* Add osprofiler wsgi middleware. This middleware is used for 2 things:
  1) It checks that person who wants to trace is trusted and knows
     secret HMAC key.
  2) It starts tracing in case of proper trace headers
     and adds first wsgi trace point, with info about HTTP request

* Add initialization of osprofiler at start of service
  Currently that includes oslo.messaging notifer instance creation
  to send Ceilometer backend notifications.

* Traces HTTP/RPC/DB API calls

Demo: https://hieulq.github.io/cluster-create-false-new-html.html

Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Implements: blueprint osprofiler-support-in-magnum
Change-Id: I7d68995aab81d365433950aada078ef1fcd5469b
2017-01-24 07:43:31 +07:00
Dirk Mueller 80fc5a2d42 Add bashate checks to pep8 step
Similarly to pep8 checks, this allows enforcing a consistent
style of the shell scripts accross modfications. For now
only the indentation is enforced to reduce code churn.

Closes-Bug: 1648099
Change-Id: Ie66cbe1aea4bd01a8bba8833ef6cbd2cff6a7c6a
2016-12-07 15:25:41 +01:00
OpenStack Proposal Bot 2df66c17d5 Updated from global requirements
Change-Id: I81a0798c57ea7b5890162840428e69013a964ad8
2016-11-02 15:33:10 +00:00
OpenStack Proposal Bot faf6e6eab9 Updated from global requirements
Change-Id: I228170275c367a4fd3e294c4ade40f439f94fd8d
2016-11-01 13:28:43 +00:00
OpenStack Proposal Bot cf82f5dd3f Updated from global requirements
Change-Id: Ib325d815412b19abbe7a3265df4ba604276c8a10
2016-10-06 05:53:04 +00:00
Hieu LE cdd14f209e Init api-ref structure and requirements
This patch init api-ref document structure and
adding some requirements based on the guidance of
OpenStack API team.

Get ready for os-api-ref sphinx theme change

Change-Id: I896c8752fbcf15ec8e5bc6b3862a1ed040936215
Implements: blueprint magnum-doc-rest-api
2016-08-29 22:44:08 +07:00
OpenStack Proposal Bot 52328aaa7d Updated from global requirements
Change-Id: Ie6daa7b3f1d5fa15d419eb87904ce3813852a9eb
2016-08-21 05:12:59 +00:00
OpenStack Proposal Bot 921e3f88df Updated from global requirements
Change-Id: I695ae68d1deaa7876740be675b639444f58f45d4
2016-07-22 04:00:02 +00:00
OpenStack Proposal Bot d3ab838d18 Updated from global requirements
Change-Id: Icbfddd817cb0317347152bb078f81aa88fd652f6
2016-06-24 03:12:32 +00:00
Spyros Trigazis 936dd11a16 [install] Add install guide from template for rdo
This guide is based on the installguide-cookiecutter template
and will be published automatically to docs.openstack.org.

[2] is a similar patch and [3] is WIP.

A change to add magnum to the install-guide job will follow.

This is a follow-up of [4].

[1] http://docs.openstack.org/contributor-guide/project-install-guide.html
[2] https://review.openstack.org/#/c/325389
[3] https://review.openstack.org/#/c/317152
[4] https://review.openstack.org/#/c/332161

Change-Id: I145fd30f575dab45b4c947bc4609287b1e300025
Partially-Implements: blueprint magnum-installation-guide
2016-06-22 16:20:05 +02:00
OpenStack Proposal Bot ca85bd9200 Updated from global requirements
Change-Id: Ie0f0b88ba96b0a6f62d494cb29a66c7777056f6f
2016-06-21 18:00:20 +00:00
OpenStack Proposal Bot 905757f602 Updated from global requirements
Change-Id: Icaab4a376b9e1edf142d68d57121365c75ce4bd7
2016-06-03 18:13:53 +00:00
OpenStack Proposal Bot d9428fefa6 Updated from global requirements
Change-Id: Ifdb1e1d7eb94a185990ede8027426c054b12a7ec
2016-05-31 03:01:31 +00:00
OpenStack Proposal Bot 41b9ae644d Updated from global requirements
Change-Id: I1f6c61c6257a4823d1454a72fedb55d9b8808a98
2016-05-30 02:34:05 +00:00
OpenStack Proposal Bot c1e5444cb3 Updated from global requirements
Change-Id: I50cbc4c94b843ed52394d3f9e0c2a53b960b07c8
2016-05-28 00:34:45 +00:00
Jenkins 515cee161c Merge "Replace tempest-lib with tempest.lib" 2016-05-03 13:13:07 +00:00
Eli Qiao d560cbddff Replace tempest-lib with tempest.lib
tempest-lib is deprecated for future bug-fixes and code changes
in favor of tempest.

On gate testing, we installed tempest from source code so remove
it from test-requirements.txt.
Closes-Bug: #1553047
Change-Id: I405ad31e1c218868c6dbffb967a755163674fc80
2016-05-03 02:12:30 +00:00
OpenStack Proposal Bot e4258cb445 Updated from global requirements
Change-Id: Ibf06b59b994193aba4cb7293a907b23bec0a21d9
2016-04-28 16:12:32 +00:00