commit dc0c07e0bf54cd461799716be438c708841d386e
Author: Paul Bourke <email address hidden>
Date: Wed Nov 16 14:12:38 2016 +0000
Add a 'fallback mode' to disable udev in find_disks
As part of change I362b3f8e91de79687fc84e256996fbcaf303b6af a check was
added to use udev to read GPT labels only if the version of udev
installed supports that, otherwise fallback to sgdisk.
Unfortunately the check for udev version is unreliable, as it is
returning the version of the udev userspace tools installed within the
container rather than on the host.
As well as this, we're seeing the find_disks.py having trouble reading
the UUID of a partition via udev. The test system is Oracle VM 3.4.2
which was released earlier this year, but has an old udev (derivative of
RHEL 6).
Even if we use Ansible to query the host's version of udev and pass that
through to the container, querying the above disk attributes is a
lottery on older systems without a reliable reference of which versions
of udev support which operations. Hence we should give operators a
reliable way to toggle it's usage.
Reviewed: https:/ /review. openstack. org/384496 /git.openstack. org/cgit/ openstack/ kolla/commit/ ?id=dc0c07e0bf5 4cd461799716be4 38c708841d386e
Committed: https:/
Submitter: Jenkins
Branch: master
commit dc0c07e0bf54cd4 61799716be438c7 08841d386e
Author: Paul Bourke <email address hidden>
Date: Wed Nov 16 14:12:38 2016 +0000
Add a 'fallback mode' to disable udev in find_disks
As part of change I362b3f8e91de79 687fc84e256996f bcaf303b6af a check was
added to use udev to read GPT labels only if the version of udev
installed supports that, otherwise fallback to sgdisk.
Unfortunately the check for udev version is unreliable, as it is
returning the version of the udev userspace tools installed within the
container rather than on the host.
As well as this, we're seeing the find_disks.py having trouble reading
the UUID of a partition via udev. The test system is Oracle VM 3.4.2
which was released earlier this year, but has an old udev (derivative of
RHEL 6).
Even if we use Ansible to query the host's version of udev and pass that
through to the container, querying the above disk attributes is a
lottery on older systems without a reliable reference of which versions
of udev support which operations. Hence we should give operators a
reliable way to toggle it's usage.
Partial-Bug: 1631949 98f3d02f2ae064c 7c1c38e10d5
Change-Id: I6ad7825cdb1644