Comment 2 for bug 1301975

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/90126
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=5166aab73ac55781a49aed6319302fd4ffa8b2be
Submitter: Jenkins
Branch: master

commit 5166aab73ac55781a49aed6319302fd4ffa8b2be
Author: Imre Farkas <email address hidden>
Date: Thu Apr 24 17:44:36 2014 +0200

    Fix workaround for the "device is busy" problem

    Right after partitioning, we have a sleep(3) to avoid the "device is
    busy" problem. A less error-prone solution is to check with fuser,
    whether there is any process currently using the disk.

    The following config options are introduced under the 'disk_partitioner'
    group:
    - check_device_interval: seconds between consecutive checks for the
    device status
    - check_device_max_retries: number of retries for checking the device
    status

    Change-Id: Icb73db5aeb16d1abc390975c2bd8bf4b486566e5
    Implements: blueprint device-status-check-with-fuser
    Closes-Bug: #1301975