10136 Commits

Author SHA1 Message Date
Riccardo Pittau
805a785a3a Change ibmcclient compatible version
And fix a couple of things to adapt to latest release.

Change-Id: I1cf2dadcfa66975f7f5020ca97a75ebf7b055d4a
2020-05-15 18:31:51 +02:00
Julia Kreger
f6b9f34358 Pin the python-ibmcclient upper bounds due to six usage
Python-ibmcclient 0.2.0 uses six, which is not installed by default
as it is not necessary for python3 only usage.

This patch pins the upper bounds until the library can be fixed and
a new version released.

Change-Id: I06136f3f445b6ee4858697e22e8d63ca3d81c137
2020-05-14 10:05:50 -07:00
melissaml
c38465eaa8 Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I50f4af86556f9873df395f6469febdc1908311ae
2020-05-14 17:17:39 +08:00
Zuul
a5d120c8c3 Merge "Add ussuri release notes version" 2020-05-14 01:52:10 +00:00
Zuul
552ff8cd4b Merge "redfish: handle hardware that is unable to set persistent boot" 2020-05-13 22:39:31 +00:00
Julia Kreger
893029493a Add ussuri release notes version
Change-Id: Ie7c85db6ddceba0206f95dfd23cfe30447eb7068
2020-05-13 17:16:24 +00:00
Zuul
3ed8bf5757 Merge "Update lower-constraints.txt" 2020-05-13 15:21:21 +00:00
Zuul
381527ad30 Merge "Cap pycodestyle explicitly to be < 2.6.0" 2020-05-13 10:37:07 +00:00
Zuul
42dfeab9ee Merge "Fix the wrong description" 2020-05-13 10:01:32 +00:00
huwenhui
bb39f20d36 Fix the wrong description
The description about the method "__is_image_href_ordinary_file_name"
should be "Check if image_href is an ordinary file name" not "Check if
image_href is a ordinary file name", Fix the error.

Change-Id: I40e1058e24db39a9d11ef8c895fc907e7b749f94
2020-05-13 09:30:22 +08:00
Ghanshyam Mann
774bc9264b Cap pycodestyle explicitly to be < 2.6.0
The 2.6.0 version introduces some checks that cause failures
with the current code. hacking and flake8 cap could have solve
the pycodestyle compatible version but flake8-import-order which
does not cap the pycodestyle pulled its latest version and break
things.

Also remove the flake8 from test-requirements and let hacking
handle the flake8 version otherwise ironic will still pull the
latest flake8 which can break things in future.

To make it work, we need to explicitly cap pycodestyle itself
so that no other package pull the new checks in.

Change-Id: Ia4b6f5aa8fe45d08a1563160e585947f35501ef2
2020-05-12 20:52:40 +00:00
Riccardo Pittau
bc79bbd570 Update lower-constraints.txt
We need to list all dependencies in lower-constraints

Change-Id: Ibb730245444ea408cf1cfe183fa8201cb3368f8c
2020-05-12 17:35:26 +02:00
Iury Gregory Melo Ferreira
ead9ecfcbc Fix pep8
This patch fixes the issues that pep8  is showing in our CI.
Flake8 changes in tox.ini:
-Added ironic/tests/base.py and  ironic/cmd/__init__.py
to per-file-ignores to ignore E402.
-Added E741 to ignore.

Change-Id: Icf92aa186fb4b2be0d59736a56260d01a5c3279a
2020-05-12 15:37:38 +02:00
Zuul
855986c024 Merge "Add timeout and retries to JSON RPC client" 2020-05-10 18:36:54 +00:00
Zuul
6f76697dcb Merge "Add Python3 victoria unit tests" 2020-05-09 16:25:19 +00:00
Zuul
36c1bd6b6f Merge "Silence debug messages from oslo_messaging" 2020-05-08 18:22:12 +00:00
Zuul
1b08a2e8f6 Merge "Add ironic-standalone-redfish" 2020-05-08 15:02:01 +00:00
Zuul
2262db488c Merge "redfish: split reboot into power off followed by power on" 2020-05-08 12:20:52 +00:00
Zuul
5cd99b6726 Merge "Remove [conductor]api_url" 2020-05-08 12:20:49 +00:00
Dmitry Tantsur
18a8e2f6e9 redfish: handle hardware that is unable to set persistent boot
Some hardware has dropped support for continuous boot, see this thread:
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014543.html

