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 Apr 15, 2024
1 parent 6e750be commit 46bcced
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?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_others config:type="list">
% for my $repo (@$repos) {
<listentry>
<media_url><%= $repo %></media_url>
</listentry>
%}
</add_on_others>
</add-on>
</profile>
25 changes: 25 additions & 0 deletions schedule/yast/maintenance/autoupgrade.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: autoupgrade
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
- console/register_original_system
- 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
- console/zypper_ref
- autoyast/logs
- autoyast/autoyast_reboot
- installation/grub_test
- installation/first_boot
32 changes: 32 additions & 0 deletions tests/console/register_original_system.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2018 SUSE LLC
# SPDX-License-Identifier: FSFAP

# Package: SUSEConnect
# Summary: Rrgister system and modules of the original system by SUSEConnect
# - Register product using SCC_REGCODE code
# - Register modules and extension
# - Check registering status
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de>

use base "consoletest";
use strict;
use warnings;
use testapi;
use utils 'zypper_call';
use migration;
use registration;

sub run {
select_console 'root-console';

my $scc_addons = get_var 'SCC_ADDONS_ORIGIN', '';
my $retries = 3; # number of retries to run SUSEConnect commands
register_product();
register_addons_cmd($scc_addons, $retries) if $scc_addons;
# Check registration status and repos
assert_script_run("zypper --gpg-auto-import-keys ref", timeout => 180, exitcode => [0, 106]);
assert_script_run("zypper lr | tee /dev/$serialdev");
assert_script_run("SUSEConnect --status-text | tee /dev/$serialdev", timeout => 60);
}

1;

0 comments on commit 46bcced

Please sign in to comment.