Bug 1477203 - disable-multipath.sh script does not add the lines required to blacklist devices in /etc/multipath.conf file. [NEEDINFO]
disable-multipath.sh script does not add the lines required to blacklist devi...
Status: NEW
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: gdeploy (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Sachidananda Urs
Depends On:
  Show dependency treegraph
Reported: 2017-08-01 09:10 EDT by RamaKasturi
Modified: 2017-08-02 07:53 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
sabose: needinfo? (nsoffer)

Attachments (Terms of Use)

  None (edit)
Description RamaKasturi 2017-08-01 09:10:04 EDT
Description of problem:
disable-multipath.sh script does not add the lines required to blacklist multipath devices in /etc/multipath.conf file. 
This happens due to the reason that multipathd is running and in the script there is a  line to flush all the multipath entries and this does not work due to the reason that multipath map is in use. When this line in script returns a non zero value script terminates and rest of the script does not get executed.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install RHEL / RHV-H
2. Now login to cockpit and configure 'Hosted Engine with gluster'

Actual results:
Once the deployment is done, entries to black list multipath devices are not present in /etc/multipath.conf file

Expected results:
Entries to black list  multipath devices should be added to /etc/multipath.conf

Additional info:

Not proposing this as a blocker for now due to the fact that we are not aware of the steps on how to flush and black list devices when multipathd is running. Once we have the steps i will propose this as blocker.
Comment 2 Sahina Bose 2017-08-02 00:57:08 EDT
Hi Nir,

Do you know or point me to someone who would know the steps to blacklist devices?

What's currently in place as per https://github.com/gluster/gdeploy/blob/2.0.2/extras/scripts/blacklist_all_disks.sh :
1. call multipath -F
2. edit /etc/multipath.conf to blacklist devices

This errors out in step 1.

Note You need to log in before you can comment on or make changes to this bug.