-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
login: Beibooting to all supported OSes
Previously we only allowed beibooting to the same target OS as the host. But we know which OSes Cockpit works on -- exactly the ones which we have in CI. So check the remote OS against a list of known supported ones. Building that supported list isn't quite easy, though: It *roughly* corresponds to our bots/lib/testmap.py, but not quite -- e.g. "debian-stable" is "Debian 12" right now. So for the time being, keep that list static. We'll have to update it for each new OS that we support, but our integration tests will tell us. In the future we might be doing something clever, like automatically collecting `os-release` files from all our supported images in bots, and use that to auto-build `osinfo.py`. Enable the "incompatible future OS version" check for Debian/Arch as well, by appending a `VERSION_ID`. https://issues.redhat.com/browse/COCKPIT-1193
- Loading branch information
1 parent
7f888fd
commit a3bece0
Showing
4 changed files
with
70 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# supported OSes for beibooting; entries are os-release keys | ||
# keep this in sync with bots/lib/testmap.py | ||
supported_oses: 'list[dict[str, str | None]]' = [ | ||
# rolling release | ||
{"ID": "arch", "VERSION_ID": None}, | ||
|
||
# match/describe CentOS separately, it's the upstream of all RHEL clones | ||
{"ID": "centos", "PLATFORM_ID": "platform:el9"}, | ||
{"ID": "centos", "PLATFORM_ID": "platform:el10"}, | ||
{"PLATFORM_ID": "platform:el8"}, | ||
{"PLATFORM_ID": "platform:el9"}, | ||
{"PLATFORM_ID": "platform:el10"}, | ||
|
||
{"ID": "debian", "VERSION_ID": "12"}, | ||
# rolling release | ||
{"ID": "debian", "VERSION_ID": None}, | ||
|
||
{"ID": "fedora", "VERSION_ID": "40"}, | ||
{"ID": "fedora", "VERSION_ID": "41"}, | ||
{"ID": "fedora", "VERSION_ID": "42"}, | ||
|
||
{"ID": "ubuntu", "VERSION_ID": "22.04"}, | ||
{"ID": "ubuntu", "VERSION_ID": "24.04"}, | ||
{"ID": "ubuntu", "VERSION_ID": "24.10"}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters