teemtee / tmt

Test Management Tool
MIT License
85 stars 126 forks source link

Improve TMT user experience on SilverBlue system #1020

Open jkonecny12 opened 2 years ago

jkonecny12 commented 2 years ago

When you are on SilverBlue system you are trying to avoid adding packages as layers to the system. So, it's great that you have podman example in the documentation but you can't use this for running the tests if they using container or VM. Could you please improve this experince?

Pain points I saw now:

The best option would be to have a working Toolbx image, however, I guess that is not doable because it's always rootless and you probably need privilege and rootfull container.

thrix commented 2 years ago

Thanks for filing, I have also Silverblue on my refreshed laptop, so I believe I can try to come up here with some solutions.

jkonecny12 commented 2 years ago

If I run the existing container test with: podman run --privileged -it --rm -v .:/my_project:z quay.io/testing-farm/tmt-all bash the output is:

stderr (1/1 lines)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver

Failed to check for container image 'fedora:rawhide'. Reason: Command returned '125'.
jkonecny12 commented 2 years ago

Another great possibility would be to use flatpak-spawn for running working with the podman outside of the container?

Not sure if that is doable, never used that command :stuck_out_tongue_winking_eye: .

frantisekz commented 2 years ago
  • The VM tests won't work out of the box. (not tested but without access to /dev/kvm it won't work)

Addressed in https://copr.fedorainfracloud.org/coprs/frantisekz/testcloud-wip/ ( https://pagure.io/testcloud/pull-request/115# ), updated tmt build will be submitted there later today.

On missing /dev/kvm, testcloud will now fall back to TCG even on x86.

jkonecny12 commented 2 years ago

I wasn't aware of the test cloud, it looks great!

However, it needs to be documented. If I understand it correctly it needs user in a testcloud group which is not that straight forward on SB right now.

Or is the testcloud used even now by the TMT and you are just extending it?

jkonecny12 commented 2 years ago

I think that the best solution to this issue would be:

thrix commented 6 months ago

So a small update here, I use tmt in toolbox, and that works well, except container provisioner.

jkonecny12 commented 6 months ago

Would it be working if we use host-spawn as podman executable?

jkonecny12 commented 6 months ago

For some reason it doesn't seem to work. Not sure why, I can try to investigate later.

thrix commented 1 month ago

Some additional news, I have a patch for also supporting container provisioner :)