Commit Graph

133 Commits

Author SHA1 Message Date
Michal Nasiadka fa5aa8f625 Drop k8s_fedora_ironic_v1 driver
Change-Id: Ic7114e5923b74a4202a043388701826b4e47326e
2024-02-05 08:14:56 +00:00
Michal Nasiadka 5c0c27807a Drop k8s_coreos_v1 driver
Change-Id: I64884677cf05c59c64988dfbee9bf22e97a3466b
2024-02-05 07:04:05 +00:00
Michal Nasiadka bc79012f46 Drop Swarm support
Label validator function has been left behind, although it's not
checking for anything right now - might be useful in future.

Change-Id: I74c744dc957d73aef7556aff00837611dadbada7
2024-01-24 13:20:21 +13:00
Michal Nasiadka a8a6a37c52 Support tox4
Depends-On: https://review.opendev.org/866943
Change-Id: Idd5a2fdca17ae71382df68a09dfe1fc468941e14
2022-12-28 10:42:54 +00:00
guilhermesteinmuller d3d28594b3 Drop mesos driver
The coe mesos has not been maitenaned for quite some
time and hasn't got much attetion from the community
in general. As discussed in the mailing list [1] we
are dropping for now.

In this patch, we start by removing the mesos driver
and its test cases. This part of the code has no impact
for other drivers. Then we can clean up mesos references
that affect the API.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-December/026230.html

Conflicts:
	lower-constraints.txt
	tox.ini

Change-Id: Ied76095f1f1c57c6af93d1a6094baa6c7cc31c9b
2022-11-11 23:01:43 +11:00
Zuul 0b9df6fe79 Merge "Update python testing as per zed cycle teting runtime" 2022-09-26 17:11:01 +00:00
LeopardMa 64e8d5f599 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Ife222160c3ad40668a90450226fd45ba37d4ec51
2022-09-26 14:09:35 +00:00
niuke 80eaa991f6 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I65d84a022b4b9c2f3d2473f4ed3facb7e23b0f07
2022-07-26 10:38:06 +08: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
Ghanshyam Mann 136c9c7c12 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: I818ff6549bd6217a727adde0490485a526595ff3
2022-04-30 20:24:11 -05:00
Bharat Kunwar b2e20a1143 Make code compatible with SQLAlchemy 1.4.18
Also, plugins do not need to enable any network service other than what
devstack is already doing [1].

Also, fix doc build:
- bump up tox minversion to 3.18
- set ignore_basepython_conflict to True [2]
- add tex-gyre to binddep.txt [3]

[1] https://review.opendev.org/c/openstack/devstack/+/791436
[2] a0ec2de968/tox.ini (L7)
[3] https://review.opendev.org/c/openstack/openstack-health/+/793984

Change-Id: Ib6e3ed40dc8b075c3cecb967b7417097e3cab60d
Co-authored-by: Ghanshyam Mann <gmann@ghanshyammann.com>
2021-06-28 12:26:19 +00:00
Feilong Wang 16344a5a95 Add separated CA cert for etcd and front-proxy
Support creating different for k8s, etcd and front-proxy for
security hardening. We're following some best practices[1][2] but
adjusted based on the current Magnum deployment approach.

[1] https://kubernetes.io/docs/setup/best-practices/certificates/
[2] https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/

Task: 40687
Story: 2008031

Change-Id: I523a4a85867f82d234ba1f3e6fad8b8cd2291182
2021-04-01 17:31:34 +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
Bharat Kunwar 4fbf965187 [ci] Use stestr for coverage and fail if below 90%
Additionally remove non-voting status of coverage job. 1% toleration is
enabled for allowed_extra_missing lines. If we need to lower the 90%
threshold for coverage in the future, this can be decided then.

Change-Id: I7bc80c34dc6e6e054c61181410d88e7b747310c9
2020-07-31 14:56:40 +00:00
Bharat Kunwar 76502dd57d [ci] Use magnum-tempest-plugin-tests-api
This commit drops magnum-functional-api (which uses legacy-dsvm-base due
to be removed in the V cycle) in favour of
magnum-tempest-plugin-tests-api defined in the magnum-tempest-plugins
repo (which uses the new devstack-tempest job recommended for running
Tempest tests in Zuul v3) for API Tempest tests.

