Bug 1554688

Summary: targetcli list show ALUA Groups
Product: Red Hat Enterprise Linux 7 Reporter: Prasanna Kumar Kalever <prasanna.kalever>
Component: python-rtslibAssignee: Maurizio Lombardi <mlombard>
Status: CLOSED ERRATA QA Contact: Martin Hoyer <mhoyer>
Severity: high Docs Contact:
Priority: urgent    
Version: 7.5CC: amukherj, cww, mchristi, mhoyer, pkarampu, prasanna.kalever, rcyriac, rhandlin, toneata, vbellur, xiubli
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
This update enables the Asymmetric Logical Unit Access (ALUA) feature for the pscsi and tcmu back ends if the kernel supports it. The "targetcli list" command is now able to list ALUA groups.
Story Points: ---
Clone Of:
: 1566099 (view as bug list) Environment:
Last Closed: 2018-10-30 07:44:07 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:    
Bug Blocks: 1507764, 1554642, 1566099    

Description Prasanna Kumar Kalever 2018-03-13 07:45:26 UTC
Description of problem:

Currently:
---------

[root@localhost rtslib-fb]# targetcli /backstores/user:glfs ls 
o- user:glfs ............................. [Storage Objects: 1]
  o- block1  [test.124.227/block-store/ee47d739-18b5-497a-8d28-be886894c8af (1.0GiB) activated]
    o- alua .................................. [ALUA Groups: 0]
[root@localhost rtslib-fb]#

After: (including patch https://github.com/open-iscsi/rtslib-fb/pull/99)
-----
[root@localhost rtslib-fb]# targetcli /backstores/user:glfs ls 
o- user:glfs ............................. [Storage Objects: 1]
  o- block1  [test.124.227/block-store/ee47d739-18b5-497a-8d28-be886894c8af (1.0GiB) activated]                       
    o- alua .................................. [ALUA Groups: 1]
      o- default_tg_pt_gp ...... [ALUA state: Active/optimized]
[root@localhost rtslib-fb]#


This is needed to change the default alua alua_access_type to '0'


[root@localhost rtslib-fb]# targetcli /backstores/user:glfs/block1/alua/default_tg_pt_gp get alua alua_access_type
alua_access_type=3 
[root@localhost rtslib-fb]# targetcli /backstores/user:glfs/block1/alua/default_tg_pt_gp set alua alua_access_type=0
Parameter alua_access_type is now '0'.

Need backport of:
https://github.com/open-iscsi/rtslib-fb/pull/99/commits/3ff084a7bb44d26b26f6f7e4067b5809741503b1

Comment 3 Maurizio Lombardi 2018-03-27 13:00:13 UTC
Test package:

http://people.redhat.com/~mlombard/.bz1554688/python-rtslib-2.1.fb63-6.el7.noarch.rpm

Requires rhel7.5 kernel >= -753

Comment 7 Martin Hoyer 2018-07-10 07:57:30 UTC
Tested with: 
 - kernel-3.10.0-915.el7
 - targetcli-2.1.fb46-6.el7
 - python-configshell-1.1.fb23-4.el7
 - python-rtslib-2.1.fb63-12.el7
The issue is no longer reproducible; No regression found.

Comment 9 errata-xmlrpc 2018-10-30 07:44:07 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/RHEA-2018:3019