#117 `centos-stream:8` image does not work
Closed: Fixed by frantisekz. Opened by martinpitt.

testcloud instance create --help claims support for CentOS:

                            Examples of some known distro:release pairs:
                            - fedora:rawhide (latest compose), fedora:33, fedora:latest (latest Fedora GA image)
                            - fedora:qa-matrix (image from https://fedoraproject.org/wiki/Test_Results:Current_Cloud_Test )
                            - centos:XX (eg. centos:8, centos:latest)
                            - centos-stream:XX (eg. centos-stream:8, centos-stream:latest)
                            - ubuntu:release_name (eg. ubuntu:focal, ubuntu:latest)
                            - debian:release_name/release_number (eg. debian:11, debian:sid, debian:latest)

But running

tmt run --until report provision --how virtual --image centos-stream:8

fails with

Could not map 'centos-stream:8' to compose.

Same with --image centos:8. Unfortunately I can't test this directly with testcloud due to issue #116, but I suppose it would fail in the same way, as tmt virtual just uses testcloud?


From a brief testing, it seems the issue is on the tmt side, I can take a look at it.

Huh, this is a bit confusing, but it seems the syntax for tmt differs from testcloud:

distro:version is for testcloud
distro-version is for tmt

so, this should work:

tmt run --until report provision --how virtual --image centos-stream-8

I think a better wording might help here in tmt's help, wdyt @psss ? I can make PR for that, don't know if it is somewhere with some examples.

Indeed, that works fine with tmt ... centos-stream-8. Thanks! I can't validate this with testcloud itself, but I guess this can be closed then?

I think a better wording might help here in tmt's help, wdyt @psss ?

What about supporting both fedora-33 and fedora:33 formats? Could it break anything? If not, I guess that could be best from the user point of view. @lzachar, @fnecas, thoughts?

Testcloud now supports (from 0.6.3) both distro:version and distro-version.

I'll open tmt PR for this.

Solved by https://github.com/teemtee/tmt/pull/1914 and https://pagure.io/testcloud/pull-request/144 .

Metadata Update from @frantisekz:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata