Bug 1482102

Summary: iscsiadm is returning different error code when trying to remove a session that does not exist.
Product: Red Hat Enterprise Linux 7 Reporter: Martin Hoyer <mhoyer>
Component: iscsi-initiator-utilsAssignee: Chris Leech <cleech>
Status: CLOSED NOTABUG QA Contact: Martin Hoyer <mhoyer>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4-AltCC: bgoncalv, cleech, lmiksik, raunak.kumar
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 986235 Environment:
Last Closed: 2018-11-09 13:11: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: 986235    
Bug Blocks:    

Comment 1 Martin Hoyer 2017-08-16 13:08:23 UTC
Reproducible with RHEL-ALT-7.4 beta

Comment 3 Martin Hoyer 2018-11-09 13:11:56 UTC
This is a bug in our test. We were using invalid ISID 0.
Works well with >= 1

# iscsiadm -m session -o new -r 1
iscsiadm: could not read session targetname: 5
iscsiadm: Could not get session info for sid 1
# echo $?
22