Bug 1846559
| Summary: | lsscsi bug in my_strcopy() in collect_disk_wwn_nodes() results in no wwn being collected | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Dwight (Bud) Brown <bubrown> | ||||||
| Component: | lsscsi | Assignee: | Tomáš Bžatek <tbzatek> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Filip Suba <fsuba> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 8.3 | CC: | cwei, jmagrini, nyewale | ||||||
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
||||||
| Target Release: | 8.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | lsscsi-0.32-1.el8 | Doc Type: | If docs needed, set a value | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2021-05-18 14:56:54 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: | |||||||||
| Attachments: |
|
||||||||
|
Description
Dwight (Bud) Brown
2020-06-11 22:30:52 UTC
Created attachment 1700319 [details] collect_disk_wwn_nodes: Fix WWN string copy (In reply to Dwight (Bud) Brown from comment #0) > Specific bug is this line: > > my_strcopy(cur_ent->wwn, "0x", 2); > > should be: > > my_strcopy(cur_ent->wwn, "0x", 3); Thanks for spotting this! Created attachment 1700320 [details] one_ndev_entry: Print WWN along in combination with other print modes > Also something weird with nvme and --wwn, when specified and nvme is > present, the vendor name is replaced with eui. string > > $ lsscsi > [0:0:0:0] disk Samsung Portable SSD T5 0 /dev/sda > [N:0:2:1] disk SAMSUNG MZVKW512HMJP-000L7__1 /dev/nvme0n1 > > $ lsscsi --wwn > [0:0:0:0] disk Samsung Portable SSD T5 0 > /dev/sda > [N:0:2:1] disk eui.002538c57100a087 /dev/nvme0n1 Yeah, for some reason the WWN switch is exclusive to other print modes for NVMe devices, the attached patch tentatively decouples that, though there might be some alignment issues. Anyway, I've sent these patches to the lsscsi author for review. Verified with lsscsi-0.32-2.el8. # lsscsi --wwn [2:0:1:0] disk LIO-ORG test 4.0 0x3600140525c59211c1534e85aa2117f7 /dev/sda 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 (lsscsi bug fix and enhancement 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-2021:1634 |