Commit Graph

254 Commits (master)

Author SHA1 Message Date
Harald Jensås a9c4fc2414 Bump ironic-staging-drivers-all job timout to 90m
Seeing many timeouts on:

Let's try increasing the timeout.

Change-Id: I8231eda8563cde9a6e98533d9c6e0fe539fdf2ed
2023-03-30 14:40:09 +00:00
Riccardo Pittau 6a2590ec6a Fixes for tox4
- use generic test template
- remove autospec in power test as we don't use actual libvirt
module to test. The libvirt-python module is fully mocked.

Change-Id: Ied36a8afb818422c643edca8a2feeec977b53551
2023-01-03 09:48:18 +01:00
Riccardo Pittau 2976bed022 Use zed jobs
Change-Id: I1e0ea494661c6598f6704b863d144cf981952832
2022-05-10 17:08:59 +02:00
Dmitry Tantsur 1c40f8ae57 Fix the CI
* Fix the default interfaces in the devstack plugin
* Do not default to netboot with a whole disk image
* Add missing stestr dependency, removed unused dependencies

Change-Id: I88fe1eb17acb27f18a3093367a29b5f5049d74af
2022-05-10 15:08:55 +02:00
Riccardo Pittau dd5f3d67f5 [trivial] add python 3.9 in classifier
Change-Id: I90ebe7af0933c15946eb7b4a6d8e50979e458e4b
2021-12-14 09:25:02 +01:00
Dmitry Tantsur 5d16f6680d Add releasing docs
Change-Id: I7eef91e7bc11a1470707919fc0081fbb2a6a4105
2021-09-23 14:59:21 +02:00
Riccardo Pittau c17279ef35 Increase version of hacking and pycodestyle
Change-Id: I8eef87bd3201943436ee512b0795701438714bea
2021-08-02 09:44:54 +02:00
Riccardo Pittau b393a8bc1f Update min version of tox to use allowlist
The min version of tox is updated to 3.18.0 to replace whitelist_externals
with allowist_externals option [1]


Change-Id: Ib6af12f2568c5dce819870227e278d4fe8be8887
2021-06-15 10:02:20 +02:00
Zuul 944ca03d36 Merge "Remove mentions of the iSCSI deploy" 2021-04-29 11:31:57 +00:00
Brendan Shephard 594cb9ad98 Fix issues with byte encoded strings
If byte encoded strings are passed to the
ovirt SDK. We get the error outlined here:

This change leaves the string validation in place,
but passes while raising a warning. Ultimately,
non-encoded strings are provided to ovirt SDK
to prevent the mentioned issue.

Change-Id: I8e62a650ebae974017e17342ec17aa61ba67eed9
2021-04-08 15:02:51 +10:00
Dmitry Tantsur ba72e8202b Remove mentions of the iSCSI deploy
Change-Id: I1a8a5719ab8bf6dc5cc4d2f41d23c3ea260ee307
2021-03-19 17:40:48 +01:00
Dmitry Tantsur 34f96a4a53 Use Xena jobs
Change-Id: I24cf9cd0231778bf7906a16b85d2de4f76d8d856
2021-03-19 17:27:39 +01:00
Riccardo Pittau 24a6a7ccd7 Re-add coverage to test-requirements
It's in uppper-constraints so it should stay there.

Change-Id: I83560dd7ddc0947fff2e27230bc9f0de456373f3
2021-01-25 10:21:45 +01:00
Riccardo Pittau 4eaf2d663b Reconfigure tox.ini
Increase tox minversion to 3.9.0 to be compatible with inline
comments [1]

Move some test requirements to tox.ini

Remove lower-constraints environment from tox.ini


Change-Id: Ida88627aace41c4f445a108d22e5eed12247a127
2021-01-22 11:13:17 +01:00
Riccardo Pittau 55eae25598 Remove lower-constraints job
As discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.

Change-Id: Id4a2f06857e9732b52b9f76ee22409c7b71902fd
2020-12-15 18:33:40 +01:00
Zuul a130c7d656 Merge "Use wallaby jobs" 2020-10-19 17:05:42 +00:00
Zuul 05163a3788 Merge "Set safe version of hacking" 2020-10-19 14:39:53 +00:00
Riccardo Pittau a4d89d9d0d Set safe version of hacking
Versions of hacking from 3.1.0 until 4.0.0 NOT included are supposed
to require a safe version of flake8, so besides normale issues related
to minor version upgrades, we can safely use those versions.
Also forcing pycodestyle versions to be compatible with flake8 installed
by hacking.

