action #19510
closed[sles][functional] Installation from ISO in external drive
0%
Description
Description¶
Create a test that covers the installation from ISO in external drive.
Reason: Be able to detect in the future this kind of bugs boo#1040749
What should the test do?¶
- The test should have two drives. One from which the ISO will be used to install. The other one to install the OS into it.
- The test boot from an existing HDD and copy the ISO to the other HDD.
- The installation will be triggered by adding boot parameters
install=hd:/sles12-sp3.iso
(parameter sample, the filename may change for each build). - At the end there is a proper installed OS.
Tasks¶
1. Prepared an isolated environment in local openQA instance¶
- Clone job with test
gnome+import_ssh_keys
with extra parametersISO_IN_USB=1 NUMDISKS=2 SSH_KEY_IMPORT=0
- Add new test module
console/copy_iso_to_external_drive
` - Load only these test modules when
ISO_IN_EXTERNAL_DRIVE
loadtest "boot/boot_to_desktop";
loadtest 'console/copy_iso_to_external_drive';
load_inst_tests();
load_reboot_tests();
2. Prepare new test for OSD.¶
- Create new test suite in local OSD
gnome_iso_from_external_drive
- BOOTFROM=d
- DESKTOP=gnome
- HDD_1=sle-12-SP1-Server-DVD-x86_64-gnome.qcow2
- ISO_IN_EXTERNAL_DRIVE=1
- NUMDISKS=2
Updated by SLindoMansilla over 7 years ago
- Description updated (diff)
Updated by jorauch over 7 years ago
Finished the code to copy the iso to a second hdd yesterday
Updated by SLindoMansilla over 7 years ago
Link related to previous comment: http://pinky.arch.suse.de/tests/148#
Updated by SLindoMansilla over 7 years ago
Documentation about install parameter: https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.inst.html#idm140228656038720
Updated by jorauch over 7 years ago
- Status changed from New to In Progress
Main.pm has been adapted, still having some weird issues with rebooting the installation and also with finding the second HDD from within the installation
Issues can be seen on pinky.arch.suse.de
Updated by jorauch over 7 years ago
Tests theoretically working, fails random on TW due to non zero return value of 'parted mklabel gpt' missing question mark when assert_script_run
Updated by jorauch over 7 years ago
Issue fixed with a new version of qemu (2.9.0-381)
Updated by okurz over 7 years ago
- Subject changed from [sles][functional] Instalation from ISO in external drive to [sles][functional] Installation from ISO in external drive
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/3369 merged.
Please check the test suite I added on https://openqa.opensuse.org/admin/test_suites
I added the test suite to https://openqa.opensuse.org/admin/job_templates/38
@jorauch: As you are operator on o3 you should be able to trigger this test accordingly. When it's stable (e.g. 3 times) make sure the scenario is added to default job group https://openqa.opensuse.org/admin/job_templates/1
Updated by jorauch over 7 years ago
Thanks for adding and updating the test suite, please replace IMPORT_SSH_KEYS with SSH_KEY_IMPORT, I have got this wrong in the initial commit
Updated by jorauch over 7 years ago
First run on O3: https://openqa.opensuse.org/tests/470333
Updated by jorauch over 7 years ago
Since the first run succeeded here another two runs:
https://openqa.opensuse.org/tests/471574
https://openqa.opensuse.org/tests/471575
Updated by jorauch over 7 years ago
Updated by jorauch over 7 years ago
- Status changed from In Progress to Resolved
Tests suceeded, Test Suite has been created and added to job groups.
Updated by okurz over 7 years ago
- Status changed from Resolved to In Progress
aaalmost there :-)
okurz wrote in #19510#note-11:
[…] When it's stable (e.g. 3 times) make sure the scenario is added to default job group https://openqa.opensuse.org/admin/job_templates/1
The same is true for OSD. So you showed that the test is running fine on production but did not ensure yet that every new build will trigger an according test in a validation job group for both o3 and osd.
Updated by jorauch over 7 years ago
Adding has been requested for O3 and was done for SLE15
Updated by jorauch over 7 years ago
- Status changed from In Progress to Resolved
Test was added on OSD and O3 to the job groups of Tumbleweed and SLE15.
O3 Tumbleweed:
https://openqa.opensuse.org/admin/job_templates/1
Updated by okurz over 7 years ago
- Status changed from Resolved to In Progress
seems like for SLE15 either the HDD_1 setting is wrong or missing a proper START_AFTER_TEST setting -> https://openqa.suse.de/tests/1125046
Updated by jorauch over 7 years ago
Requested adding "START_AFTER_TEST=create_hdd_gnome" to the external_iso test suite on O3.
Parameter was already added on OSD.
Updated by jorauch over 7 years ago
- Status changed from In Progress to Resolved
Working on O3:
https://openqa.opensuse.org/tests/477444
Working on OSD:
https://openqa.suse.de/tests/1142905
I will close it as resolved