Work around by falling back to one-time boot device, restoring it on
every reboot or power on.

Story: #2007527
Task: #39320
Change-Id: I762056dea4f7b8ccdb8f95b2f21e26b45763905d
2020-05-08 13:31:13 +02:00
Zuul
c07953ccae Merge "Enforce autospec in some unit tests modules" 2020-05-08 05:06:13 +00:00
Zuul
ecf79af64f Merge "Fix 3rd party driver mocks and related tests" 2020-05-08 05:06:10 +00:00
Zuul
a97c95364f Merge "Temporary add per-file-ignores to flake8 tests" 2020-05-08 05:03:07 +00:00
Zuul
5295e1caba Merge "Remove testscenarios, testrepository and Babel from test-requirements" 2020-05-07 11:43:41 +00:00
Zuul
3ec3974cd4 Merge "Update grenade job" 2020-05-07 01:48:16 +00:00
Dmitry Tantsur
8562df092f redfish: split reboot into power off followed by power on
The current implementation may result in a false positive when
the reboot request is ignored completely or when a node stays
powered on some time after the request is received.

Also make error messages a bit more useful by mentioning the desired
power state and avoiding redundant "Redfish".

Task: 39679
Story: 2007527
Change-Id: I35984e315948fbbcf216c40b38397953fb9dc699
2020-05-06 18:34:24 +00:00
Zuul
2a29c214d7 Merge "Use tempest_plugins Zuul CI role" 2020-05-06 17:13:36 +00:00
Riccardo Pittau
c5543b572b Enforce autospec in some unit tests modules
Also changed filters in tox.ini to be more granular and allow
working in small batches.

Change-Id: Id0d3db5d4faeb317272885dd9e98527e15c33c12
2020-05-06 18:20:01 +02:00
Dmitry Tantsur
14524c265b Add timeout and retries to JSON RPC client
The necessary options are already in keystoneauth, but have empty
defaults. This patch changes timeout to 15 and adds 2 retries by default.

Change-Id: Idf8cfa54b77be6f5127d2c9d587a427aa0898802
2020-05-06 17:02:01 +02:00
Riccardo Pittau
981b24255e Fix 3rd party driver mocks and related tests
Enforce autospec and fix tests related to third_party_driver_mocks

Change-Id: Ife6106dadab9148b9dec8991fee17c3be212abea
2020-05-06 16:24:55 +02:00
Riccardo Pittau
6c8579c0d1 Temporary add per-file-ignores to flake8 tests
This should help slowly enabling H210 test everywhere.

Also fixing H210 enforced autospec in some places.

Change-Id: Ibbc00b528265f8b86bc2fe45e078d56d36381c5d
2020-05-06 16:24:55 +02:00
Zuul
44ba19e851 Merge "Monkey patch original current_thread _active" 2020-05-06 13:37:30 +00:00
Zuul
b889daccc2 Merge "CI: exclude the inspection abort tests from the inspector-redfish-vmedia job" 2020-05-06 12:37:39 +00:00
Zuul
0bbf7b485b Merge "CI: repair the SNMP job and make it voting." 2020-05-06 12:30:46 +00:00
Dmitry Tantsur
aa43322544 Silence debug messages from oslo_messaging
We already silence the "oslo.messaging" prefix, but the library
also uses "oslo_messsaging" in some cases.

