[Libguestfs] libguestfs "test-mdadm.sh" and php tests failing?

Richard W.M. Jones rjones at redhat.com
Tue Feb 15 10:49:32 UTC 2022


On Tue, Feb 15, 2022 at 10:33:18AM +0100, Laszlo Ersek wrote:
> Hi,
> 
> on up-to-date Fedora 35, "test-mdadm.sh" in the libguestfs test suite is
> failing like this:
> 
> *stdin*:32: libguestfs: error: md_create: mdadm: r1t2: mdadm: specifying
> chunk size is forbidden for this level
> 
> I've searched the web for the error message, but only found
> <https://bugzilla.redhat.com/show_bug.cgi?id=1984335>.
> 
> I don't recall this failure from earlier, so it must be something recent.
> 
> I think the error message may refer to the following command:
> 
> md-create r1t2 "/dev/sdc1 /dev/sdd1" chunk:65536
> 
> This command goes back to historical commit c11a92751e00 ("New API:
> mdadm-create for creating MD devices.", 2011-11-11).

It's unclear what the resolution of that RHEL bug was.  But it seems
as if setting chunk size was previously ignored for RAID 1, but now
mdadm is (correctly) flagging it as an error (see
https://bugzilla.redhat.com/show_bug.cgi?id=1987170).  RAID 1 doesn't
use chunks, obviously in hindsight.

In that case we should just remove the chunk:65536 parameter from the
test, and maybe note this in the API docs for md-create.

Oddly I've not seen this error myself.  I might have an old mdadm
package installed.

> When I prepend SKIP_TEST_MDADM_SH=1 to the "make check" command line,
> the next test that (unexpectedly) fails is "run-php-tests.sh". Please
> see the log attached. And, I cannot set a SKIP variable for this test, I
> think.

PHP bindings are fundamentally broken because of a change in PHP and
require invasive and complicated changes to fix:

https://bugzilla.redhat.com/show_bug.cgi?id=1935753

I'm currently using --disable-php.

> I'll go ahead and push the common submodule update anyways
> (5b5fac3e0b10..41126802097f).
> 
> Thanks,
> Laszlo

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list