teemtee / tmt

Test Management Tool
MIT License
86 stars 129 forks source link

bootc provision needs `--rootfs` when using fedora-bootc image #3387

Open HuijingHei opened 4 days ago

HuijingHei commented 4 days ago

Provision failed when using quay.io/fedora/fedora-bootc:41 image, seems it needs --rootfs

Cause number 1:

    provision step failed

    The exception was caused by 1 earlier exceptions

    Cause number 1:

        Command 'podman run --rm --privileged -v /var/lib/containers/storage:/var/lib/containers/storage --security-opt label=type:unconfined_t -v /var/tmp/tmt/run-002/plans/basic/containerfile/butane/provision/default-0:/output quay.io/centos-bootc/bootc-image-builder:latest build --type qcow2 --local localhost/tmtmodified-1732783970' returned 1.

        # stdout (1/1 lines)
        # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Generating manifest manifest-qcow2.json
        # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        # stderr (8/8 lines)
        # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Trying to pull quay.io/centos-bootc/bootc-image-builder:latest...
        2024/11/28 08:56:54 error: cannot build manifest: no default root filesystem type specified in container, please use "--rootfs" to set manually
        # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run manually and add for example --rootfs xfs, it works.

$ sudo podman run --rm --privileged -v /var/lib/containers/storage:/var/lib/containers/storage -v /home/fedora/fedora-bootc:/output --security-opt label=type:unconfined_t quay.io/centos-bootc/bootc-image-builder:latest build --type qcow2 --rootfs xfs --local quay.io/fedora/fedora-bootc:41
travier commented 8 hours ago

Can you copy/paste here the tmt plan / config that you used? Thanks

HuijingHei commented 7 hours ago

Can you copy/paste here the tmt plan / config that you used? Thanks

Simple demo test: git clone -b bootc-tests https://gitlab.cee.redhat.com/hhei/rhcos-tmt-tests.git