Bug 2218008

Summary: After upgrade from 5.1z2 to latest iSCSI Service is unable to work until iSCSI GW reboot.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Raimund Sacherer <rsachere>
Component: iSCSIAssignee: Xiubo Li <xiubli>
Status: CLOSED ERRATA QA Contact: Preethi <pnataraj>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.3CC: akraj, ceph-eng-bugs, cephqe-warriors, idryomov, kdreyer, tserlin, xiubli
Target Milestone: ---   
Target Release: 5.3z4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-iscsi-3.6-2.el8cp Doc Type: Bug Fix
Doc Text:
Cause: rtslib now requires /etc/target or /var/target to be setup (it depends on the version). The issue is that rtslib does not make those dirs and instead relies on targetcli or ceph-iscsi to make them. For container cases we do not install targetcli, but the ceph-iscsi will skip creating these target dirs. Consequence: So ceph-iscsi's daemons will crash or fail to setup disks, when we make rtslib calls that try to access the etc/var target dirs. Fix: Always create the target dirs when installing the ceph-iscsi package. Result: No crash happen.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-19 16:19:11 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:

Comment 47 Preethi 2023-07-10 13:28:34 UTC
(In reply to Preethi from comment #46)
> Was able to repro the issue and verify the bug with the fix provided,
> Working as expected with the fix build.
> 
> NOTE: 1)Used build registry.redhat.io/rhceph/rhceph-5-rhel8:5-416
> for issue repro and
> registry-proxy.engineering.redhat.com/rh-osbs/rhceph:5-446 for verification 
> Ceph version - 16.2.10-185.el8cp
> 2) redeploy works fine with the above image withoout any issues 
> 3) We see the /etc/target and /var/target directories inside the container
> with the fix

Comment 51 errata-xmlrpc 2023-07-19 16:19:11 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 (Red Hat Ceph Storage 5.3 Bug Fix update), 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-2023:4213