A Python agent for provisioning and deprovisioning Bare Metal servers.
Go to file
Lucas Alvares Gomes bd8c6c7420 Fix waiting for target disk to appear
This patch is changing the _wait_for_disks() method behavior to wait to
a specific disk if any device hints is specified. There are cases where
the deployment might fail or succeed randomly depending on the order and
time that the disks shows up.

If no root device hints is specified, the method will just wait for any
suitable disk to show up, like before.

The _wait_for_disks call was made into a proper hardware manager method.
It is now also called each time the cached node is updated, not only
on start up. This is to ensure that we wait for the device, matching
root device hints (which are part of the node).

The loop was corrected to avoid redundant sleeps and warnings.

Finally, this patch adds more logging around detecting the root device.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: I10ca70d6a390ed802505c0d10d440dfb52beb56c
Closes-Bug: #1670916
(cherry picked from commit 3189c16a5e)
2017-10-17 14:25:05 +00:00
doc/source Merge "Removes unnecessary utf-8 encoding" 2017-07-25 19:40:23 +00:00
etc/ironic_python_agent Configure and use SSL-related requests options 2017-01-13 11:33:44 +02:00
imagebuild Merge "fix path for ldlinux.c32" 2017-06-08 07:02:16 +00:00
ironic_python_agent Fix waiting for target disk to appear 2017-10-17 14:25:05 +00:00
releasenotes Fix waiting for target disk to appear 2017-10-17 14:25:05 +00:00
tools Use oslo-config-generator for sample config 2016-12-09 21:01:02 +02:00
.gitignore Move contributor documentation 2017-07-10 19:57:58 +00:00
.gitreview Update .gitreview for stable/pike 2017-08-16 08:53:39 +00:00
.testr.conf Split functional and py27 tests 2015-08-28 14:16:34 -07:00
.travis.yml Preparing for OpenStack testing environment 2014-03-11 12:50:12 -07:00
CONTRIBUTING.rst Correct/update links 2017-07-14 20:28:08 +00:00
Dockerfile Enforce upper-constraints when building ramdisks 2016-08-26 09:06:24 -04:00
LICENSE add license file 2013-09-17 13:41:59 -07:00
README.rst Update links in README 2017-08-11 00:48:07 +00:00
plugin-requirements.txt Add "logs" and "extra-hardware" inspection collectors 2015-10-01 18:25:30 +02:00
proxy.sh Add support for proxy servers during image build 2016-02-04 14:27:49 -08:00
requirements.txt Updated from global requirements 2017-07-18 01:47:05 +00:00
setup.cfg Merge "Collect processor, memory and BIOS output of dmidecode" 2017-07-24 12:29:36 +00:00
setup.py Updated from global requirements 2017-03-02 11:45:38 +00:00
test-requirements.txt Updated from global requirements 2017-08-03 00:31:21 +00:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/pike 2017-08-16 08:53:39 +00:00

README.rst

Team and repository tags

image

ironic-python-agent

An agent for controlling and deploying Ironic controlled baremetal nodes.

The ironic-python-agent works with the agent driver in Ironic to provision the node. Starting with ironic-python-agent running on a ramdisk on the unprovisioned node, Ironic makes API calls to ironic-python-agent to provision the machine. This allows for greater control and flexibility of the entire deployment process.

The ironic-python-agent may also be used with the original Ironic pxe drivers as of the Kilo OpenStack release.

Building the IPA deployment ramdisk

For more information see the Image Builder section of the Ironic Python Agent developer guide.

Using IPA with devstack

This is covered in the Deploying Ironic with DevStack section of the Ironic dev-quickstart guide.

Project Resources

Project status, bugs, and blueprints are tracked on Launchpad:

https://launchpad.net/ironic-python-agent

Developer documentation can be found here:

https://docs.openstack.org/ironic-python-agent

Additional resources are linked from the project wiki page:

https://wiki.openstack.org/wiki/Ironic-python-agent

IRC channel:

#openstack-ironic

To contribute, start here: Openstack: How to contribute.