ironic-inspector/ironic_inspector
Dmitry Tantsur 2b8cc3a93f Lock nodes to avoid simultaneous introspection requests
Now a NodeInfo object has a lock instance attached, which is associated
with a node UUID. New calls acquire_lock and release_lock are added.
NodeInfo.find_node now always acquire a lock, get_node does it optionally.
NodeInfo.finished now always release a lock.

Note that this change does not make NodeInfo thread-safe. Rather it's
preventing simultaneous operations on the same node.

Change-Id: I0c0bd2f4e0622fd7086660b0874c5b8dca82b4d2
Implements: blueprint node-state
2015-11-27 12:05:27 +01:00
..
common Store and expose introspection data 2015-08-27 20:18:54 -04:00
migrations Enable migration autogenerate 2015-11-02 17:24:52 +00:00
plugins Issue a warning when add_ports=pxe and not PXE NIC address is provided 2015-11-16 20:29:47 +01:00
test Lock nodes to avoid simultaneous introspection requests 2015-11-27 12:05:27 +01:00
__init__.py Switch to pbr 2015-06-18 16:09:07 +02:00
alembic.ini Add alembic migrations for the inspector database 2015-09-23 14:44:46 +01:00
conf.py Use rootwrap to execute iptables instead of requiring root 2015-09-23 13:27:15 +02:00
db.py Enable migration autogenerate 2015-11-02 17:24:52 +00:00
dbsync.py Enable migration autogenerate 2015-11-02 17:24:52 +00:00
firewall.py Replace deprecated LOG.warn with LOG.warning 2015-10-22 06:18:47 +00:00
introspect.py Lock nodes to avoid simultaneous introspection requests 2015-11-27 12:05:27 +01:00
main.py Never run Flask application with debug mode 2015-10-15 15:26:16 +02:00
node_cache.py Lock nodes to avoid simultaneous introspection requests 2015-11-27 12:05:27 +01:00
process.py Lock nodes to avoid simultaneous introspection requests 2015-11-27 12:05:27 +01:00
rules.py Add introspection rules support 2015-09-14 14:56:09 +02:00
utils.py Replace deprecated LOG.warn with LOG.warning 2015-10-22 06:18:47 +00:00
version.py Use Reno for release notes management 2015-11-26 10:12:14 +01:00