Actions
action #136997
closedcoordination #130216: [epic] Adapt migration test coverage and its migration matrix for SLE 15 SP6
Add SAP migration test for SLE SAP 15 SP5
Description
Motivation¶
We need add the SAP migration test for SLE SAP 15 SP5. Currently in migration daily job group we have 15 SP3 and 15 SP4 test. We can follow the below test list to add test for 15SP5.
- sap_migration_offline_pscc_sles4sap15sp5_fullcd:
- sap_migration_offline_pscc_sles4sap15sp5:
- sap_migration_online_zypper_sles4sap15sp5:
Scope¶
x86_64 and ppc64le
Acceptance criteria¶
AC1: Create support images for SLE SAP 15 SP5 via autoyast.
AC2: Add SAP migration test for SLE SAP 15 SP5 in migration daily job group.
Updated by leli about 1 year ago
- Status changed from New to Workable
- Target version set to Current
- Parent task set to #130216
Updated by lmanfredi about 1 year ago
- Status changed from Workable to In Progress
- Assignee set to lmanfredi
Updated by lmanfredi 12 months ago
Steps done:
- Create the yaml
issues-136997.yaml
to put in my personal dev group 529 (adding a prefixtest_
for each test suite before) - Create the isos post by
issues-136997.sh
File issues-136997.yaml
:
---
.sap_autoyast_create_hdd: &sap_autoyast_create_hdd
ISO: 'SLE-%VERSION%-Online-%ARCH%-GM-Media1.iso'
AUTOYAST: yam/autoyast/support_images/create_hdd_sap.xml.ep
PUBLISH_HDD_1: 'autoyast-SLES-%VERSION%-%ARCH%-SAP-updated.qcow2'
HDDSIZEGB: '50'
DESKTOP: 'gnome'
TEST_SLES4SAP: '1'
SHUTDOWN_NEEDS_AUTH: '0'
DM_NEEDS_USERNAME: '1'
ROOTONLY: '1'
PATTERNS: 'base,enhanced_base,gnome_basic,yast2_basis,sap_server'
SCC_DEREGISTER: '1'
SCC_ADDONS: 'base,desktop,serverapp,ha'
SCC_REGCODE_SLES4SAP: '2882173e156fbd43'
SCC_URL: 'https://scc.suse.com'
SLE_PRODUCT: 'sles4sap'
YAML_SCHEDULE: schedule/yast/autoyast/autoyast_sap.yaml
.sap_migration_online_common_settings_x86_64: &sap_migration_online_common_settings_x86_64
HDD_1: 'autoyast-SLES-15-SP4-%ARCH%-SAP-updated.qcow2'
BOOT_HDD_IMAGE: '1'
DESKTOP: 'gnome'
UPGRADE: '1'
FULL_UPDATE: '1'
ROOTONLY: '1'
TEST_SLES4SAP: '1'
QEMURAM: '2048'
MIGRATION_METHOD: 'zypper'
ONLINE_MIGRATION: '1'
ROLLBACK_AFTER_MIGRATION: '1'
ORIGIN_SYSTEM_VERSION: '15-SP4'
UPGRADE_TARGET_VERSION: '15-SP6'
SLE_PRODUCT: 'sles4sap'
SCC_REGISTER: 'installation'
SCC_REGCODE_SLES4SAP: '2882173e156fbd43'
SCC_ADDONS: 'base,desktop,serverapp,ha'
SCC_PROXY_URL: 'http://all-%BUILD_SLE%.proxy.scc.suse.de'
QEMU_VIRTIO_RNG: '0'
YAML_SCHEDULE: 'schedule/migration/migration_online_sap.yaml'
.sap_migration_online_common_settings_ppc64le: &sap_migration_online_common_settings_ppc64le
YAML_SCHEDULE: 'schedule/migration/migration_online_sap.yaml'
TEST_SLES4SAP: '1'
MIGRATION_METHOD: 'zypper'
UPGRADE_TARGET_VERSION: '15-SP6'
SLE_PRODUCT: 'sles4sap'
SCC_ADDONS: 'base,desktop,serverapp,ha'
SCC_REGCODE_SLES4SAP: '3f40296f570b401f'
SCC_PROXY_URL: 'http://all-%BUILD_SLE%.proxy.scc.suse.de'
.sap_migration_offline_common_settings_ppc64le_pre: &sap_migration_offline_common_settings_ppc64le_pre
AUTOYAST: 'yam/autoyast/support_images/create_hdd_sap.xml.ep'
AUTOYAST_PREPARE_PROFILE: '1'
INSTALLONLY: '1'
ROOTONLY: '1'
DM_NEEDS_USERNAME: '1'
SHUTDOWN_NEEDS_AUTH: '0'
TEST_SLES4SAP: '1'
PATTERNS: 'base,enhanced_base,gnome_basic,yast2_basis,sap_server'
SLE_PRODUCT: 'sles4sap'
SCC_DEREGISTER: '1'
SCC_ADDONS: 'base,desktop,serverapp,ha'
SCC_REGCODE_SLES4SAP: '3f40296f570b401f'
SCC_URL: 'https://scc.suse.com'
UPGRADE_TARGET_VERSION: '15-SP4'
UPGRADE_TARGET_RELEASED_VERSION: '1'
YAML_SCHEDULE: 'schedule/yast/autoyast/autoyast_sap.yaml'
.sap_migration_offline_common_settings_ppc64le: &sap_migration_offline_common_settings_ppc64le
ISO: 'SLE-%VERSION%-Full-%ARCH%-Build%BUILD%-Media1.iso'
YAML_SCHEDULE: 'schedule/migration/migration_offline_sap.yaml'
TEST_SLES4SAP: '1'
SLE_PRODUCT: 'sles4sap'
SCC_REGISTER: 'installation'
SCC_ADDONS: 'base,desktop,serverapp,ha'
SCC_REGCODE_SLES4SAP: '3f40296f570b401f'
defaults:
ppc64le:
machine: ppc64le-spvm
priority: 40
x86_64:
machine: 64bit
priority: 50
products:
sle-15-SP5-Server-DVD-Updates-x86_64:
distri: sle
flavor: Server-DVD-Updates
version: 15-SP5
sle-15-SP6-Migration-from-SLE15-SPx-ppc64le:
distri: sle
flavor: Migration-from-SLE15-SPx
version: 15-SP6
sle-15-SP6-Migration-from-SLE15-SPx-x86_64:
distri: sle
flavor: Migration-from-SLE15-SPx
version: 15-SP6
scenarios:
x86_64:
sle-15-SP5-Server-DVD-Updates-x86_64:
- test_sap_autoyast_create_hdd_15sp5:
testsuite: null
settings:
<<: *sap_autoyast_create_hdd
sle-15-SP6-Migration-from-SLE15-SPx-x86_64:
- test_sap_migration_online_zypper_sles4sap15sp5:
testsuite: null
settings:
<<: *sap_migration_online_common_settings_x86_64
+HDD_1: 'autoyast-SLES-15-SP5-%ARCH%-SAP-updated.qcow2'
+ORIGIN_SYSTEM_VERSION: '15-SP5'
- test_sap_migration_offline_scc_sles4sap15sp5:
testsuite: sap_migration_offline_common_x86_64
settings:
+ISO: 'SLE-%VERSION%-Online-%ARCH%-Build%BUILD%-Media1.iso'
HDD_1: 'autoyast-SLES-15-SP5-%ARCH%-SAP-updated.qcow2'
KEEP_REGISTERED: '1'
ORIGIN_SYSTEM_VERSION: '15-SP5'
QEMURAM: '2048'
- test_sap_migration_offline_scc_sles4sap15sp5_fullcd:
testsuite: sap_migration_offline_common_x86_64
settings:
+ISO: 'SLE-%VERSION%-Full-%ARCH%-Build%BUILD%-Media1.iso'
HDD_1: 'autoyast-SLES-15-SP5-%ARCH%-SAP-updated.qcow2'
KEEP_REGISTERED: '1'
ORIGIN_SYSTEM_VERSION: '15-SP5'
QEMURAM: '2048'
ppc64le:
sle-15-SP6-Migration-from-SLE15-SPx-ppc64le:
- test_sap_migration_online_zypper_sles4sap15sp5_pre:
testsuite: null
settings:
<<: *sap_migration_offline_common_settings_ppc64le_pre
+UPGRADE_TARGET_VERSION: '15-SP5'
- test_sap_migration_online_zypper_sles4sap15sp5:
testsuite: null
settings:
<<: *sap_migration_online_common_settings_ppc64le
+START_DIRECTLY_AFTER_TEST: 'test_sap_migration_online_zypper_sles4sap15sp5_pre'
- test_sap_migration_offline_scc_sles4sap15sp5_pre:
testsuite: null
settings:
<<: *sap_migration_offline_common_settings_ppc64le_pre
+UPGRADE_TARGET_VERSION: '15-SP5'
+SCC_DEREGISTER: '0'
- test_sap_migration_offline_scc_sles4sap15sp5:
testsuite: null
settings:
<<: *sap_migration_offline_common_settings_ppc64le
+START_DIRECTLY_AFTER_TEST: 'test_sap_migration_offline_scc_sles4sap15sp5_pre'
- test_sap_migration_offline_scc_sles4sap15sp5_fullcd_pre:
testsuite: null
settings:
<<: *sap_migration_offline_common_settings_ppc64le_pre
+UPGRADE_TARGET_VERSION: '15-SP5'
+SCC_DEREGISTER: '0'
- test_sap_migration_offline_scc_sles4sap15sp5_fullcd:
testsuite: null
settings:
<<: *sap_migration_offline_common_settings_ppc64le
+ISO: 'SLE-%VERSION%-Full-%ARCH%-Build%BUILD%-Media1.iso'
+REPO_0: 'SLE-%VERSION%-Full-%ARCH%-Build%BUILD%-Media1'
+MIRROR_HTTP: 'http://openqa.suse.de/assets/repo/SLE-%VERSION%-Full-%ARCH%-Build%BUILD%-Media1'
+START_DIRECTLY_AFTER_TEST: 'test_sap_migration_offline_scc_sles4sap15sp5_fullcd_pre'
File issues-136997.sh
:
#!/usr/bin/env bash
set -e
echo "# issues/136997"
file_yaml='issues-136997.yaml'
# build='26.14'
build='27.1'
SKIP_CHAINED_DEPS='0'
GROUP_ID='529'
yaml=$(jq --raw-input --slurp < $file_yaml)
echo curl -k -u \$TOKEN_OSD -X POST -d schema=\"JobTemplates-01.yaml\" -d preview=\"0\" -d template=$yaml -g \"https://openqa.suse.de/api/v1/job_templates_scheduling/${GROUP_ID}\"
for arch in $(yq '.scenarios | keys' $file_yaml | sed -e 's/^- //'); do
echo "# Arch: $arch"
for suite in $(yq ".scenarios.\"${arch}\" | keys" $file_yaml | sed -e 's/^- //'); do
echo "# Suite: $suite"
distri=$(yq ".products.\"${suite}\".distri" $file_yaml)
flavor=$(yq ".products.\"${suite}\".flavor" $file_yaml)
version=$(yq ".products.\"${suite}\".version" $file_yaml)
for test in $(yq ".scenarios.${arch}.\"${suite}\"[] | keys" $file_yaml | sed -e 's/^- //'); do
echo "# Test: $test"
VARS="
ARCH='${arch}'
BUILD='${build}'
BUILD_SLE='${build}'
DISTRI='${distri}'
FLAVOR='${flavor}'
VERSION='${version}'
TEST='${test}'
_SKIP_CHAINED_DEPS='${SKIP_CHAINED_DEPS}'
_GROUP_ID='${GROUP_ID}'
"
echo sudo openqa-cli api --osd -X POST isos?async=0 $VARS
echo
done
done
done
To be verified on groups:
Updated by lmanfredi 11 months ago
- Status changed from In Progress to Resolved
Verified on group SLE 15 / Migration
Actions