Bug 1342397 - Vdsm cannot parse the output of dd from coreutils 8.25.5
Summary: Vdsm cannot parse the output of dd from coreutils 8.25.5
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.18.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.0.2
: 4.18.7
Assignee: Fred Rolland
QA Contact: Elad
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-03 07:51 UTC by Francesco Romani
Modified: 2016-08-12 14:23 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-12 14:23:53 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
rule-engine: devel_ack+
acanan: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 56091 0 master MERGED storage: Support new dd output 2016-06-15 15:43:43 UTC
oVirt gerrit 60857 0 ovirt-4.0 MERGED storage: Support new dd output 2016-07-18 07:45:25 UTC

Description Francesco Romani 2016-06-03 07:51:25 UTC
Description of problem:

In Fedora 24 we can find the new dd from coreutils 8.25.5
which has a new fancier output format:
    
Example #1:
1+0 records in
1+0 records out
4096 bytes (4.1 kB, 4.0 KiB) copied, 0.00887814 s, 461 kB/s
           ^^^^^^^^^^^^^^^^^

Example #2:
0+1 records in
0+1 records out
30 bytes copied, 0.00156704 s, 19.1 kB/s
             ^^^^

Compare with the old dd output found in Fedora 23:

Example #1:
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.00135703 s, 3.0 MB/s
           ^^^^^^^^

Example #2:
0+1 records in
0+1 records out
30 bytes (30 B) copied, 0.0033204 s, 9.0 kB/s
         ^^^^^^

Version-Release number of selected component (if applicable):
Vdsm: all versions
coreutils: >= 8.25.5

How reproducible:
100%

Steps to Reproduce:
1. Install Vdsm in any system which runs coreutils >= 8.25.5, like fedora 24
2. Run Vdsm
3. storage readspeed breaks

Actual results:
Vdsm can't estimate the read speed of the storage using dd

Expected results:
No issue

Additional info:
The format of dd is not meant for program consumption, so has not stable guarantee. Vdsm should just keep up.

Comment 1 Allon Mureinik 2016-06-20 12:11:55 UTC
This change will be included in 4.1's build. If you think this is worthy of backporting, please set back to POST and backport it.

Comment 2 Allon Mureinik 2016-07-17 14:14:38 UTC
Patch was backported to 4.0.z (which is probably the right call), resetting status and flags accordingly.

Comment 3 Elad 2016-07-31 11:43:35 UTC
Since we don't check over Fedora, for verification, a regression test was done.

Storage domain creation and domain monitor works as expected using RHEL7.2 hypervisor.


rhevm-4.0.2-0.1.rc.el7ev.noarch
vdsm-4.18.9-1.el7ev.x86_64


Note You need to log in before you can comment on or make changes to this bug.