New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 637993 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

storage_qual_retention: Data is overwritten instead of just being checked.

Project Member Reported by gwendal@chromium.org, Aug 15 2016

Issue description

Keren noticed that during storage_qual_retention test, the disk is written before being check, nullifying the purpose of the test:

"""
I have been recording traces of the AVL tests. Looking through the trace of the “Retention” test, I was a little surprised by the results I was getting.
 
From what I understand, the “Retention” test starts out by writing data to storage. It then suspends the platform for 12 hours, wakes it up and verifies the validity of the data, repeatedly for 7 days. In the code I can see that the flag for the loop function is “—verifyonly”. I understood this to mean that the test does not rewrite the data during resume cycles, only verifies the data initially written at the beginning of this test.
 
From the trace I have recorded I can see that at the beginning of each resume cycle the test first writes data, then verifies it. I am attaching the image of the trace. (To get more resume cycles in one trace I changed the suspend duration from 12 hours to 3 minutes)"""
[Picture enclosed]


Looking through the code
The FIO config on the client is ran with VERIFY_ONLY=0. so verify_only=0 in the config file. Looking into debug files from hardware_StorageStress.suspend/hardware_StorageFio.verify*, --verifyonly is not passed as argument to fio.

it is in the requirement:
From a test result directory:
./126-moblab/192.168.231.101/hardware_StorageStress.suspend/hardware_StorageFio
.verify_data_8/

In keyval:
param-requirements=[('8k_async_randwrite', ['--verifyonly'])]

In debug/hardware_StorageFio.verify_data_8.DEBUG
Running 'FILENAME=/dev/mmcblk0p3 FILESIZE=1073741824 VERIFY_ONLY=0 ionice -c 3 fio --output-format=json "/usr/local/autotest/tests/hardware_StorageFio/8k_async_randwrite"'

The error is requirements.options are not FIO options, but option for hardware_StorageFio.py.
Instead of --verifyonly, we should have set 'v'. aka VERIFY_OPTION.

Check in other code if requirements.options are misused.


 
image001 (2).jpg
26.2 KB View Download
Components: Platform>DevTools>Tracing

Comment 2 by l...@chromium.org, Aug 19 2016

Owner: caseq@chromium.org

Comment 3 by caseq@chromium.org, Aug 19 2016

Components: -Platform>DevTools>Tracing
Owner: ----

Comment 4 by ajha@chromium.org, Aug 26 2016

Components: Test

Sign in to add a comment