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
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>
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
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
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
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
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
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
Swaps the URLs so we can eventually feel safe in removing
the CoreOS IPA images from tarballs.openstack.org.
Change-Id: I99425ab20d34019b327ac8887b382cfea74f779c
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
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>
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
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
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
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
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
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
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
Also increasing lower version of keystoneauth1 to a recommended
version for openstacksdk >= 0.30.0
Change-Id: Ifb9bbb8d091f28a8d65444caaeba301e2f707a14