Bug 1458787
| Summary: | libstoragemgmt: Got incorrect VPD page code '80', should be 0x83 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Bruno Goncalves <bgoncalv> |
| Component: | libstoragemgmt | Assignee: | Gris Ge <fge> |
| Status: | CLOSED ERRATA | QA Contact: | Jakub Krysl <jkrysl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | fge, jkrysl |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libstoragemgmt-1.5.0-2.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-10 15:36:35 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: | |||
|
Description
Bruno Goncalves
2017-06-05 13:20:56 UTC
Patch has been sent to upstream for review: https://github.com/libstorage/libstoragemgmt/pull/290 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
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?
The warnning is in stderr, you may through it to null: lsmcli 2>/dev/null 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 |