1684 Commits

Author SHA1 Message Date
Andreas Jaeger
1a8c1bb370 Cleanup py27 support
This repo is now testing only with Python 3, so let's 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
- Switch to using sphinx-build with apidoc extension
- Use newer openstackdocstheme version
- Remove Babel requirement, this is not needed.

Change-Id: I4176d8002d45449171aa5f7a7caef196ab7900d0
2020-04-20 08:18:51 +02:00
Sean McGinnis
a9f7f67de5
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: Ic67f09a223ae2d0cb460771a10a4122307afa05b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 16:15:28 -05:00
Riccardo Pittau
216de6692b Add variable to set discovery timeout in tempest tests
Discovery can take longer based on which image we use for testing.
This patch adds a variable to control the discovery timeout.

Change-Id: I5654d4bf5131ab4c900f9dfd77358c5f8100b38a
2020-04-16 18:35:51 +02:00
Zuul
2b67a18b51 Merge "Change default ram for tinyipa jobs" 2020-04-16 15:22:51 +00:00
Zuul
eb397e7457 Merge "Move Babel to test-requirements" 2020-04-14 06:44:00 +00:00
Zuul
14b425ebe2 Merge "Set default boot option to netboot for jobs using cirros" 2020-04-09 13:27:06 +00:00
Iury Gregory Melo Ferreira
1ebba53081 Change default ram for tinyipa jobs
Change-Id: I74666983a1d4122d27a14557ba45e88418e24986
2020-04-09 10:12:59 +02:00
OpenStack Proposal Bot
b85d949d96 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0115d6e0022c0b3594d130385222e0ee9f77a6e2
2020-04-08 10:08:11 +00:00
Julia Kreger
fed2cbfa9d Set default boot option to netboot for jobs using cirros
An upcoming ironic change changes the default boot option for nodes
to local booting as opposed to the long standing default netboot.

Some jobs still use cirros, which cannot be local booted from a
partition image as it is designed to write the ramdisk contents
to the partition upon the initial network boot.

Change-Id: I0d0c043de449048c3cc38ed7d7dac3e9e85974ef
2020-04-08 10:49:04 +02:00
Dmitry Tantsur
1613a6b7ae Move Babel to test-requirements
It's not a runtime requirement, it's only used to extract i18n catalogs.

Change-Id: I29e624c894f84390b23a2d2d7f547e488c82d7e8
2020-04-06 14:55:44 +02:00
Zuul
717479c4a3 Merge "Added scope to introspection rules." 2020-04-02 06:39:34 +00:00
Zuul
9fba2e2f02 Merge "Bump hacking to 3.0.0" 2020-04-01 23:27:15 +00:00
Riccardo Pittau
c28a4d0285 Install pymemcache explicitly
The pymemcache package is needed by ironic-inspector-api process
when running in non-standalone mode.
Since devstack doesn't install test-requirements anymore, we need
to force installation in the devstack plugin before the inspector
processes start.

Change-Id: Iff0de5eb99db4a3dcb0d5ff09b908484f9532492
2020-03-31 15:02:29 +02:00
Riccardo Pittau
75437072da Bump hacking to 3.0.0
Change-Id: I6adf3234faa93bc186c892d3e9f1a54a6d70d41d
2020-03-30 11:46:20 +02:00
Zygimantas Matonis
e2c8f9fd7b Added scope to introspection rules.
Added 'scope' property to IntrospectionRule and logic to check if a node
falls in the same scope.This allows introspection rules to be applied on
selected nodes instead of every one of them.

Story: 2006995
Task: 37763

Change-Id: I77034f032ea0ec16886afdd928546eb801f7a90a
2020-03-26 21:40:43 +01:00
Riccardo Pittau
4eefb42550 Finalize ironicclient removal
Completely remove dependency from ironicclient in favor of
openstacksdk.

Change-Id: I9b98ddb05fe867a0d3884f736a2edd7b4d61b00c
2020-03-25 10:08:38 +01:00
Riccardo Pittau
3accdfbbc6 Use openstacksdk for ironic module
This patches removes the ironic-client dependency from the
ironic module in favor of openstacksdk.

Increase minimum required version of openstacksdk to use
recent added features.

