tests: Update CentOS 8 container to CentOS Stream 8
PATCH 2/2 tests: Update CentOS 8 container to CentOS Stream 8
Support for CentOS 8 has stopped at the end of 2021, so let's switch to the Stream variant instead.
--- tests/docker/dockerfiles/centos8.docker | 4 ++-- tests/lcitool/refresh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
tests/docker/dockerfiles/centos8.docker +2 -2
@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile centos-8 qemu +# $ lcitool dockerfile centos-stream-8 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/centos:8 +FROM quay.io/centos/centos:stream8 RUN dnf update -y && \ dnf install 'dnf-command(config-manager)' -y && \
tests/lcitool/refresh +1 -1
@@ -77,7 +77,7 @@ ubuntu2004_tsanhack = [ ] try: - generate_dockerfile("centos8", "centos-8") + generate_dockerfile("centos8", "centos-stream-8") generate_dockerfile("fedora", "fedora-35") generate_dockerfile("ubuntu1804", "ubuntu-1804", trailer="".join(ubuntu1804_skipssh))
Signature · 1 line
2.27.0
Please ignore the "2/2" in the subject, this is meant to be a standalone patch.
Thomas
Quoted 39 lines · Thomas Huth
Support for CentOS 8 has stopped at the end of 2021, so let's switch to the Stream variant instead.
Signed-off-by Thomas Huth <[email protected]>--- tests/docker/dockerfiles/centos8.docker | 4 ++-- tests/lcitool/refresh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)tests/docker/dockerfiles/centos8.docker +2
-2@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile centos-8 qemu +# $ lcitool dockerfile centos-stream-8 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/centos:8 +FROM quay.io/centos/centos:stream8 RUN dnf update -y && \ dnf install 'dnf-command(config-manager)' -y && \tests/lcitool/refresh +1
-1@@ -77,7 +77,7 @@ ubuntu2004_tsanhack = [ ] try: - generate_dockerfile("centos8", "centos-8") + generate_dockerfile("centos8", "centos-stream-8") generate_dockerfile("fedora", "fedora-35") generate_dockerfile("ubuntu1804", "ubuntu-1804", trailer="".join(ubuntu1804_skipssh))
Philippe Mathieu-Daudé via
Reviewed-by Philippe Mathieu-Daudé Tested-by Philippe Mathieu-Daudé on v1 2/2Quoted 2 lines · Thomas Huth
Support for CentOS 8 has stopped at the end of 2021, so let's switch to the Stream variant instead.
"Run 'make lcitool-refresh' to update the generated centos8.docker."
Quoted 5 lines
Signed-off-by Thomas Huth <[email protected]>--- tests/docker/dockerfiles/centos8.docker | 4 ++-- tests/lcitool/refresh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Quoted 4 lines · Thomas Huth
Support for CentOS 8 has stopped at the end of 2021, so let's switch to the Stream variant instead.
Signed-off-by Thomas Huth <[email protected]>
Queued to testing/next, thanks.
Signature · 1 line
Alex Bennée
Quoted 11 lines · Thomas Huth
+++ b/tests/docker/dockerfiles/centos8.docker
tests/docker/dockerfiles/centos8.docker +2
-2@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile centos-8 qemu +# $ lcitool dockerfile centos-stream-8 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/centos:8 +FROM quay.io/centos/centos:stream8
[...]
tests/lcitool/refresh ubuntu2004_tsanhack = [ · line 80
Quoted 7 lines
+++ b/tests/lcitool/refresh
tests/lcitool/refresh +1
-1@@ -77,7 +77,7 @@ ubuntu2004_tsanhack = [ ] try: - generate_dockerfile("centos8", "centos-8") + generate_dockerfile("centos8", "centos-stream-8")
I'm not convinced this is a good idea.
CentOS 8 and CentOS Stream 8 are two pretty distinct operating systems in terms of update cadence and stability expectations, so I think that using the label "centos8" for containers and CI jobs that are actually consuming CentOS Stream 8 is going to be a source of confusion.
I recommend proceeding with a thorough rename, after which the string "centos8" no longer shows up anywhere, instead.
Signature · 1 line
Andrea Bolognani / Red Hat / Virtualization
Quoted 23 lines · Andrea Bolognani
Quoted 11 lines · Thomas Huth
+++ b/tests/docker/dockerfiles/centos8.docker
tests/docker/dockerfiles/centos8.docker +2
-2@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile centos-8 qemu +# $ lcitool dockerfile centos-stream-8 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/centos:8 +FROM quay.io/centos/centos:stream8[...]
tests/lcitool/refresh ubuntu2004_tsanhack = [ · line 80
Quoted 7 lines
+++ b/tests/lcitool/refresh
tests/lcitool/refresh +1
-1@@ -77,7 +77,7 @@ ubuntu2004_tsanhack = [ ] try: - generate_dockerfile("centos8", "centos-8") + generate_dockerfile("centos8", "centos-stream-8")I'm not convinced this is a good idea.
Quoted 8 lines
CentOS 8 and CentOS Stream 8 are two pretty distinct operating systems in terms of update cadence and stability expectations, so I think that using the label "centos8" for containers and CI jobs that are actually consuming CentOS Stream 8 is going to be a source of confusion.
I recommend proceeding with a thorough rename, after which the string "centos8" no longer shows up anywhere, instead.
Thomas do you agree? Should I drop the patch in favour or a new version with a more extensive rename?
Signature · 1 line
Alex Bennée
Quoted 32 lines · Alex Bennée
Quoted 29 lines · Andrea Bolognani
Quoted 11 lines · Thomas Huth
+++ b/tests/docker/dockerfiles/centos8.docker
tests/docker/dockerfiles/centos8.docker +2
-2@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile centos-8 qemu +# $ lcitool dockerfile centos-stream-8 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/centos:8 +FROM quay.io/centos/centos:stream8[...]
tests/lcitool/refresh ubuntu2004_tsanhack = [ · line 80
Quoted 7 lines
+++ b/tests/lcitool/refresh
tests/lcitool/refresh +1
-1@@ -77,7 +77,7 @@ ubuntu2004_tsanhack = [ ] try: - generate_dockerfile("centos8", "centos-8") + generate_dockerfile("centos8", "centos-stream-8")I'm not convinced this is a good idea.
CentOS 8 and CentOS Stream 8 are two pretty distinct operating systems in terms of update cadence and stability expectations, so I think that using the label "centos8" for containers and CI jobs that are actually consuming CentOS Stream 8 is going to be a source of confusion.
Quoted 5 lines
Quoted 2 lines
I recommend proceeding with a thorough rename, after which the string "centos8" no longer shows up anywhere, instead.
Thomas do you agree? Should I drop the patch in favour or a new version with a more extensive rename?
I agree with Andrea :)
Andrea, do you think it is acceptable to merge this and fix on top, or we should do it properly from start?
Quoted 2 lines · Philippe Mathieu-Daudé
Andrea, do you think it is acceptable to merge this and fix on top, or we should do it properly from start?
My preference is always to avoid follow-up tweaks if possible :) but ultimately the decision is up to the QEMU developers and maintainers.
Signature · 1 line
Andrea Bolognani / Red Hat / Virtualization
Quoted 6 lines · Andrea Bolognani
Quoted 2 lines · Philippe Mathieu-Daudé
Andrea, do you think it is acceptable to merge this and fix on top, or we should do it properly from start?
My preference is always to avoid follow-up tweaks if possible :) but ultimately the decision is up to the QEMU developers and maintainers.
I really wouldn't mind if we simply re-use the old name, but if the consensus here is that we should rename it, I think I'm with Andrea, then let's rather rename it properly right from the start.
Thomas
Quoted 23 lines · Andrea Bolognani
Quoted 11 lines · Thomas Huth
+++ b/tests/docker/dockerfiles/centos8.docker
tests/docker/dockerfiles/centos8.docker +2
-2@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile centos-8 qemu +# $ lcitool dockerfile centos-stream-8 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/centos:8 +FROM quay.io/centos/centos:stream8[...]
tests/lcitool/refresh ubuntu2004_tsanhack = [ · line 80
Quoted 7 lines
+++ b/tests/lcitool/refresh
tests/lcitool/refresh +1
-1@@ -77,7 +77,7 @@ ubuntu2004_tsanhack = [ ] try: - generate_dockerfile("centos8", "centos-8") + generate_dockerfile("centos8", "centos-stream-8")I'm not convinced this is a good idea.
Quoted 5 lines
CentOS 8 and CentOS Stream 8 are two pretty distinct operating systems in terms of update cadence and stability expectations, so I think that using the label "centos8" for containers and CI jobs that are actually consuming CentOS Stream 8 is going to be a source of confusion.
Given the EOL of what I call the "traditional" CentOS model at the end of 2021, both "CentOS" and "CentOS Stream" terms effectively mean the same thing now.
If we were trying to support CI for both traditional CentOS and CentOS Stream at the same time, then using the distinct naming is sensible. libvirt-ci.git is in this situation
Since QEMU should only care about CentOS Stream from this point forwards, then I don't think we neccesarily[1] need to make the naming more verbose by adding the word 'stream' everywhere.
The caveat is that aside from this dockerfile, we also have a VM config in test/vm/ that historically used traditional CentOS. That may also need updating to point to Stream unless it has seemlessly transitioned to using Stream content without us needing to change anything. I've not looked closely at that yet.
Regards,
Daniel
[1] what would make me change my mind is if we renamed all the QEMU dockerfiles so use the same distro naming convention as libvirt-ci.git rather than having QEMU's own naming. I've thought about suggesting it but it wasn't a high priority since lcitool usage is in its infancy in QEMU still
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 10 lines · Daniel P. Berrangé
Quoted 5 lines · Andrea Bolognani
CentOS 8 and CentOS Stream 8 are two pretty distinct operating systems in terms of update cadence and stability expectations, so I think that using the label "centos8" for containers and CI jobs that are actually consuming CentOS Stream 8 is going to be a source of confusion.
Given the EOL of what I call the "traditional" CentOS model at the end of 2021, both "CentOS" and "CentOS Stream" terms effectively mean the same thing now.
Note that while CentOS 7 is no longer targeted by QEMU, it still is very much relevant as an OS and will keep receiving updates for ~2.5 more years.
Quoted 5 lines
The caveat is that aside from this dockerfile, we also have a VM config in test/vm/ that historically used traditional CentOS. That may also need updating to point to Stream unless it has seemlessly transitioned to using Stream content without us needing to change anything. I've not looked closely at that yet.
This example IMO only highlights the need for names to match reality and why overloading existing names is a bad idea.
Signature · 1 line
Andrea Bolognani / Red Hat / Virtualization
Quoted 4 lines · Thomas Huth
Support for CentOS 8 has stopped at the end of 2021, so let's switch to the Stream variant instead.
Signed-off-by Thomas Huth <[email protected]>
Re-queued to testing/next, thanks. The existing centos8 image is now broken and we can fix the naming later.
Quoted 35 lines
--- tests/docker/dockerfiles/centos8.docker | 4 ++-- tests/lcitool/refresh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)tests/docker/dockerfiles/centos8.docker +2
-2@@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile centos-8 qemu +# $ lcitool dockerfile centos-stream-8 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/centos:8 +FROM quay.io/centos/centos:stream8 RUN dnf update -y && \ dnf install 'dnf-command(config-manager)' -y && \tests/lcitool/refresh +1
-1@@ -77,7 +77,7 @@ ubuntu2004_tsanhack = [ ] try: - generate_dockerfile("centos8", "centos-8") + generate_dockerfile("centos8", "centos-stream-8") generate_dockerfile("fedora", "fedora-35") generate_dockerfile("ubuntu1804", "ubuntu-1804", trailer="".join(ubuntu1804_skipssh))
Signature · 1 line
Alex Bennée