Change-Id: Iffb6019b339ca5412bb6957274b7d12233bc7db7
2020-10-19 13:54:40 +00:00
Dmitry Tantsur 1bcfa47ac1 CI: disable dstat
Change-Id: I5a429fce8fd290e54d56b13f100c3d5484e8e9e9
2020-10-19 13:21:00 +02:00
Riccardo Pittau 5b8e430cde Use wallaby jobs
Change-Id: I579b9ae5643621c420408af31d645bfa1a60cf1b
2020-10-19 12:12:01 +02:00
Riccardo Pittau 5f43794cc1 Set min version of tox to 3.2.1
As recommended, since version 3.2.0 tox switches pip invocations
to use the module -m pip instead of direct invocation.
We set min version to 3.2.1 [1] to also fix the behavior of


Change-Id: I766ef1cf1e5ede30d96a68f7cb8402bef63e99f1
2020-07-19 14:10:41 +00:00
Riccardo Pittau efe6d9e2d6 Use jobs template for Victorya cycle
Change-Id: I6b447bc022f7aaef71d183de474004dfb4ea12fa
2020-07-15 15:41:31 +02:00
Riccardo Pittau e9c9656f7f Explicit support Python 3 only and add Python 3.8
We abandoned Python 2.x long time ago and we test Python 3.8 since
a while.

Change-Id: I89affe1c9e7165c8ee7f289dacdaef7e398c1500
2020-06-17 09:49:05 +02:00
Riccardo Pittau 118ac73ebc Use unittest.mock instead of mock
We support only Python 3.6 or higher so no need to use the
standalone mock anymore.

Change-Id: I2bd0582d40ea17e2299007ce99d62b38862944e5
2020-06-17 09:40:07 +02:00
Riccardo Pittau d034972dac Update Sphinx version
Also remove it from test-requirements and lower-constraints, it's
only needed for docs.

Change-Id: I4ad730dae6854ae62f78bf1cfb6ea2536869cef2
2020-06-09 10:35:19 +02:00
Zuul 924d2ca9e6 Merge "oVirt driver: Close connection after each API call" 2020-05-15 15:10:52 +00:00
Iury Gregory Melo Ferreira 4055482050 Upgrade docs
- Created doc/requirements.txt with requirements for docs,pdfs and
release notes.
- Updated tox.ini for docs build and added pdf-docs build.
- Updated do/source/ with necessary changes to build pdf.
- Added sphinxcontrib-svg2pdfconverter to l-c

Change-Id: I98ade2140063aa3e33ca6287da2f0052fd4c5175
2020-05-15 12:11:55 +02:00
Steve Baker 343a57570e oVirt driver: Close connection after each API call
Currently a new connection is created for every API call which is
never closed. This results in open connections accumulating over time
due to periodic calls like power state polling, which is further
compounded by the number of ovirt nodes deployed.

This change converts _getvm into a generator based context manager so
that the connection can be closed after every call.

Change-Id: I30f9695c591f72dae21467b0b31f6f67fad7cc8a
2020-05-15 10:01:11 +12:00
Riccardo Pittau 7f15b2a918 Update lower-constraints.txt
We need to list all dependencies in lower-constraints.
Also updating requirements.txt to reflect new minimum versions.

Change-Id: Id643629701d3749927c2915b9ea1bbf7170df32c
2020-05-13 18:04:07 +02:00
Zuul 5894854979 Merge "Stop configuring install_command in tox." 2020-04-29 11:09:03 +00:00
Zuul f99dbcf986 Merge "Upgrade flake8-import-order version to 0.17.1" 2020-04-29 08:56:16 +00:00
Riccardo Pittau 74d69c67cd Restore default netboot boot option
We changed the default boot option to local but should be netboot
for this job.

Change-Id: Ia7088a338b65f17410ddfa1c9439ccd0d8b20900
2020-04-27 16:06:06 +02:00
Riccardo Pittau 9511a048c9 Upgrade flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.

Change-Id: I62321c13697db75c6cfc2176a9a89b6cb50413d6
2020-04-21 16:46:30 +02:00
Iury Gregory Melo Ferreira 95ce839ea8 Stop configuring install_command in tox.
Currently, we are overriding 'install_command' to use 'pip'. This is
considered poor behavior and 'python -m pip' should be used instead:

