drop centos stream 8

CentOS Stream 8 is EOL, thus we should no longer offer it in the
service, because it can pose a security risk.

See https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/
This commit is contained in:
Ondřej Budai 2024-06-11 20:19:55 +02:00 committed by Klara Simickova
parent fa12ff7588
commit 642cb10036
9 changed files with 15 additions and 83 deletions

View file

@ -1,4 +1,4 @@
import { CENTOS_8, CENTOS_9, RHEL_8, RHEL_9 } from '../constants';
import { CENTOS_9, RHEL_8, RHEL_9 } from '../constants';
export const releaseToVersion = (release: string) => {
switch (release) {
@ -8,8 +8,6 @@ export const releaseToVersion = (release: string) => {
return '8';
case CENTOS_9:
return '9';
case CENTOS_8:
return '8';
default:
return '';
}

View file

@ -42,7 +42,6 @@ export const OSBUILD_SERVICE_ARCHITECTURE_URL =
export const RHEL_8 = 'rhel-8';
export const RHEL_9 = 'rhel-9';
export const CENTOS_8 = 'centos-8';
export const CENTOS_9 = 'centos-9';
export const X86_64 = 'x86_64';
export const AARCH64 = 'aarch64';
@ -56,7 +55,6 @@ export const RELEASES = new Map([
[RHEL_9, 'Red Hat Enterprise Linux (RHEL) 9'],
[RHEL_8, 'Red Hat Enterprise Linux (RHEL) 8'],
[CENTOS_9, 'CentOS Stream 9'],
[CENTOS_8, 'CentOS Stream 8'],
]);
export const RHEL_9_FULL_SUPPORT = ['2022-05-18', '2027-05-31'];

View file

@ -238,9 +238,6 @@ describe('Step Image output', () => {
await screen.findByRole('option', {
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
});
await screen.findByRole('option', {
name: 'CentOS Stream 8',
});
await screen.findByRole('option', {
name: 'CentOS Stream 9',
});
@ -974,7 +971,7 @@ describe('Step Review', () => {
await user.click(showOptionsButton);
const centos = await screen.findByRole('option', {
name: 'CentOS Stream 8',
name: 'CentOS Stream 9',
});
await user.click(centos);
@ -1314,7 +1311,7 @@ describe('Click through all steps', () => {
},
{
baseurl:
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
check_gpg: false,
rhsm: false,
module_hotfixes: true,
@ -1334,7 +1331,7 @@ describe('Click through all steps', () => {
},
{
baseurl: [
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
],
check_gpg: false,
id: '9cf1d45d-aa06-46fe-87ea-121845cc6bbb',

View file

@ -217,9 +217,6 @@ describe('Step Image output', () => {
await screen.findByRole('option', {
name: /Red Hat Enterprise Linux \(RHEL\) 9/,
});
await screen.findByRole('option', {
name: 'CentOS Stream 8',
});
await screen.findByRole('option', {
name: 'CentOS Stream 9',
});
@ -1020,7 +1017,7 @@ describe('Step Review', () => {
await user.click(showOptionsButton);
const centos = await screen.findByRole('option', {
name: 'CentOS Stream 8',
name: 'CentOS Stream 9',
});
await user.click(centos);
// select aws as upload destination

View file

@ -3,7 +3,6 @@ import { userEvent } from '@testing-library/user-event';
import {
AARCH64,
CENTOS_8,
CENTOS_9,
CREATE_BLUEPRINT,
RHEL_8,
@ -82,15 +81,6 @@ const selectRhel9 = async () => {
await userEvent.click(rhel9);
};
const selectCentos8 = async () => {
await openReleaseMenu();
await clickShowOptions();
const centos8 = await screen.findByRole('option', {
name: 'CentOS Stream 8',
});
await userEvent.click(centos8);
};
const selectCentos9 = async () => {
await openReleaseMenu();
await clickShowOptions();
@ -175,20 +165,6 @@ describe('distribution request generated correctly', () => {
expect(receivedRequest).toEqual(expectedRequest);
});
test('centos-8', async () => {
await renderCreateMode();
await selectCentos8();
await goToReviewStep();
const receivedRequest = await interceptBlueprintRequest(CREATE_BLUEPRINT);
const expectedRequest: CreateBlueprintRequest = {
...blueprintRequest,
distribution: CENTOS_8,
};
expect(receivedRequest).toEqual(expectedRequest);
});
});
describe('architecture request generated correctly', () => {

View file

@ -77,40 +77,6 @@ export const mockArchitecturesByDistro = (
],
},
],
'centos-8': [
{
arch: 'x86_64',
image_types: [
'aws',
'gcp',
'azure',
'ami',
'vhd',
'guest-image',
'image-installer',
'vsphere',
'vsphere-ova',
],
repositories: [
{
baseurl:
'http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/',
rhsm: false,
},
],
},
{
arch: 'aarch64',
image_types: ['aws', 'guest-image', 'image-installer'],
repositories: [
{
baseurl:
'http://mirror.centos.org/centos/8-stream/BaseOS/aarch64/os/',
rhsm: false,
},
],
},
],
'centos-9': [
{
arch: 'x86_64',

View file

@ -737,7 +737,7 @@ export const mockStatus = (composeId: string): ComposeStatus => {
},
{
baseurl: [
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
],
check_gpg: false,
check_repo_gpg: false,
@ -757,7 +757,7 @@ export const mockStatus = (composeId: string): ComposeStatus => {
},
{
baseurl:
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
check_gpg: false,
check_repo_gpg: false,
gpgkey: '',
@ -1355,7 +1355,7 @@ export const mockComposesRecreateImage = {
},
{
baseurl: [
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
],
check_gpg: false,
check_repo_gpg: false,
@ -1366,7 +1366,7 @@ export const mockComposesRecreateImage = {
{
id: 'f087f9ad-dfe6-4627-9d53-447d1a997de5',
name: 'nginx stable repo',
baseurl: ['http://nginx.org/packages/centos/8/x86_64/'],
baseurl: ['http://nginx.org/packages/centos/9/x86_64/'],
check_gpg: true,
check_repo_gpg: false,
gpg_key: [
@ -1386,7 +1386,7 @@ export const mockComposesRecreateImage = {
},
{
baseurl:
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
check_gpg: false,
check_repo_gpg: false,
gpgkey: '',
@ -1394,7 +1394,7 @@ export const mockComposesRecreateImage = {
},
{
baseurl: 'http://nginx.org/packages/centos/8/x86_64/',
baseurl: 'http://nginx.org/packages/centos/9/x86_64/',
check_gpg: true,
check_repo_gpg: false,
gpg_key: [

View file

@ -14,7 +14,7 @@ export const customizations: Customizations = {
},
{
baseurl: [
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
],
check_gpg: false,
id: '9cf1d45d-aa06-46fe-87ea-121845cc6bbb',
@ -32,7 +32,7 @@ export const customizations: Customizations = {
},
{
baseurl:
'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
rhsm: false,
check_gpg: false,
},

View file

@ -162,7 +162,7 @@ const testingRepos: ApiRepositoryResponseRead[] = [
{
uuid: '9cf1d45d-aa06-46fe-87ea-121845cc6bbb',
name: '2lmdtj',
url: 'http://mirror.stream.centos.org/SIGs/8/kmods/x86_64/packages-main/',
url: 'http://mirror.stream.centos.org/SIGs/9/kmods/x86_64/packages-main/',
distribution_versions: ['8'],
distribution_arch: 'any',
account_id: '6416440',
@ -198,7 +198,7 @@ const testingRepos: ApiRepositoryResponseRead[] = [
{
uuid: 'ffe90892-6e6c-43c0-a284-df78977d8e37',
name: '4tnt6f',
url: 'https://mirror.linux.duke.edu/pub/centos/8-stream/BaseOS/x86_64/os/',
url: 'https://mirror.linux.duke.edu/pub/centos/9-stream/BaseOS/x86_64/os/',
distribution_versions: ['9'],
distribution_arch: 'aarch64',
account_id: '6416440',