RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1458787 - libstoragemgmt: Got incorrect VPD page code '80', should be 0x83
Summary: libstoragemgmt: Got incorrect VPD page code '80', should be 0x83
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libstoragemgmt
Version: 7.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Jakub Krysl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-05 13:20 UTC by Bruno Goncalves
Modified: 2021-09-03 14:13 UTC (History)
2 users (show)

Fixed In Version: libstoragemgmt-1.5.0-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 15:36:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0864 0 None None None 2018-04-10 15:36:50 UTC

Description Bruno Goncalves 2017-06-05 13:20:56 UTC
Description of problem:
Trying to list the local disk on a server with Dell Perc devices return error.

lsmcli  local-disk-list
LIB_BUG(1): BUG: Got incorrect VPD page code '80', should be 0x83 

Version-Release number of selected component (if applicable):
libstoragemgmt-1.4.0-3.el7

How reproducible:
100%

Steps to Reproduce:
1. lsmcli  local-disk-list
LIB_BUG(1): BUG: Got incorrect VPD page code '80', should be 0x83 


Additional info:

# lsscsi
[0:0:8:0]    enclosu DP       BACKPLANE        1.00  -        
[0:2:0:0]    disk    DELL     PERC 5/i         1.00  /dev/sda 
[0:2:1:0]    disk    DELL     PERC 5/i         1.00  /dev/sdb 
[1:0:0:0]    cd/dvd  HL-DT-ST DVD-ROM GDR8084N 1.01  /dev/sr0 
[3:0:0:0]    cd/dvd  Dell     Virtual  CDROM   123   /dev/sr1 
[4:0:0:0]    disk    Dell     Virtual  Floppy  123   /dev/sdc

Comment 2 Gris Ge 2017-08-08 02:24:43 UTC
Patch has been sent to upstream for review:

https://github.com/libstorage/libstoragemgmt/pull/290

Comment 3 Gris Ge 2017-08-08 02:25:20 UTC
Root cause:

    When query VPD83 of Dell virtual floppy, it returns a STANDARD
    INQUIRY instead of VPD page, and this is not clarified by SCSI SPC-4
    or later version.

    [fge@dell-pe1950-06 ~]$ sudo sg_vpd --page=0x83 /dev/sdc -vvv -H
    open /dev/sdc with flags=0x800
    Device Identification VPD page:
        inquiry cdb: 12 01 83 00 fc 00
          duration=1 ms
        inquiry: pass-through requested 252 bytes but got 36 bytes
    invalid VPD response; probably a STANDARD INQUIRY response
    First 32 bytes of bad response
     00     00 80 00 01 1f 00 00 00  44 65 6c 6c 20 20 20 20    ........Dell
     10     56 69 72 74 75 61 6c 20  20 46 6c 6f 70 70 79 20    Virtual  Floppy
    fetching VPD page failed

Comment 5 Jakub Krysl 2017-10-13 06:40:25 UTC
Tested with libstoragemgmt-1.5.0-2.el7:

before update
# lsmcli local-disk-list                                                                                                                                                                    
LIB_BUG(1): BUG: Got incorrect VPD page code '80', should be 0x83  

after update
# lsmcli local-disk-list
WARN: rpm_get('/dev/sdc'): 1 Got corrupted SCSI SBC Device Characteristics VPD page, expected page code is 177 but got 128Path     | SCSI VPD 0x83                    | Link Type  | Serial Number | Health Status
----------------------------------------------------------------------------------------
/dev/sda | 60019b90b444990013642aae6e2c9d42 | No Support |               | Unknown      
/dev/sdb | 60019b90b444990013028e175ac150fe | No Support |               | Unknown      
/dev/sdc |                                  | No Support |               | Unknown   


Gris,
Looking at lsmcli code it seems the warning is expected, but can you add a newline there so it does not throw everything off?

Comment 6 Gris Ge 2017-10-13 09:29:22 UTC
The warnning is in stderr, you may through it to null:

lsmcli 2>/dev/null

Comment 9 errata-xmlrpc 2018-04-10 15:36:35 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:0864


Note You need to log in before you can comment on or make changes to this bug.