Change-Id: Ifa9743c39bbd1424fbb07e2b65f409c9d7ca826a
2020-05-06 10:33:11 +02:00
Iury Gregory Melo Ferreira
4d2567c2cb Use tempest_plugins Zuul CI role
Instead of setting TEMPEST_PLUGINS for the ironic-tempest-plugin
location let's use the `tempest_plugins` role to add our plugin.

Change-Id: Ie47014c6edb3582932f9fb4b20dc7f9187337027
2020-05-05 18:25:20 +02:00
Riccardo Pittau
c647408f8d Fix tempest plugin location
Change-Id: I395351f4df97387771065121e50c00eab215e534
2020-05-05 14:34:51 +02:00
Iury Gregory Melo Ferreira
5ab51c9772 Update grenade job
- tempest tests regex: ironic_tempest_plugin.tests.scenario
- added LIBVIRT_STORAGE_PATH
- added BASE_RUN_SMOKE False to avoid running smoke tests
before the upgrade.
- added IRONIC_TEMPEST_BUILD_TIMEOUT

Change-Id: Iebf9a609baac56a796e7b86291be746ba5233bdf
2020-05-05 11:20:44 +02:00
Dmitry Tantsur
ce878131cd Remove testscenarios, testrepository and Babel from test-requirements
Neither of these are really used. They have likely been cargo-culted.

Also removing mock from doc/requirements, not sure how it got there.

Change-Id: I8d242d86af4c6ded215e0bc4cf61da346f21e46c
2020-05-05 11:01:59 +02:00
Corey Bryant
627d4dfd1a Monkey patch original current_thread _active
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592

Change-Id: I97c2a756076299a01170beb5bec3fa0e49593146
Story: 2007614
2020-05-04 16:39:06 -04:00
Zuul
82c2663564 Merge "Native zuulv3 grenade job for ironic" 2020-05-04 16:37:49 +00:00
Zuul
8e065c869a Merge "Switch to unittest mock" 2020-05-04 15:32:28 +00:00
Iury Gregory Melo Ferreira
90777c1277 Native zuulv3 grenade job for ironic
Based on the native 'grenade' job

Change-Id: Ia51b32a6499b5e1d37197e6d21556344a85d3b5e
2020-05-04 13:59:23 +02:00
Zuul
2e43e83e50 Merge "Refactor RedfishVirtualMediaBoot" 2020-05-04 01:00:35 +00:00
Zuul
e415a577ad Merge "Add PXE reset known issue to the docs" 2020-05-02 06:54:34 +00:00
Zuul
a96d30b3b3 Merge "Fix configure-vm.py and xml file for centos8" 2020-05-01 14:53:51 +00:00
Kaifeng Wang
3e6dfdb3b9 Remove [conductor]api_url
It was deprecated long before.

Change-Id: I05d8a90dbf6e92ef230b1a9624c6816fc96c6a7f
2020-05-01 07:39:21 +00:00
OpenStack Proposal Bot
2051b19790 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I8ae496531efdeb02452226e25b86ec3b1f577212
2020-05-01 06:50:06 +00:00
Iury Gregory Melo Ferreira
d6e7552457 Switch to unittest mock
Python3 have a standard library for mock in the unittest module,
let's drop the mock requirement and switch tests to unittest mock.

Change-Id: I4f1b3e25c8adbc24cdda51c73da3b66967f7ef23
2020-04-30 19:04:17 +02:00
Iury Gregory Melo Ferreira
2ffbfb4b46 Refactor RedfishVirtualMediaBoot
- Move staticmethods and classmethods to functions, since
in py36 we have a bug when ussing unittest.mock [1]
The only classmethod we are keeping is `_set_boot_device`
since it's used by `DracRedfishVirtualMediaBoot`

[1] https://bugs.python.org/issue23078

Change-Id: I6e51bb956890a01535c62f8a378756e65d438ac3
2020-04-30 18:58:30 +02:00