Bug 1393963

Summary: rescan-scsi-bus.sh not listing newly added or changed device(s) in its summary
Product: Red Hat Enterprise Linux 6 Reporter: Tiago M. De Rizzo <tmilsond>
Component: sg3_utilsAssignee: Gris Ge <fge>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: low Docs Contact:
Priority: medium    
Version: 6.6CC: cww
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-13 17:51:49 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:

Description Tiago M. De Rizzo 2016-11-10 17:49:24 UTC
Description of problem:

When using "rescan-scsi-bus.sh -a" command to attach LUN assigned from the storage, the LUNs are attached to the system, however it always shows "0 new or changed device(s) found." as output.

Version-Release number of selected component (if applicable):
- System: Red Hat Enterprise Linux Server release 6.6 (Santiago)
- Kernel: 2.6.32-504.el6.x86_64
- Packages:
   - sg3_utils-1.28-12.el6.x86_64
   - sg3_utils-libs-1.28-12.el6.x86_64
- Script: rescan-scsi-bus.sh


Steps to Reproduce:
1. The storage administrator did the zoning and masking at a switch level;
2. Made the LUN then assign the new LUN to the server;
3. Run rescan-scsi-bus.sh -a 
4. LUNs are attached to the system, but it shows "0 new or changed device(s) found."

Actual results:
# rescan-scsi-bus.sh -a
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 0 2 0 0 ...
OLD: Host: scsi0 Channel: 02 Id: 00 Lun: 00
      Vendor: DELL     Model: PERC H730 Mini   Rev: 4.26
      Type:   Direct-Access                    ANSI SCSI revision: 05
Scanning host 1 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 2 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 3 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 4 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 5 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 6 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 7 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 8 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 9 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 10 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 11 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 11 0 0 0 ...
OLD: Host: scsi11 Channel: 00 Id: 00 Lun: 00
      Vendor: iDRAC    Model: Virtual CD       Rev: 0329
      Type:   CD-ROM                           ANSI SCSI revision: -1
 Scanning for device 11 0 0 1 ...
OLD: Host: scsi11 Channel: 00 Id: 00 Lun: 01
      Vendor: iDRAC    Model: Virtual Floppy   Rev: 0329
      Type:   Direct-Access                    ANSI SCSI revision: -1
Scanning host 12 for  all SCSI target IDs, all LUNs
 Scanning for device 12 0 0 0 ...
OLD: Host: scsi12 Channel: 00 Id: 00 Lun: 00
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
 Scanning for device 12 0 0 1 ...
OLD: Host: scsi12 Channel: 00 Id: 00 Lun: 01
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
 Scanning for device 12 0 0 2 ...
OLD: Host: scsi12 Channel: 00 Id: 00 Lun: 02
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
 Scanning for device 12 0 0 3 ...
OLD: Host: scsi12 Channel: 00 Id: 00 Lun: 03
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
Scanning host 13 for  all SCSI target IDs, all LUNs
 Scanning for device 13 0 0 0 ...
OLD: Host: scsi13 Channel: 00 Id: 00 Lun: 00
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
 Scanning for device 13 0 0 1 ...
OLD: Host: scsi13 Channel: 00 Id: 00 Lun: 01
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
 Scanning for device 13 0 0 2 ...
OLD: Host: scsi13 Channel: 00 Id: 00 Lun: 02
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
 Scanning for device 13 0 0 3 ...
OLD: Host: scsi13 Channel: 00 Id: 00 Lun: 03
      Vendor: HITACHI  Model: OPEN-V           Rev: 7303
      Type:   Direct-Access                    ANSI SCSI revision: 03
0 new or changed device(s) found.
0 remapped or resized device(s) found.
0 device(s) removed.


Expected results:
[...]
2 new or changed device(s) found.
0 remapped or resized device(s) found.
0 device(s) removed.

Additional info:

Comment 5 Chris Williams 2017-06-13 17:51:49 UTC
Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017.  During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.
 
The official life cycle policy can be reviewed here:
 
http://redhat.com/rhel/lifecycle
 
This issue does not appear to meet the inclusion criteria for the Production Phase 3 and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification.  Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:
 
https://access.redhat.com