As agreed on the summit I'm renaming the python modules
and doing some adjustments:
* This is a breaking change, so version is bumped to 2.0.0
* Used this chance to split conf options over proper sections
* RELEASES.rst is gone; it's too hard to keep it up-to-date;
anyway git does better job at doing history
* Dropped deprecated option ports_for_inactive_interfaces
* Dropped old /v1/discover endpoint and associated client call
* No longer set on_discovery and newly_discovered in Node.extra
(deprecated since 1.0.0, superseded by the get status API)
* Default firewall chain name is "ironic-inspector" and
is configurable
Notes:
* Some links will be updated after real move.
* Stable branches will probably use the old name.
* Some usage of discovery word is left in context of
"discovered data"
* DIB element will probably be deprecated, so leaving it
alone for now.
* Some usages of word "discovery" in the README will be updated
later to make this patch a bit smaller
* Ramdisk code will be moved to IPA, so not touching it too much
Change-Id: I59f1f5bfb1248ab69973dab845aa028df493054e
* Introduce a specific exception class (subclasses requests.HTTPError
to be backward compatible)
* Fetch error message from response body
* i18nize existing errors
Change-Id: I71922895c3177720789c6933da79b8882bfa7127
Closes-Bug: #1428680
This patch set adds support for generating config files
using oslo-config-generator.
Old invocation without --config-file is no longer supported.
Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: If640e6dc83c971a8f82f9b245a4496d298dfd042
Closes-Bug: #1398359
New option 'add_ports' with values 'all', 'active', 'pxe'.
Deprecate old option 'ports_for_inactive_interfaces' and drop
introduced in this cycle option 'only_pxe_booting_port'.
Change-Id: I40155fa1c4a54945cdc83506e741fc9be506b9db
Partial-Bug: #1404279
* Split away HTTP API and make sure usage info is enough for users
* Drop release notes for unsupported 0.2
* Various link updates and small fixes
* Forward-port 1.0.1 release notes
Change-Id: Ifa2b306d4a6fff19abc1565dabe7f6609363dc08
In some cases (eg. DRAC), the driver doesn't provide any information to
figure out the root device during RAID configuration. A workaround for
that is creating the RAID disks in 2 runs: one run for the root device
and another one for the rest. In between ironic-discoverd can be used to
examine the changes in the block devices.
This patch adds this capability as a plugin to gather the block device
serials, save it temporarly and expose the root device hint.
Change-Id: I71c42cb131a4e8f0b4fe4eb2f42ac7cde2bceea9
Demo CLI is not updated, waiting for proper CLI to be implemented
first.
Change-Id: Ibbac0114310969c4dd5273a5abd6cdc678cc24bd
Implements: blueprint setup-ipmi-credentials-take2
Defaults to creating a port only for interface we used for
PXE booting.
Change-Id: Ib020d10dfdbf6902780133390fc80f7522a8614b
Implements: blueprint better-boot-interface-detection
* Drop support for ancient ramdisks not passing 'interfaces'
* Store all_interfaces into node_info
* Raise if no interfaces are provided
* Raise if no interfaces found after processing
Implements: blueprint better-boot-interface-detection
Change-Id: Ic3f3ed73f774cfc7545d3b397a609fe8add7d4ec
It receives eDeploy's hardware discovery to classify hardware
according to hardware profiles and extracts the needed information for
the configuration of the node.
Change-Id: I11b4cf21ec81ce8efd3222597a5226fe260721e2
Implements: blueprint edeploy
Prebuilt images that are on the internet no longer work,
do not mention them. Rather provide instruction on building images.
Some more fixes to the installation notes.
Change-Id: I7c66be780a12f1c327f0e7ef5558db2eb8e3e622
Maintains backwards compatibility with the old style invocation,
by adding a config_shim method. Logs a warning if the old style
invocation is used.
Change-Id: I11666a2fff0e9bdc6b26cb46505dcb03fa06fa50
Closes-Bug: #1411194
Also make README reflect the current reality, as it wasn't updated
in the previous (already merged) patch.
Change-Id: I32a95a7f428f08fec564c3e3bc2b6413bd38bf3a
Implements: blueprint v1-api-reform
* New endpoint /v1/introspection/<uuid>
* Backed by new function node_cache.get_node
* New client function get_status
* Functional test
Change-Id: Ib072b2ff711e7df232a793bf5e17c7880e97b92d
Implements: blueprint get-status-api
It's unlikely we're going to have proper testing for this feature
in 1.0.0 timeline, so let us not enable it by default.
Also updated release notes and example.conf to explicitly state
experimental nature of this feature.
Change-Id: Ie40fb585c11083c4d8943fd6edc9f5c999206c47
Implements: blueprint setup-ipmi-credentials
The more we rely on this database, the less sane is to use
temporary file as the default.
Change-Id: I8e04d76c6310c1db3576e0dc37d38a8b3af8c4b8
Closes-Bug: #1407602
Git already does quite a good job of keeping a changelog, only
create high-level release notes from now on.
(cherry picked from commit 7a7c62511cc33bb1af87cb10aad73a08910d071b)
Also created release notes for 1.0.
Change-Id: I2ef30a4786d83d5a35788e6f2ad3532ef1aa3da0
If ipmi_setup_credentials is set to true in Node.extra, return
desired credentials back to the ramdisk and wait for power management
interface to pass validation.
Unfortunately, due to newly revealed problems, this is reverting
a big part of blueprint returning-to-ramdisk.
Change-Id: I63976d01f265d18c385f6a30f1f2884c58ca5a43
Implements: blueprint setup-ipmi-credentials
Option controls whether to shut down node after the discovery.
Change-Id: I447a640a963eafac820c94db3dcd005268ae6bef
Implements: blueprint returning-to-ramdisk
Unfortunately, we can't really notify that we timed out, because
we can't set Ironic internal fields like 'last_error'. So we rely
on Ironic to do it's own timeout.
Change-Id: I5901f8e80b59d53975b6b265fba61e965884bb31
Closes-Bug: #1391871
Introduces SQLite database to keep a cache of nodes for discovery.
Move node lookup code into a new module `node_cache`.
This will greatly improve performance by doing less network requests
and will allow both implementing timeouts and getting rid of using
maintenance mode.
Change-Id: I543cb32d9d04f55bcf4573e9e0d341317cae4df6
Partial-Bug: #1391868
Partial-Bug: #1391871