os-brick/os_brick
Lee Yarwood ed9feedfa3 iscsi: Add _get_device_link retry when waiting for /dev/disk/by-id/ to populate
Bug #1820007 documents failures to find /dev/disk/by-id/ symlinks
associated with encrypted volumes both in real world and CI
environments. These failures appear to be due to udev on these slow or
overloaded hosts failing to populate the required /dev/disk/by-id/
symlinks in time after the iSCSI volume has been connected.

This change seeks to avoid such failures by simply decorating
_get_device_link with the @utils.retry to hopefully allow udev time to
create the required symlinks under /dev/disk/by-id/.

Closes-Bug: #1820007
Change-Id: Ib9c8ebae7a6051e18538920139fecd123682a474
(cherry picked from commit 331316827a)
(cherry picked from commit d8ed21e7d2)
(cherry picked from commit 7ffa3fb7d9)
2019-12-03 15:39:45 +00:00
..
encryptors Make close on cryptsetup volumes idempotent 2017-11-18 00:19:42 +00:00
initiator iscsi: Add _get_device_link retry when waiting for /dev/disk/by-id/ to populate 2019-12-03 15:39:45 +00:00
local_dev Remove the unnecessary pv_list assign during LVM object init 2018-01-11 00:59:31 +00:00
privileged Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
remotefs Fix NFS "already mounted" detection 2018-12-05 12:41:38 -05:00
tests iscsi: Add _get_device_link retry when waiting for /dev/disk/by-id/ to populate 2019-12-03 15:39:45 +00:00
__init__.py doc: Remove cruft from conf.py 2017-08-08 15:44:29 +01:00
exception.py Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
executor.py iSCSI multipath: improve logging on connect 2017-06-26 20:31:59 +02:00
i18n.py Update and replace http with https for doc links 2017-07-26 02:18:44 +00:00
utils.py Mask passwords in utils.trace for func params 2016-11-08 12:55:46 -05:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00