Without manage_boot the only real action we do is updating the firewall,
which is supposed to be pretty fast. Making the call synchronous means
that ironic will receive information about PXE filter failures and will
not attempt to power on a failed node or before the PXE filter is updated.
Change-Id: I95b63d4e1d4c2c186c0e8234c4382b00aa918aa8
Story: #2007658
Task: #39746
When boot is managed by the ironic side, a node is powered on
right after starting introspection. Inspector's own delays play
no role and may actually prevent introspectin from happening if
a node boots faster than it's whitelisted in the PXE filter.
This changes moves the delay handling later in the process and
only does it when manage_boot is True.
Change-Id: If7de8b66ea42eff2966c62a9a0529ab9a5c06f26
Story: #2007658
Task: #39745
Remove the value of IRONIC_RAMDISK_TYPE when present to make
the base job and all children take the type from ironic-base
which now is set to use the dib image.
Change-Id: I59f00c0b135f209ca6258efe9c3e3eb722fff4cb
- Add ipa-builder to grenade
- Disabled smoke tests since they are not lightweight when
using Ironic.
- Using test_baremetal_introspection for the tempest run
pos-upgrade.
- added LIBVIRT_STORAGE_POOL_PATH since some cloud providers
may not have enough disk space.
- lowered the number of VMs to 3 (we don't have many tests)
Change-Id: Ifee10541f369d5bc850ce3d92305810cd3eedd34
Inspection can sometimes take longer based on multiple factors.
This patch adds a variable to control the node inspection timeout.
Change-Id: Iefac618d73ccba3b58baefdc6b993758622b8811
It's nice to know when a periodic task fails, but aborting the whole
process makes it fragile in the events of e.g. problems with accessing
ironic, even if transient.
Simplify the overly complex unit tests and split the dual-purpose task.
Story: #2007622
Task: #39653
Change-Id: I64f5ca6e377a4cdfa08319ef9973b591cc552121
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: If5c4fc8dd8f3dfe87baf1d10a21ff4333cb00e42
Story: 2007614
This commit takes example local.conf from docs.openstack.org/ironic
and adds settings needed to run ironic-inpector.
Change-Id: Id1f4f1140526e27a1072181973a9ff695560c97b
Using autospec ensures that mocked functions are called with correct
arguments, so it's highly desired to have it.
Change-Id: I9c8395adf852495d2ef6db732d727990e8abd5d7
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: I306e9d51af365c8c8e126e1b7d4e16791795f03f
Sem-Ver: feature
After upgrade it seems we don't have enough REMAINING_TIME
to finish the smoke run, let's try increassing the
DEVSTACK_GATE_TIMEOUT.
Change-Id: I61b3a1376cfe3575e01e3eb0a877e76456ba5c61
This is a follow up to comments on https://review.opendev.org/720010.
Adding autospect=True requires an update to ironic_inspector.test.\
base.BaseTest.assertCalledWithPatch.
Also add autospec=True in several mocks where it was not used.
Change-Id: Ia340d7a8ecde1c8cf191555de87b11b19b30f06c
- Removes confusing comment in _get_physnet_patch method.
- Move binary operator to follow code style.
- Removed info log entry in before_update.
- Move releasenote to 'other' section as this is no user
faceing change.
Change-Id: I53d8bf97a87ae365a085a795901eaed1f0c32d9b
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.
Change-Id: I26bc2d06e04f85fff05e4af5e0d16e7f9db3a1e7
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>
The physnet_cidr_map hook adds functionality to
populate the physical_network of a baremetal port based
on a cidr-to-physnet mapping in configuration.
Related-Bug: #1870529
Change-Id: I43cdac5ccd8c46836b26f6e4bc0d4509958e2e79
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
This base class contains the basic logic for assigning a physical
network to ironic ports. Subclasses should implement the mechanism for
determining how to map ports to a physical network based on the
introspection data.
Authored-By: Mark Goddard <mark@stackhpc.com>
Co-Authored-By: Harald Jensås <hjensas@redhat.com>
Change-Id: I4f6fc9e3d5692075ceb4f38fa04ed54aa22a1d8b