Error running docker-storage-setup in multipath enviroment
Issue
When trying to setup docker storage in a "multipath" environment, if we are using the container-storage-setup 0.9.0-1 version or lower, we will get this error:
# docker-storage-setup
ERROR: Device /dev/sdX is already partitioned and cannot be added to volume group VG_docker
The issue is that seems that docker-storage-setup can't create the LVs whit multipath.
The /usr/bin/container-storage-setup script checks to see if the specified device has a parent to ensure that the device is not a loop device. Multipath (mpath) devices also have a parent, so the script incorrectly believes that the mpath device is a loop device.
This is the related bugzilla about this issue ->
https://bugzilla.redhat.com/show_bug.cgi?id=1496295
Environment
OpenShift Container Platform 3.6
OpenShift Container Platform 3.7
OpenShift Container Platform 3.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.