* turn on apidocs option for individual module docs
* crosslink to information using :doc: and :ref:
Change-Id: Ie8016623251fb0f55335c64252060d4ce966dc96
Now we have docs, lets point people there rather than attempting to
maintain a copy in tree.
Also update the devstack plugin to build ironic.conf from scratch rather
than from the sample.
Change-Id: Id65a4f803832fefe467d59147c39d2dea604ed3c
Updating the CONTRIBUTING.rst, config.py and example.conf to inform the
Operator (and Developer) that the PXE filter options have no effect yet.
Change-Id: I032114934e300af1e1908369552f1b06c939002f
Moving the contributor "link" and API down the mandatory directory
structure.
Change-Id: I111cd55a06e40dc4db649728a5025354a85b3e1d
Partial-Bug: 1702142
We have dropped downgrade migration support a while ago, but there
are some notes left in contributing guide.
Change-Id: I02131aa9e2d3c9a682cb29403abe8823ac6e1ffb
Current documentation to deploy ironic-inspector with DevStack needs
an update similar to the ironic project.
This patch modifies/updates a section "DevStack Support". Also, it
updates the example.local.conf to a configuration that can be used
as-is to deploy ironic-inspector with DevStack.
Change-Id: I0a4a5198246e3ca69d2bd050dd31c6b468094fcf
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.
This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.
See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html
Update CONTRIBUTING for this.
Change-Id: Ifc16055770e7bf765630814981e3d273876907a7
Needed-By: Icc2a8115cd0b5de165cab2076dbed890f28de172
Now that our gate is using tempest, these are no longer needed and
maintained. Also stop recommending them in CONTRIBUTING.
Change-Id: I6bd10cf1052b5cd66fc0580439801171739bf7e0
It's convenient to have a downloadable example of local.conf.
This change extracts the example from the contributing documentation.
Also removes the noop variable.
Change-Id: I18a7f9969a9820fa8c736dede5f39c70f9c85b6a
From now on only rely on the IPA inventory and 2 additional fields:
boot_interface and root_device.
Also updated unit tests to use one inventory example.
Also removed duplicating unit tests and checks in test_process.
Also removed devstack support for the old ramdisk.
Change-Id: Ib382328295fc2c1b9143171b1047304febadcaca
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.
Post jobs are not yet compatible with the upper-constraints file, so
override the install_command there to skip upper-constraints.
Credit to the equivalent Ironic patch
https://review.openstack.org/#/c/300146/
Change-Id: Ica668afedf622a0be8e8566ac88e1d0020ed9bc7
Closes-Bug: #1563038
This was designed to clean up action effects, but proved too confusing.
We should recommend using explicit clean up action instead.
Change-Id: Ia414979956cc0cbd5ed040831c49dba18671f86d
Tests for database migrations. There are "opportunistic" tests here,
supported backends are sqlite (used in test environment by default),
mysql and postgresql, which are required properly configured unit
test environment.
Change-Id: I660fad241c71f2e73b41f317d00adf97551579c6
Long time ago we had an idea of batching node updates. However,
it fails miserably when a plugin or an introspection rule has to inspect
existing node properties, because it receives possibly stale values.
We've deprecated support for batching patches back in Liberty, this
patch removes the associated bits from the hook interface.
Change-Id: Ia482ff50ca276ce1ffec631f016c6a6b54d5a4ab
Closes-Bug: #1506348
* Stop requiring memory_mb, local_gb, cpu, cpu_arch, ipmi_address, interfaces;
take them from inventory instead
* Issue a warning when inventory is not supplied
* Raise an error when root device hints are requested but inventory
is not supplied
* Logging improvement around network interfaces handling
Closes-Bug: #1528831
Change-Id: Iaa1c34092463ff216379e30bcef55235517f6c92
These changes allow a developer to generate migrations using the
autogenerate function without the need to pass in a config file that
includes sql connection information.
Change-Id: I6b3942f7747e8f73e52925c24340e20daeb78911
This patch adds a new command ironic-inspector-dbsync which can be used
to sync the ironic inspector database using alembic migrations. It adds
a migration to match the current required db schema.
Change-Id: I21188b3f5003c8ab43d82903473e2a6ef7f755a0
Closes-Bug: #1495620
This approach was an optimization, but it proved to bring more
troubles than benefits - see LP issue for details.
Precautions are made to avoid breakage. Still, some 3rdparty
hooks might get broken by this change.
Change-Id: I5a84512758e92c87091d6306c8d5baa944955e55
Closes-Bug: #1492946
This patch introduces a simple JSON-based DSL to run on introspected
data. Conditions and actions are provided via new plugin entry points.
This patch is missing PUT operation on a rule, this can be added later.
Also not all planned conditions and actions are added in this patch,
will also follow up.
Implements: blueprint rules
Change-Id: If4d17b5f1462d03879cb4c2ff4e5cb3ea364b697
This adds the ability to store all of the data collected
during introspection. The configuration option
"[processing] store_data" (defaults to 'none'), determines
this behavior. Initially, only 'none' and 'swift' are
supported. If 'swift' is used, the data is stored in Swift
with the object name of "inspector_data-<UUID>".
Adds an endpoint /v1/introspection/<UUID>/data which
retrieves the data according to the method in
"[processing] store_data". Returns 404 if this option
is disabled.
There is a further option to store the location of the data
in the Ironic Node.extra column. For 'swift', this will be
the name of the swift object. The option,
"[processing] store_data_location" determines the key
name in the Node.extra column. (defaults to not storing
the location).
Change-Id: Ibc38064f7ea56f85b9f5a77ef6f62a50f0381ff4
Implements: blueprint store-introspection-data
Also move documentation here from always broken etherpad.
Depends on https://review.openstack.org/#/c/186772/
for Ironic inspection to work.
Change-Id: I795aa9405e6141cc82ad0f37b90a3cc6f0d402c0