ironic-lib/ironic_lib
Dmitry Tantsur 653b59a09d Run sync and partprobe after adding a configdrive partition
We're hitting a problem in the CI where /dev/sda2 does not exist after
being created. The logs suggest running partprobe may fix the problem,
so let's try it.

With this, we can also encounter a case where there refresh will fail
because the partition was created using fsync calls to force the write
of the partition table. However, filesystem VFS layer does impact this
behavior, and fsync on files in a ramdisk is a noop, so we must force
everything to be flushed to disk before attempting to execute partprobe.

Also run 'sgdisk -v' after partitioning to leave some traces in the logs
for debugging when something goes wrong.

Story: #2004744
Task: #28815
Change-Id: I9db48a3462422749290bbb887c14816734ab0478
Depends-On: I8d6f8c99e1ab5f26e3537630d0f6086e02a2b1ec
2019-01-09 10:40:28 -08:00
..
common Remove translation of log messages 2017-03-21 12:12:56 -07:00
tests Run sync and partprobe after adding a configdrive partition 2019-01-09 10:40:28 -08:00
__init__.py Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
disk_partitioner.py Add logic to create PReP partition for ppc64* arch 2018-07-16 14:26:50 +00:00
disk_utils.py Run sync and partprobe after adding a configdrive partition 2019-01-09 10:40:28 -08:00
exception.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
metrics.py Use six.wraps() for Metrics so decorated methods can be inspected 2018-02-01 08:47:01 -08:00
metrics_statsd.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
metrics_utils.py Add support for metrics 2016-06-28 13:38:01 +01:00
utils.py Simplify logic in wait_for_disk_to_become_available 2018-01-17 13:56:16 -08:00
version.py Add framework for doc building in ironic-lib 2016-08-18 09:14:52 -07:00