Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ceph-disk: Adding retry loop in get_partition_dev() #14275
There is very rare cases where get_partition_dev() is called before the actual partition is available in /sys/block/.
It appear that waiting a very short is usually enough to get the partition beein populated.
This patch is almost a workaround rather than a fix to the real problem.
Note his patch is not changing the timing when the device is perfectly created on time and just differ by a 1/5th up to 2 seconds when the bug occurs.
A typical output from the build running on a CI with that code.
Signed-off-by: Erwan Velu email@example.com
flake8 runtests: commands | flake8 --ignore=H105,H405,E127 ceph_disk tests ceph_disk/main.py:692:36: E226 missing whitespace around arithmetic operator ceph_disk/main.py:715:32: E226 missing whitespace around arithmetic operator ERROR: InvocationError: '/home/jenkins-build/build/workspace/ceph-pull-requests/src/ceph-disk/.tox/flake8/bin/flake8 --ignore=H105,H405,E127 ceph_disk tests'