It turns out that this is the the default value provided by tox:

So we can remove the line and simply use the default value.

openstack-discuss thread

Change-Id: I333aac7ffbb012f169dcf6ee62e754c4832336be
2020-04-17 20:54:07 +02:00
Riccardo Pittau 16fc06ada1 Switch to zuulv3
Change-Id: I880a6571b076de200782269253b7f851688100c8
2020-04-14 09:43:25 +02:00
Riccardo Pittau 40bed1ea88 Make flake8 tests more strict
Also increasing min version of flake8-import-order for some bug fixes.

Change-Id: I6cca85a87e2946998bb2e912aa44bd3d709562c4
2020-04-08 10:11:48 +02:00
Riccardo Pittau 2430061785 Explicitly set ramdisk type
Legacy job was force to dib and exploded, rectifying that
forcing the use of tinyipa for the time being.

Change-Id: I9d1301107e54ab91e06709905f186d8b1bad40c1
2020-04-08 10:08:53 +02:00
Riccardo Pittau ec13cbad48 Bump hacking to 3.0.0
Change-Id: I6979eacbb9b4d062d7f0fb8228dbef6b97da416e
2020-03-31 10:15:18 +02:00
Riccardo Pittau d8191f9ab2 Enforce running tox with correct python version based on env
Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].


Change-Id: I6dfb295c9e18ac3ec0d79b186ab4cbe5cecd00bf
2019-12-23 11:27:21 +01:00
Riccardo Pittau 2f77c3095e Follow up of stop using six library
Change-Id: I5fcd5babbadfb075cbc85bf4f9e18fdeddbce44a
2019-12-05 00:59:19 +01:00
Riccardo Pittau a2c976077a Stop using six library
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.

Change-Id: I41ef2d06dcdfe2fb3fd47fe877149ec9a29e37fb
2019-12-03 12:16:17 +01:00
Iury Gregory Melo Ferreira 77de3d5bb9 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-staging-drivers is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in

Ussuri Communtiy-wide goal -

Change-Id: Iab168e51cdfed11a3982da717e6cb40dbcaabfd5
2019-11-27 18:57:55 +01:00
Zuul b1b77dbbc9 Merge "Fix pycurl args types in ovirt driver" 2019-07-10 20:05:49 +00:00
Zuul 93241bf890 Merge "Switch from to" 2019-07-08 14:39:07 +00:00
Ilya Etingof 935ec1ac69 Fix pycurl args types in ovirt driver
Ensure passing text-typed parameters to `ovirtsdk4` calls. Otherwise
`ovirtsdk4` blows up Python 3.

This change prompts `six` version bump.

Change-Id: I3bbbb6b786d7007e0dd0a45de1b21be909ee588b
Story: 2006170
Task: 35681
2019-07-08 15:25:33 +02:00
Ilya Etingof d500b4b013 Switch from to
Change-Id: I2a015a8fb099084cedbc0a9ac745bd5bd4146eef
2019-07-08 14:03:06 +02:00
Zuul 1946b958ac Merge "Add Python 3 Train unit tests" 2019-07-06 20:06:36 +00:00
Riccardo Pittau b0dc7efe8a Add Python 3 Train unit tests
This is a manually 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:

Depends-On: I8432eb58c44ebbcaccffa801e3bc5b791e37c84b

Change-Id: Id236f6565c0b0a5ebdaab30fbc6b96a22f05a3ec
2019-07-03 10:01:34 +02:00
Riccardo Pittau db90e457c5 Remove enabled_drivers from tests
The enabled_drivers option has been removed since a while, this
patch replace the latest 2 entries in a unit test with

Change-Id: I8432eb58c44ebbcaccffa801e3bc5b791e37c84b
2019-07-03 09:58:16 +02:00
Riccardo Pittau 85e64777d8 Drop ostestr in favor of stestr
With this patch we drop ostestr to use stestr directly to avoid
current and future incompatibilities that can break the test
process, e.g. [1]

Also some minor changes:
- following recent changes to global requirements [2],
we update sphinx requirements locally
- removing py35 in favor of generic py3 test
- updating upper-constraints link to use

[2] If558f184c959e4b63b56dec3ca1571d1034cfe5c

Change-Id: I9328fa7e68e1e03a20182e728840075bea7c5ac6
2019-05-24 10:58:27 +02:00