Story: 2007561
Task: 39443

Depends-On: https://review.opendev.org/#/c/721077/

Change-Id: I91446f8773ecec1286c9913c3fff688bd8d9a087
2020-04-21 19:52:32 +00: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
Zuul 7931f6258e Merge "PDF documentation build" 2019-12-07 17:59:49 +00:00
matthew-fuller a65e055024 PDF documentation build
Change-Id: Idc50caec499d899e18231bae9e40a0c6af2ca506
2019-12-05 19:14:59 +00:00
Diogo Guerra 3d17c6eb49 Drop python2 tests
OpenStack is dropping the py2.7 support in ussuri cycle.
magnum is ready with python 3 and ok to drop the
python 2.7 support.

https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html#completion-criteria

Depends-On: https://review.opendev.org/693631

Change-Id: I2ce19b3f976619853117231ae0dae24ebe68601f
Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
2019-11-21 15:58:32 +01:00
Bharat Kunwar 77e6e5cff6 ci: Add output stream fixture to fix CI
Story: 2006642
Task: 36865

Change-Id: I1205f9fef26ec6aaa6858befddb27fb172b25318
2019-10-01 10:34:55 +00:00
Corey Bryant 5823054627 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: I0ddfd7fde55302809a98bb8a6d745de4079b9a87
Story: #2005924
Task: #34219
2019-07-19 10:48:58 -04:00
caoyuan f82c61f856 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Id89f1eaa80623610594e5945a0b73beee7f09c5a
2019-05-22 16:21:24 +08:00
Ghanshyam Mann 0d3ad907a6 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Id530578688faf2e97165b40abe18b863126cf89f
2019-04-14 23:05:06 +00:00
Nguyen Hai Truong 18fc68dd26 Update min tox version to 2.0
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: Iece749b90ec90bec1f5324bc351878e6252720ed
2019-03-05 11:56:54 +11:00
Nguyen Hai Truong 055384343f Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 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: I5a92105f7cfbcabf521150d65f89b14cea62db0f
2019-02-23 18:01:18 +11:00
ricolin 63aa9caf4d Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

Change-Id: I2582c1a1995bb4cf903d4ce2e1ebb3fca930ea01
2019-01-15 02:54:28 +00: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
Doug Hellmann da910ace0f fix tox python3 overrides
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: Idba5b407405e7d1457a02b074bf60b7fded284ee
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:06:01 -04:00
Zuul 5a60d23a51 Merge "Use pip_check_reqs module" 2018-06-05 07:19:48 +00: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
Paul Belanger 449c8f292a
Add bindep.txt file
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.

Change-Id: I28dd0e00734be85cb4b66a09708c0dee8dcb5ef1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-20 14:40:19 -04:00
Doug Hellmann 96e8e6c649 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Ib89fed1004a5e4f7a0234fdccf6b8e1d85f3eee0
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 15:12:42 -04:00
yatin 14bf2b2e7f Use pip_check_reqs module
pip_missing_reqs has some bugs and is renamed(see [1])
to pip_check_reqs since v2.0. Switch to pip_check_reqs
module to get the bug fixes and updates.

[1] https://pypi.python.org/pypi/pip_check_reqs/2.0

Change-Id: Ic562975a82861d4e7cf322a982a60e0c6041ad44
2018-02-26 06:50:23 +00:00
chao liu 282c3b59d6 Add app.wsgi to target of pep8
The app.wsgi file should be adjusted to meet pep8 standards
and apply pep8 check to app.wsgi automatically.

Change-Id: Ie9be25fb6bd290c65c25907309f482d736fb8a68
2017-11-18 01:27:34 -08:00
Hieu LE e06004d9f5 Implement basic policy module in code
This change prepares the magnum project to start implementing
policies in code. Subsequent patches will register more magnum
policies in code and remove the corresponding entry from the
policy file maintained in source.

