Bug 1596728

Summary: [Tracker OCP 3.11] Change multipath config steps of Advanced Installation to include load-balancing changes(RFE-1575529)
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Neha Berry <nberry>
Component: cns-ansibleAssignee: Jose A. Rivera <jarrpa>
Status: CLOSED ERRATA QA Contact: Neha Berry <nberry>
Severity: high Docs Contact:
Priority: unspecified    
Version: cns-3.10CC: akhakhar, aos-bugs, dmoessne, hchiramm, jarrpa, jialiu, jokerman, kramdoss, madam, mmccomas, pprakash, rcyriac, rhs-bugs, rtalur, sankarshan, sarumuga, sdodson
Target Milestone: ---   
Target Release: OCS 3.11   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: We will have to set prio as "alua" instead of prio as "const" in the /etc/multipath.conf file. Reason: To take advantage of load balancing feature. Result: prio is set as "alua" in /etc/multipath.conf file.
Story Points: ---
Clone Of: 1596726 Environment:
Last Closed: 2018-10-24 04:50:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1596726    
Bug Blocks: 1629575    

Description Neha Berry 2018-06-29 14:39:19 UTC
+++ This bug was initially created as a clone of Bug #1596726 +++

Based on RFE - https://bugzilla.redhat.com/show_bug.cgi?id=1575529



Description of problem:
++++++++++++++++++++++++++
A fresh setup was created for OCP 3.10(v3.10.0-0.67.0) and CNS 3.10 using Ansible advanced deployment playbook( deploy_cluster.yaml).

Starting from gluster-block version- gluster-block-0.2.1-19.el7rhgs , load-balancing feature is enabled and to use this benefit, on the initiator side we will have to set 'prio alua' instead of prio "const" in the /etc/multipath.conf file. 

Since multipath is configured as part of a sub-task in deploy_cluster.yaml deployment, requesting to make the below changes to the multipath configuration file which is added/created in the OCP+CNS nodes.

prio "const"

A document bug is already raised to address changes in multipath conf file.
Bug https://bugzilla.redhat.com/show_bug.cgi?id=1595684

Steps to be performed when we change the conf file manually:
---------------------------

1. Add prio "alua" in /etc/multipath.conf
2. restart multipathd service

 
Sample multipath.conf file to include prio "alua" instead of prio "const"
 # cat /etc/multipath.conf
[...]
# LIO iSCSI
devices {
        device {
                vendor "LIO-ORG"
                user_friendly_names "yes" # names like mpatha
                path_grouping_policy "failover" # one path per group
                path_selector "round-robin 0"
                failback immediate
                path_checker "tur"
                prio "alua"
                no_path_retry 120
                rr_weight "uniform"
        }
}


Versions 
===========
tcmu-runner = tcmu-runner-1.2.0-20.el7rhgs 
gluster-block version- gluster-block-0.2.1-19.el7rhgs and beyond
OCP 3.10 latest

Actual results:
+++++++++++++++++
in current advanced deployment playbook, multipath.conf file of OCP/CNS hosts have [prio "const"] pre-configured. To take advantage of load balancing at gluster-block, we have to manually edit the /etc/multipath.conf file on each of the initiator nodes.


Expected results:
++++++++++++++++

Starting from OCP 3.10 deployment, tcmu-runner = tcmu-runner-1.2.0-20.el7rhgs and  gluster-block version- gluster-block-0.2.1-19.el7rhgs,  Ansible playbook should ,by default, configure prio "alua" and no manual change must be required.

Thanks in advance.

Comment 15 errata-xmlrpc 2018-10-24 04:50:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2985