A service for managing and provisioning Bare Metal servers.
Go to file
Julia Kreger b8e4aba1ec Remove locks before RPC bus is started
A partner performing some testing recognized a case where if a request
is sent to the Ironic Conductor while it is in the process of starting,
and the request makes it into be processed, yet latter the operation
fails with errors such as NodeNotLocked exception. Notably they were
able to reproduce this by requesting the attachment or detachment of
a VIF at the same time as restarting the conductor.

In part, this condition is due to to the conductor being restarted
where the conductors table includes the node being restarted and
the webserver has not possibly had a chance to observe that the
conductor is in the process of restarting as the hash ring is
still valid.

In short - Incoming RPC requests can come in during the initialization
window and as such we should not remove locks while the conductor could
possibly already be receiving work.

As such, we've added a ``prepare_host`` method which initializes
the conductor database connection and removes the stale locks.
Under normal operating conditions, the database client is reused.

rhbz# 1847305

Change-Id: I8e759168f1dc81cdcf430f3e33be990731595ec3
2020-07-28 08:03:21 -07:00
api-ref Add api-ref for indicators API 2020-06-19 09:05:08 +02:00
devstack Merge "add tempest boot_mode config" 2020-07-09 10:07:07 +00:00
doc Merge "Decompose the core deploy step of the direct deploy" 2020-07-09 14:30:45 +00:00
etc Drop rootwrap.d/ironic-lib.filters file 2020-03-16 23:05:36 +01:00
ironic Remove locks before RPC bus is started 2020-07-28 08:03:21 -07:00
playbooks Collect tftpd info from journald 2020-05-19 09:23:32 +02:00
releasenotes Remove locks before RPC bus is started 2020-07-28 08:03:21 -07:00
tools Stop using md5 for __repr__ of objects 2020-07-07 15:28:03 +02:00
zuul.d add tempest boot_mode config 2020-07-08 21:55:02 +02:00
.gitignore Migrate to stestr as unit tests runner 2017-09-22 08:56:34 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:40:53 +00:00
.mailmap Add my new address to .mailmap 2020-04-13 07:29:37 -07:00
.stestr.conf Migrate to stestr as unit tests runner 2017-09-22 08:56:34 +00:00
bindep.txt Follow up of fix uefi jobs with ovmf native ubuntu package 2020-07-07 12:04:56 +02:00
CONTRIBUTING.rst Project Contributing updates for Goal 2020-02-20 02:01:21 +00:00
driver-requirements.txt Change ibmcclient compatible version 2020-05-15 18:31:51 +02:00
LICENSE Added project infrastructure needs. 2013-05-02 14:55:43 -04:00
lower-constraints.txt Fix hacking min version to 3.0.1 2020-06-30 23:58:56 +00:00
README.rst Add ironic-specs link to readme.rst 2019-08-30 17:16:09 +08:00
reno.yaml tell reno to ignore the kilo branch 2020-02-07 16:42:15 -05:00
requirements.txt Enable Basic HTTP authentication middleware 2020-06-05 01:15:08 +12:00
setup.cfg Merge "Feature: Add raid configuration support for ibmc driver" 2020-06-11 16:35:03 +00:00
setup.py Cleanup Python 2.7 support 2020-04-03 17:49:23 +02:00
test-requirements.txt Fix hacking min version to 3.0.1 2020-06-30 23:58:56 +00:00
tox.ini Enforce autospec in test_task_manager 2020-07-07 15:45:15 +02:00

Ironic

Team and repository tags

image

Overview

Ironic consists of an API and plug-ins for managing and provisioning physical machines in a security-aware and fault-tolerant manner. It can be used with nova as a hypervisor driver, or standalone service using bifrost. By default, it will use PXE and IPMI to interact with bare metal machines. Ironic also supports vendor-specific plug-ins which may implement additional functionality.

Ironic is distributed under the terms of the Apache License, Version 2.0. The full terms and conditions of this license are detailed in the LICENSE file.

Project resources

Project status, bugs, and requests for feature enhancements (RFEs) are tracked in StoryBoard: https://storyboard.openstack.org/#!/project/943

For information on how to contribute to ironic, see https://docs.openstack.org/ironic/latest/contributor