fuel-devops/devops/helpers
Dennis Dmitriev 17b805acaf Avoid race condition using parallel fuel-devops env manipulations
If multiple processes are creating/erasing different fuel-devops
environments at the same time, there can be race condition during
libvirt object creation/deletion like:
'bridge virbr3 already exists' and others.

This patch allows to use a lock file to avoid such situation:
export DEVOPS_LOCK_FILE=/run/lock/devops_lock

If the environment variable DEVOPS_LOCK_FILE is not set, then
the lock file is not used (backward compatibility to avoid any
errors caused by using the lock file by default).

Change-Id: Id28f442959594aa5d6bb5c1d15e4f0880653070d
(cherry picked from commit cce44f4784)
2018-10-01 10:50:39 +00:00
..
__init__.py Update copyright year properly 2014-05-07 00:15:36 -07:00
decorators.py Avoid race condition using parallel fuel-devops env manipulations 2018-10-01 10:50:39 +00:00
exec_result.py Implement subprocess helper with SSHClient like API 2016-07-21 14:33:16 +00:00
helpers.py Move time-calculation based timeout check back to wait functions 2017-02-27 16:55:22 +04:00
metaclasses.py Implement subprocess helper with SSHClient like API 2016-07-21 14:33:16 +00:00
network.py Replace ipaddr by netaddr 2016-03-31 09:24:20 +00:00
node_manager.py Pylint: python3 critical issues 2016-04-06 09:09:57 +00:00
ntp.py Support for chrony NTP 2016-07-14 13:53:18 +03:00
retry.py Fix flake8 errors and add tox flake8 tests 2014-08-04 17:43:18 +04:00
scancodes.py Fix mistypes and minor code style issues 2015-11-19 17:09:49 +03:00
ssh_client.py Ignore BadHostKeyException while trying ssh keys 2017-06-14 16:13:21 +04:00
subprocess_runner.py Implement subprocess helper with SSHClient like API 2016-07-21 14:33:16 +00:00
templates.py Deprecate protected methods 2016-05-16 16:46:17 +03:00
xmlgenerator.py Migrate from xmlbuilder to custom builder based on xml.etree 2016-07-05 10:19:36 +03:00