Bug 1935062

Summary: Drives properties Model, Id, Vendor appear have some encoding issue
Product: [Fedora] Fedora Reporter: Katerina Koukiou <kkoukiou>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: fedoraproject, filbranden, flepied, gnome-sig, kasong, lnykryn, msekleta, ssahani, s, systemd-maint, tbzatek, vtrefny, yuwatana, zbyszek, z
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-248~rc3-1.fc35 systemd-248~rc4-3.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-25 00:18:44 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 Katerina Koukiou 2021-03-04 10:44:58 UTC
Description of problem:
Cockpit [1] storage tests are failing on fedora-34 because Vendor/Model/Id properties have changed, namely they now contain a x20x20x20x20 suffix. 

Version-Release number of selected component (if applicable):
udisks2-2.9.2-1.fc34.x86_64

(It works as expected with udisks2-2.9.1-2.fc33.x86_64)

How reproducible:
Always

Steps to Reproduce:
1. Prepare a QEMU VM and attach some qcow2 images 
2. Notice in udisksctl output for the drives corresponding to the attached images the above mentioned problematic properties 

Our test VM's disk setup look like this: 

# lsblk -S
NAME HCTL       TYPE VENDOR   MODEL          REV SERIAL  TRAN
...
sdc  2:0:2:2    disk QEMU     QEMU_HARDDISK 2.5+ DISK3   
...

When looking at the udisks data the Id, Vendor, Model contain x20x20x20x20 suffix. 

(output copied from udisksctl dump)

  org.freedesktop.UDisks2.Drive:
    CanPowerOff:                false
    Configuration:              {}
    ConnectionBus:              
    Ejectable:                  false
    Id:                         QEMUx20x20x20x20-QEMUx20HARDDISKx20x20x20-DISK3
    Media:                      
    MediaAvailable:             true
    MediaChangeDetected:        true
    MediaCompatibility:         
    MediaRemovable:             false
    Model:                      QEMUx20HARDDISKx20x20x20
    Optical:                    false
    OpticalBlank:               false
    OpticalNumAudioTracks:      0
    OpticalNumDataTracks:       0
    OpticalNumSessions:         0
    OpticalNumTracks:           0
    Removable:                  false
    Revision:                   2.5+
    RotationRate:               -1
    Seat:                       seat0
    Serial:                     DISK3
    SiblingId:                  
    Size:                       52428800
    SortKey:                    01hotplug/1614850723221287
    TimeDetected:               1614850723221287
    TimeMediaDetected:          1614850723221287
    Vendor:                     QEMUx20x20x20x20

Comment 1 Katerina Koukiou 2021-03-04 11:00:22 UTC
It seems more of a udev issue:

# udevadm info /dev/sdc
...
E: ID_VENDOR=QEMU
E: ID_VENDOR_ENC=QEMUx20x20x20x20


Previously (f33) the output was like this:

# udevadm info /dev/sda
...
E: ID_VENDOR=QEMU
E: ID_VENDOR_ENC=QEMU\x20\x20\x20\x20

Comment 2 Katerina Koukiou 2021-03-04 11:02:16 UTC
Updating with the udev version that we started seeing this issue:

systemd-udev-248~rc2-1.fc34.x86_64

Comment 5 Yu Watanabe 2021-03-05 00:46:41 UTC
Fix is waiting in https://github.com/systemd/systemd/pull/18885.

Comment 6 Fedora Update System 2021-03-23 14:07:07 UTC
FEDORA-2021-ea92e5703f has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-ea92e5703f

Comment 7 Fedora Update System 2021-03-24 02:44:13 UTC
FEDORA-2021-ea92e5703f has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-ea92e5703f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ea92e5703f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-03-25 00:18:44 UTC
FEDORA-2021-ea92e5703f has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.