Change-Id: I31964179835ad454e8205a59f483b419de4fb62d
2020-03-23 14:28:09 +01:00
Kaifeng Wang
e6ece052ec Add words for mutiarch configuration
Adds some words on the PXE configuration for multi-arch environments.

Change-Id: I10cf510630f50d68e463476b922f40932418f4b3
2020-03-17 18:27:28 +08:00
Riccardo Pittau
351347ad14 Explicitly set ramdisk type
The ironic-inspector-base job is based on ironic-base job which
will default to dib.
To prevent breaking the ironic-inspector CI we set the ramdisk
type to tinyipa for now and we'll convert the jobs here later.

Change-Id: If2be23d4e59f4c4821005b037a6002428b2e7eb4
2020-03-13 12:23:55 +01:00
Zuul
3785ba144b Merge "Change CoreOS to Centos for IPA" 2020-02-20 21:14:11 +00:00
Julia Kreger
0ce61c253b Change CoreOS to Centos for IPA
Swaps the URLs so we can eventually feel safe in removing
the CoreOS IPA images from tarballs.openstack.org.

Change-Id: I99425ab20d34019b327ac8887b382cfea74f779c
2020-02-18 13:17:18 -08:00
Dmitry Tantsur
3d473dc2ea Replace references to the deprecated ironic-agent element
Change-Id: I0f473a0d59de50261880c4e1331c1861e8c745df
2020-02-11 17:30:13 +01:00
Riccardo Pittau
ba8ecd3cf5 Stop supporting Flask < 1.0
Latest version of Werkzeug (1.0.0 at the moment) broke
compatibility with older Flask, actually causing issues when
running lower-constraints tests, since Flask will install
highest version of Werkzueg after 0.7.
With this patch we require Flask to be at least version 1.0
to re-establish compatibility.

See failed test https://review.opendev.org/706701 or run
lower-constraints test locally for confirmation.

Change-Id: Id05b4a205379fdf1b26cb239757bd370f3fe88e3
2020-02-10 10:59:43 +01:00
junyiwan-gtc
e964b18b99 Update ironic inspector document for dropping py2.x
Support for python2 was dropped during the Ussuri development
cycle.

Change-Id: Ibe7514b0fbd7619f24a75cf3f0230f652a6243cf
2020-02-03 22:41:51 +08:00
Zuul
2c2193a1b7 Merge "link introspection API docs to client docs" 2020-01-27 16:53:30 +00:00
Doug Hellmann
f4fe4307be link introspection API docs to client docs
The introspection API documentation does not include any detail at all
about the payload returned. That information is in the
ironic-python-agent documentation instead. Add a link to that location
to make it easier for someone trying to find out what introspection
data is returned to do so.

Change-Id: I972803ac700f25823ac6715d21dda09ebe40e307
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-01-23 16:14:50 -05:00
Riccardo Pittau
fbc773f460 Use bionic job for bifrost integration
The bifrost bionic job is alive again so we can change it here.

Change-Id: I3976e520b46a8eb21041a1f8810d6b7aa84c7ddf
2020-01-21 19:46:10 +01:00
Dmitry Tantsur
f8e26aa088 Respect driver_info.force_persistent_boot_device
This option has been created to work around flacky hardware that
does not work correctly with temporary boot. However, ironic-inspector
unconditionally uses persistent=False. This change fixes it.

Story: #2007093
Task: #38126
Change-Id: Ie21e5beeec6188e3b979c28167e575e1c37087ee
2020-01-15 15:26:20 +01:00
Zuul
4ea3385031 Merge "Update ironic-inspector usage document" 2020-01-09 17:21:26 +00:00
Wang Jerry
31faf7f08c Update ironic-inspector usage document
1. Add inspect command at "Node States" section
2. Add rule import command at "Introspection Rules" section

Change-Id: Ie8eb650f1258933bee0d74eddd77a74a73078f96
2020-01-09 08:53:21 +00:00
Zuul
af43de3b23 Merge "Enforce running tox with correct python version based on env" 2019-12-26 15:32:06 +00:00
Madhuri Kumari
51e791e954 Add librsvg2* to bindep and bindep env
76cbd2dbbb131224e73a4b7c4019c378d2bbaf20 added the docs
build requirement on sphinxcontrib-svg2pdfconverter which
needs the native rsvg-convert command. This change adds
the native package that provides that command to bindep.txt.
Also adds bindep env in tox.ini.