This is part of a community effort to provide better user
experience for those having to maintain RBAC policy. More
information on this effort can be found below:
https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Change-Id: I0e2b34067ea1e4d5868df544a9f65ae3f1944c43
Co-authored-By: Dai Dang-Van <daidv@vn.fujitsu.com>
Implements: blueprint policy-in-code
2017-10-19 08:33:58 +07:00
Spyros Trigazis b4386f83ad Add swarm-mode driver
* add swarm-mode config
* remove etcd, flannel, discovery_url, swift_registry
* add swarm-mode COE obj
* add functional test, create cluster, create/remove
  service and delete cluster.

Co-Authored-By: ArchiFleKs <kevin.lefevre@osones.io>
Implements: blueprint swarm-mode-support
Change-Id: Iba177be167cb3a3866441d5f42670171f26c5a86
2017-07-18 10:47:23 +02:00
coldmoment ba8ad5e37f Add a hacking rule for string interpolation at logging
String interpolation should be delayed to be handled
by the logging code, rather than being done at the point
of the logging call.
See the oslo i18n guideline
* https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#adding-variables-to-log-messages
and
* https://github.com/openstack-dev/hacking/blob/master/hacking/checks/other.py#L39

Change-Id: I8a4f5f896865aebbff88ee894f0081e58cfce9ef
2017-07-15 14:49:45 +08:00
lingyongxu 21bcd08370 Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files

Change-Id: I18babfaae830b13a53dcd13ce9233fc28652a787
2017-06-26 17:27:20 +08:00
jinzhenguo 014da56bbb Remove duplicated hacking rule M318,M319
Change-Id: If0fbeb3f0bf826cac3700ad7f244fc059e83718f
closes-Bug: #1696628
2017-06-08 13:49:48 +08:00
akhiljain23 20a5de74e7 Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.

Change-Id: I17f872b6169317de7c541a2ed77344ab1c313f94
Closes-Bug: #1229445
2017-04-03 10:14:27 +00:00
Feng Shengqin 9f83e1d9db Move cover.sh to the tools directory
Change-Id: I518618cc174c16ac74d30d9f4f41f329b9e4f36f
2017-03-20 19:55:05 +08:00
Luong Anh Tuan 1fb23da2c6 Indicating the location tests directory in oslo_debug_helper
According to [1], we can passing a "-t" argument to
oslo_debug_helper to indicate the directory where tests
are located. This will solves ImportError exception.

[1] https://docs.openstack.org/developer/oslotest/features.html

Change-Id: I5c25c86a79ace5be46c7254cc0ccdc2183303a7c
Closes-Bug: #1666560
2017-03-09 22:41:43 +07:00
Andreas Jaeger 7733a2af6f Fix api-ref with Sphinx 1.5
Sphinx complaints about a missing file, fix this with renaming the file
to the intented name.

Treat sphinx warnings as errors to avoid these kind of problems. Remove
the not needed note anymore, this works fine as is.

Change-Id: I3849f788bdea822bf73bb334bf8d230e723e6c5b
2017-03-04 12:14:21 +01:00
Cao Xuan Hoang a26b2adc55 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Id6d387d7e2cf6395a7ccff6291c9c73787984d51
2017-02-08 10:03:14 +07:00
Feng Shengqin d86b2019a1 Add debug-py34 to tox.ini
Change-Id: I547fe58930e8c77ac9cf171adde0b7227ce11269
2017-01-19 18:49:43 +08:00
Tovin Seven 143687974d Remove extra spaces
Remove extra spaces in ini files

Change-Id: I81b3a98687ff87a0a447c25a479a2ec74c7489c1
2017-01-17 10:21:28 +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
Jenkins 137b26a64c Merge "Enable DeprecationWarning in test environments" 2016-11-22 17:19:05 +00:00
Jenkins b21551c2ba Merge "Import environment variables from testenv" 2016-11-10 08:04:31 +00:00