Skip to content

Commit

Permalink
Migration from mu released to mu unreleased
Browse files Browse the repository at this point in the history
Add upragde autoyast profile and yaml schedule files for migration from
mu released to mu unreleased testsuites.
  • Loading branch information
openQA web UI committed Mar 29, 2024
1 parent 68e535d commit a59a3e4
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 0 deletions.
82 changes: 82 additions & 0 deletions data/yam/autoyast/autoyast_maintenance_update_scc_upgrade.xml.ep
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<bootloader>
<global>
<activate>false</activate>
<boot_extended>false</boot_extended>
<boot_mbr>true</boot_mbr>
<boot_root>true</boot_root>
<generic_mbr>false</generic_mbr>
<timeout config:type="integer">5</timeout>
</global>
<loader_type>{{LOADER_TYPE}}</loader_type>
</bootloader>
<general>
<mode>
<confirm config:type="boolean">false</confirm>
<second_stage config:type="boolean">false</second_stage>
</mode>
<signature-handling>
<accept_file_without_checksum config:type="boolean">true</accept_file_without_checksum>
<accept_non_trusted_gpg_key config:type="boolean">true</accept_non_trusted_gpg_key>
<accept_unknown_gpg_key config:type="boolean">true</accept_unknown_gpg_key>
<accept_unsigned_file config:type="boolean">false</accept_unsigned_file>
<accept_verification_failed config:type="boolean">false</accept_verification_failed>
<import_gpg_key config:type="boolean">true</import_gpg_key>
</signature-handling>
</general>
<keyboard>
<keymap>english-us</keymap>
</keyboard>
<language>
<language>en_US</language>
<languages>en_US</languages>
</language>
<report>
<errors>
<show config:type="boolean">true</show>
<log config:type="boolean">true</log>
<timeout config:type="integer">0</timeout>
</errors>
<warnings>
<show config:type="boolean">true</show>
<log config:type="boolean">true</log>
<timeout config:type="integer">0</timeout>
</warnings>
<messages>
<show config:type="boolean">true</show>
<log config:type="boolean">true</log>
<timeout config:type="integer">0</timeout>
</messages>
<yesno_messages>
<show config:type="boolean">true</show>
<log config:type="boolean">true</log>
<timeout config:type="integer">0</timeout>
</yesno_messages>
</report>
<software>
<products config:type="list">
<product>SLES</product>
</products>
</software>
<upgrade>
<stop_on_solver_conflict config:type="boolean">true</stop_on_solver_conflict>
</upgrade>
<suse_register>
<do_registration config:type="boolean">true</do_registration>
<reg_server>{{SCC_URL}}</reg_server>
</suse_register>
<add-on>
<add_on_products config:type="list">
% for my $repo (@$repos) {
% my ($repo_id, $addon) = $repo =~ (/(\d+)\/(.*)\//);
<listentry>
<media_url><%= $repo %></media_url>
<name><%= $addon . "_" . $repo_id %></name>
<alias><%= $addon . "_" . $repo_id %></alias>
</listentry>
%}
</add_on_products>
</add-on>
</profile>
9 changes: 9 additions & 0 deletions schedule/yam/register_image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: register_image_for_migration_mu_jobs
description: >
Boot an image and register it for migration MU jobs.
schedule:
- installation/bootloader_start
- boot/boot_to_desktop
- migration/online_migration/register_system
- shutdown/grub_set_bootargs
- shutdown/shutdown
26 changes: 26 additions & 0 deletions schedule/yast/maintenance/autoupgrade_to_mu_unrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: autoupgrade_mu_released_to_mu_unreleased
description: >
Performs a migration from system with released maintenance updates to a product with maintenance updates unreleased
schedule:
- autoyast/prepare_profile
- migration/version_switch_origin_system
- boot/boot_to_desktop
- migration/record_disk_info
- migration/reboot_to_upgrade
- migration/version_switch_upgrade_target
- installation/bootloader
- autoyast/installation
- autoyast/console
- autoyast/login
- autoyast/wicked
- autoyast/repos
- autoyast/clone
- console/zypper_lr
- autoyast/logs
- autoyast/autoyast_reboot
- installation/grub_test
- installation/first_boot
- boot/grub_test_snapshot
- migration/version_switch_origin_system
- boot/snapper_rollback
32 changes: 32 additions & 0 deletions schedule/yast/maintenance/migration_to_mu_unrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: migration_to_mu_unreleased
description: >
Performs a migration from system with released maintenance updates to a product with maintenance updates unreleased
schedule:
- migration/version_switch_origin_system
- boot/boot_to_desktop
- migration/record_disk_info
- migration/reboot_to_upgrade
- migration/version_switch_upgrade_target
- installation/bootloader
- installation/welcome
- installation/upgrade_select
- installation/scc_registration
- installation/add_update_test_repo
- installation/addon_products_sle
- installation/resolve_dependency_issues
- installation/installation_overview
- installation/disable_grub_timeout
- installation/start_install
- installation/await_install
- installation/logs_from_installation_system
- installation/reboot_after_installation
- installation/grub_test
- installation/first_boot
- migration/post_upgrade
- console/consoletest_setup
- console/zypper_lr
- console/zypper_ref
- boot/grub_test_snapshot
- migration/version_switch_origin_system
- boot/snapper_rollback

0 comments on commit a59a3e4

Please sign in to comment.