Change-Id: I72aa8695c058989b4a1aa62cbb5d5fda2ce348ad
2019-12-24 13:03:35 +05:30
OpenStack Proposal Bot
aff01c6685 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib977e850de2cfc88b161d9f276c1c8df6699bb45
2019-12-22 07:22:45 +00:00
Riccardo Pittau
917d2e44eb 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].

[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict

Change-Id: Ia14bc6397a88f200277abc5485cab02eb3724e1b
2019-12-20 16:24:13 +01:00
Riccardo Pittau
9b1450398c 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: Ic443c7e4d5a5a849c4dc220207f8957e4c90bf53
2019-12-17 09:23:01 +01:00
Zuul
b2c0c52a95 Merge "docs: use openstackdocstheme extlink extension" 2019-12-17 00:04:18 +00:00
Zuul
7179489366 Merge "Limit lower-constraints.txt to only direct dependencies" 2019-12-17 00:04:16 +00:00
Zuul
a2c2b70d97 Merge "Update docs on aarch64 PXE" 2019-12-05 02:18:20 +00:00
Zuul
6ad813153f Merge "Do not update/delete ports upon inspection of active nodes" 2019-12-04 13:35:47 +00:00
Zuul
9d99da70bd Merge "Get details when listing ports upon inspection of active nodes" 2019-12-04 13:14:54 +00:00
Kaifeng Wang
b22c3347d3 Update docs on aarch64 PXE
Adds a subsection to note PXE configuration for aarch64 machines.

Change-Id: I5a450da256057ac1a997c08f7c3b580feb490377
2019-12-04 10:46:54 +08:00
Serena Ziviani
78dbcf603a Do not update/delete ports upon inspection of active nodes
Short-circuit the port update logic for active nodes to allow only
for the addition of new ports.

Story: #2006956
Task: #37645

Change-Id: Ifd870a8465b6643578299dc86e2eae023db6ae43
2019-12-03 15:30:00 +01:00
Zuul
2da963519d Merge "Create a job with boot and networking managed by ironic" 2019-12-03 13:07:40 +00:00
Dmitry Tantsur
d1ab0a6b71 Create a job with boot and networking managed by ironic
The devstack plugin is updated to skip configuring PXE environment
if managed mode is requested, so that only ironic's PXE environment
is usable.

Change-Id: Ib7b83210a02b727d94dfa15bde43e7fee2e51531
Story: #1528920
Task: #37254
2019-12-02 12:08:19 +01:00
Arne Wiebalck
dc606b7132 Get details when listing ports upon inspection of active nodes
Add detail=True to make sure the inspector gets the node_uuid
from the port list when inspecting active nodes,

Change-Id: I1378a1a4d2a35ba8f182138877b5151f25d4c56d
Story: #2006950
2019-11-28 10:50:32 +01:00
Riccardo Pittau
aa75bfa8f0 docs: use openstackdocstheme extlink extension
The extlink extension [1] ensures the urls have version-specific
references to other projects.

[1] https://docs.openstack.org/openstackdocstheme/latest/#external-link-helper

Change-Id: I59ae4e28a02ee2683d35cf46857386e3f458ec2c
Story: 2006621
Task: 36917
2019-11-22 12:31:21 +01:00
Riccardo Pittau
96c5e6516c Limit lower-constraints.txt to only direct dependencies
Also increasing lower version of keystoneauth1 to a recommended
version for openstacksdk >= 0.30.0

Change-Id: Ifb9bbb8d091f28a8d65444caaeba301e2f707a14
2019-11-22 12:30:36 +01:00
Kaifeng Wang
0e3cd671da Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: Ifae00adf782b6a7d71c4dc45a69a9638b8514d30
2019-11-22 11:17:34 +08:00
Iury Gregory Melo Ferreira
391877a084 Switch legacy job to Py3
Our legacy job is running on py2.7, let's switch to py3 before dropping py2.7

Change-Id: I8c415be1b7d3bc4042da5fbdafbea722bdd5509b
2019-11-13 14:42:55 +01:00
Zuul
a583260861 Merge "Make the bifrost job non-voting" 2019-10-29 10:41:14 +00:00