Bug 1926827
| Summary: | [RHEL8.4] get wrong value of smartctl device APM propertie | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | guazhang <guazhang> |
| Component: | udisks2 | Assignee: | Tomáš Bžatek <tbzatek> |
| Status: | CLOSED ERRATA | QA Contact: | guazhang <guazhang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.4 | Keywords: | Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | udisks2-2.9.0-7.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 17:54: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: | |||
This test takes physical ATA disks available in the system and tests various features against them. Presumably this can fail depending on actual drive implementation. Can you post `hdparm -I /dev/sda` please? As this has been source of problems in the past, we may want to mark the tests as 'unstable' to allow ignoring failures. In any case this is unsuitable for unit or automated testing where predictable results are required, though the tests are still convenient for developers usage.
[root@atworks-radbeagle-1 udisks-2.9.0]# smartctl -gapm /dev/sda
smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-293.el8.x86_64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
APM level is: 128 (minimum power consumption without standby)
[root@atworks-radbeagle-1 udisks-2.9.0]# hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: WDC WD10JFCX-68N6GN0
Serial Number: WD-WXE1EA4EDDNW
Firmware Revision: 82.00A82
Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
Supported: 9 8 7 6 5
Likely used: 9
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 1953525168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 953869 MBytes
device size with M = 1000*1000: 1000204 MBytes (1000 GB)
cache/buffer size = 16384 KBytes
Nominal Media Rotation Rate: 5400
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, with device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: 128
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
* Advanced Power Management feature set
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
SET_MAX security extension
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
Media Card Pass-Through
* General Purpose Logging feature set
* 64-bit World wide name
* URG for READ_STREAM[_DMA]_EXT
* URG for WRITE_STREAM[_DMA]_EXT
* IDLE_IMMEDIATE with UNLOAD
* WRITE_UNCORRECTABLE_EXT command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Gen3 signaling speed (6.0Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
* Idle-Unload when NCQ is active
* NCQ priority information
* READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
* DMA Setup Auto-Activate optimization
Device-initiated interface power management
* Software settings preservation
* SMART Command Transport (SCT) feature set
* SCT Write Same (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
unknown 206[12] (vendor specific)
unknown 206[13] (vendor specific)
unknown 206[14] (vendor specific)
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
supported: enhanced erase
190min for SECURITY ERASE UNIT. 190min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50014ee6b041ca36
NAA : 5
IEEE OUI : 0014ee
Unique ID : 6b041ca36
Checksum: correct
[root@atworks-radbeagle-1 udisks-2.9.0]#
Upstream PR: https://github.com/storaged-project/udisks/pull/884 test pass with fixed package, move to verified. 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 (udisks2 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:4182 |
Description of problem: udisks2 regression test failed and found a error about smart device apm error, please have a look if hit a bug Version-Release number of selected component (if applicable): udisks2-2.9.0-6.el8.x86_64 4.18.0-283.el8.x86_64 How reproducible: 100% Steps to Reproduce: 1. python3 src/tests/dbus-tests/run_tests.py test_drive_ata.UdisksDriveAtaTest.test_properties 2. 3. Actual results: test failed Expected results: test pass Additional info: 128 (minimum power consumption without standby) disk is sda, smart_su is {'sda'} FAIL ====================================================================== FAIL: test_properties (test_drive_ata.UdisksDriveAtaTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/rpmbuild/BUILD/udisks-2.9.0/src/tests/dbus-tests/test_drive_ata.py", line 132, in test_properties self.get_property(drive_obj, ".Drive.Ata", "ApmEnabled").assertEqual(props["apm"] == "Enabled") File "/root/rpmbuild/BUILD/udisks-2.9.0/src/tests/dbus-tests/udiskstestcase.py", line 188, in assertEqual raise AssertionError('%s != %s' % (self._value, value)) AssertionError: 1 != False ---------------------------------------------------------------------- Ran 1 test in 5.266s FAILED (failures=1) All configuration cleared /etc/udisks2/mount_options.conf [root@atworks-radbeagle-1 test_udisks2_package]# smartctl -gapm /dev/sda smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-283.el8.x86_64] (local build) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org APM level is: 128 (minimum power consumption without standby) [root@atworks-radbeagle-1 test_udisks2_package]# [root@atworks-radbeagle-1 test_udisks2_package]# hostname atworks-radbeagle-1.gsslab.pek2.redhat.com [root@atworks-radbeagle-1 test_udisks2_package]# in test_properties function should match startwith 'APM level is' props = {"aam": self.get_smart_setting(disk, "aam", "AAM feature is"), "apm": self.get_smart_setting(disk, "apm", "APM level is"), and from the disk, the APM level is "128" self.get_property(drive_obj, ".Drive.Ata", "ApmEnabled") = False