Bug 1533812

Summary: dmraid does not want to create raid with two disks
Product: [Fedora] Fedora Reporter: Harald Hoyer <harald>
Component: dmraidAssignee: Heinz Mauelshagen <heinzm>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 28CC: agk, bmr, cfeist, heinzm, jbrassow, kzak, lvm-team, mcsontos, prajnoha, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dmraid-1.0.0.rc16-38.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-19 17:45:05 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 Harald Hoyer 2018-01-12 09:55:42 UTC
dmraid-1.0.0.rc16-35.fc28.x86_64

# echo y|dmraid -f isw -C Test0 --type 1 --disk "/dev/sdb /dev/sdc"

ERROR: isw: the RAID set cannot have less than 2 hard drives

Both disks exist and this works in all Fedora <= 27

Causes the dracut testsuite to fail.

https://github.com/dracutdevs/dracut/blob/master/test/TEST-14-IMSM/create-root.sh#L13

Comment 1 Fedora End Of Life 2018-02-20 15:31:28 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 2 Marian Csontos 2018-11-19 17:45:05 UTC
This is fixed upstream and in both Rawhide and F28. A regression was caused by incorrect fix of a problem reported by coverity.

The pointer was compared with '\0' (which happens to be same as NULL as was correct), I misunderstood this and "fixed" the issue the wrong way.

At least we know not many people are using dmraid on Fedora, as it went without notice for some time.